Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Lefteris Karapetsas
    @LefterisJP

    split bill

    What is this?

    spock
    @spock-mark1
    If 4 person get lunch, they pay their lunch with pay gas-fee once using micro-raiden's payment channel. Is it possible?
    Loredana Cirstea
    @loredanacirstea
    If each of the 4 persons opens a channel with the restaurant and goes there frequently to eat, then it makes sense. many to one payments work well with uRaiden. But you won't have only 1 on-chain transaction -> you will have 2 (opening a channel and closing it)
    @davidkang200 It is possible you had something else in mind, so please clarify on how you imagined your system.
    spock
    @spock-mark1
    no, create a payment channel by one person, and each of 4 person pay to payment channel. I want to make pay gas-fee once for total.
    Lefteris Karapetsas
    @LefterisJP
    so 1 payment channel but 4 participants?
    spock
    @spock-mark1
    @LefterisJP Right.
    eyals
    @aykesubir
    Hey! I'm reposting a question I asked on the raiden channel. When coming to implement uni-directional channel, what are the benefits of using microRaiden over other solutions such as Machimony etc..?
    Lloyd Palum
    @lpalum
    The uraiden docs suggest using the following to attach to ropsten...geth --testnet --syncmode "fast" \
    --rpc --rpcapi eth,net,web3,personal \
    --cache=1024 \
    --rpcport 8545 --rpcaddr 127.0.0.1 \
    --rpccorsdomain "*" what would be the path to use my Infura account instead?
    Lloyd Palum
    @lpalum
    @loredanacirstea is there any info (blog etc) that would outline how to use Infura rather than a local node to run the uraiden demo code?
    Lefteris Karapetsas
    @LefterisJP
    @lpalum you would need to provide the --rpc-provider argument and point it to infura
    Lloyd Palum
    @lpalum
    @LefterisJP thanks for the pointer... so if this is the geth command profile without infura, how would it change to use infura instead of the local node? geth --testnet --syncmode "fast" \
    --rpc --rpcapi eth,net,web3,personal \
    --cache=1024 \
    --rpcport 8545 --rpcaddr 127.0.0.1 \
    --rpccorsdomain "*" replace --rpc with --rpc-provider?
    Lefteris Karapetsas
    @LefterisJP
    you don't run geth locally if you have got a remote rpc provider
    It takes the place of your local geth
    Lloyd Palum
    @lpalum
    @LefterisJP Ah I see the problem...I am attempting to run the uraiden demo examples and the docs use local geth rpc provider. Is it possible that the demo examples do not work (without code modifications) with the remote rpc provider? The docs say Infura is possible but do not elaborate on how...
    Lefteris Karapetsas
    @LefterisJP
    According to the code providing infura with the --rpc-provider should work. I am not sure how much this is tested, but you can try and see. It's not well documented though.
    Seunghyun Yun
    @younseunghyun
    I'm currently testing micro raiden demo_proxy
    It looks like there is no check double pay logic to check already paid contents
    To check double payment for same contents, am i have to add that functionality or you guys plan to add that?
    Lefteris Karapetsas
    @LefterisJP
    What are you referring to @younseunghyun ? Double spending can't happen.
    Loredana Cirstea
    @loredanacirstea
    @lpalum , we have some issues with infura at the moment regarding events (https://github.com/raiden-network/microraiden/pull/320#issuecomment-361083860, https://github.com/raiden-network/microraiden/issues/321), so I don't expect it to work unfortunately
    Loredana Cirstea
    @loredanacirstea
    @younseunghyun do you mean - paying only once for an url even if you visit it 2 times? Yes, you need to implement the logic that corresponds to the paid API yourself because it is not in the scope of microraiden and we wanted to keep it flexible. You need to extend the Expensive class - please check demo_resources or the echo_server.py example and look at how DynamicPriceResource is used.
    Cody Lamson
    @TovarishFin
    Hi, I have been playing around with the tutorials for microraiden and I couldn't find anywhere where I could set a different token. Is this possible?
    ah.... i think i see now... so the token is set in the constructor of RaidenMicroTransferChannels
    Cody Lamson
    @TovarishFin
    so in order to use this with a different token I would need to deploy own contract with the token address I want. and then set the channel_manager_address to something the new one i deployed...
    Loredana Cirstea
    @loredanacirstea
    @TovarishFin yes, exactly. If you haven't, please check http://microraiden.readthedocs.io/en/docs-develop/contract/deployment.html#fast-deployment for how to deploy the contracts with a custom token.
    Seunghyun Yun
    @younseunghyun
    @loredanacirstea Thanks
    Cody Lamson
    @TovarishFin
    yeah trying to get through it all but to be honest I don't think the tutorials are all that great. Really awesome project regardless though!
    probably has more to do with me not knowing python very well actually...
    Loredana Cirstea
    @loredanacirstea
    @TovarishFin , what is your current blocker?
    Cody Lamson
    @TovarishFin
    no real blocker at the moment... figured out my own question previously :) just generally trying to get a feel of how I am going to end up using this.
    thanks for replying though
    Loredana Cirstea
    @loredanacirstea
    Welcome. Still, if there is something unclear, consider sharing it so we can improve our docs
    Cody Lamson
    @TovarishFin
    @loredanacirstea I suppose the main thing for me was that everything is already written out in the docs for the examples
    probably a personal thing
    but with tutorials I learn and understand things a lot better when I am actually building stuff myself setup by step
    rather than just running the example code
    also it would probably be a good idea to differentiate sender and receiver private keys
    just 2 points that come to mind
    @loredanacirstea I just saw you are based in Berlin. Neat! Is most of the team located in Berlin? Are there ever any meetups or anything like that?
    Loredana Cirstea
    @loredanacirstea
    About building the examples yourself - I understand and we do not currently have a very good explanation of the APIs that you can use, but you can figure how things work from the examples code. You can also take a look at the explanation here: http://microraiden.readthedocs.io/en/docs-develop/tutorials/paywall-tutorial.html.
    I agree with the private keys - they should be separate, otherwise it is confusing. For now, I opened an issue raiden-network/microraiden#471
    Cody Lamson
    @TovarishFin
    great
    Loredana Cirstea
    @loredanacirstea
    Yes, we are mostly in Berlin now. We don't have meetups in plan in the very near future. If we do, we will announce
    .
    Cody Lamson
    @TovarishFin
    cool. I will definitely attend any sort of gathering relating to this project :)
    Loredana Cirstea
    @loredanacirstea
    thank you for the interest :smile:
    eyals
    @aykesubir
    Hey, I was going into the code and whitepaper of microRaiden, and want to make sure I got something correct. So, If I understand right, then the payee of the channel, has always to be alert and listen to the block-chain to make sure the payor hasn't started a settlement period with the SC?
    Loredana Cirstea
    @loredanacirstea
    @aykesubir , yes. The assumption is that the payee is a service provider who should be able to maintain an online presence and not have downtime > than the challenge(settlement) period.
    However, anyone can call cooperativeClose on behalf of the payee during this settlement period, as long as it has the necessary signatures. So, you could have additional watcher services if you want.
    eyals
    @aykesubir
    @loredanacirstea 10x! :)
    Seunghyun Yun
    @younseunghyun

    @loredanacirstea I asked how to make paying only once for an url case. quote below.

    @younseunghyun do you mean - paying only once for an url even if you visit it 2 times? Yes, you need to implement the logic that corresponds to the paid API yourself because it is not in the scope of microraiden and we wanted to keep it flexible. You need to extend the Expensive class - please check demo_resources or the echo_server.py example and look at how DynamicPriceResource is used.

    After analyze of micro raiden, to write paid history for an url, i have to get pay success information from Paywall.accessI(). I think it is not good to change a Paywall.access() method, because it is core component of micro raiden.

    So, is there other way to get such url is paid?
    Cody Lamson
    @TovarishFin
    is there a way to easily enable CORS for PaywalledProxy ?