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
    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 ?
    I tried using flask_cors but was getting errors
    Cody Lamson
    @TovarishFin
    figured it out nvm
    aasim
    @aasimali141290
    any simple tutorial to test the payment channel between two people
    Loredana Cirstea
    @loredanacirstea
    also check out http://microraiden.readthedocs.io/en/docs-develop/applications/pyserver/usage.html (with a nice web interface). we have some examples that you can try out of the box.
    aasim
    @aasimali141290
    thanks
    aasim
    @aasimali141290
    did anyone got this error
    Screen Shot 2018-05-18 at 1.47.49 PM.png
    aasim
    @aasimali141290
    solved, need install dependencies mentioned in the raiden network mac os environment setup.
    André Vitor de Lima Matos
    @andrevmatos
    Demo is up again, ropsten resync finished
    chech0x
    @chech0x
    Hi, i have a doubt . Does the RaidenMicroTransferChannel only works with a specific Token ? Or could it works with others Tokens later?
    Loredana Cirstea
    @loredanacirstea
    @chech0x , RaidenMicroTransferChannel only works with the token you provide in the constructor argument, at deployment. For another token, you need to deploy another RaidenMicroTransferChannel contract and set the microraiden app to use that contract. As for tokens, the current RaidenMicroTransferChannel version supports ERC20 and ERC223 tokens.
    chech0x
    @chech0x
    @loredanacirstea Ah, Ok, I thought it could be so that... I'm going to deploy other contract with the Token that i need . Thank you :)
    chech0x
    @chech0x
    Hi. It's happening something weird. When i run echo example with a local geth node (http) all work, but when i tried running it with https://ropsten.infura.io (ssl) node, it throws this exception:
    (env) [root@da93e862c515 microraiden]# python microraiden/examples/echo_server.py --private-key /root/pk_tut.csv
    WARNING:microraiden.utils.private_key:Private key in raw format. Consider switching to JSON-encoded 
    Traceback (most recent call last):
      File "microraiden/examples/echo_server.py", line 99, in <module>
        main()
      File "/root/workdir/env/lib64/python3.6/site-packages/click/core.py", line 722, in __call__
        return self.main(*args, **kwargs)
      File "/root/workdir/env/lib64/python3.6/site-packages/click/core.py", line 697, in main
        rv = self.invoke(ctx)
      File "/root/workdir/env/lib64/python3.6/site-packages/click/core.py", line 895, in invoke
        return ctx.invoke(self.callback, **ctx.params)
      File "/root/workdir/env/lib64/python3.6/site-packages/click/core.py", line 535, in invoke
        return callback(*args, **kwargs)
      File "microraiden/examples/echo_server.py", line 47, in main
        run(private_key)
      File "microraiden/examples/echo_server.py", line 66, in run
        NETWORK_CFG.set_defaults(int(web3.version.network))
      File "/root/workdir/env/lib64/python3.6/site-packages/web3/version.py", line 18, in network return self.web3.manager.request_blocking("net_version", [])
      File "/root/workdir/env/lib64/python3.6/site-packages/web3/manager.py", line 96, in request_blocking response = self._make_request(method, params)
      File "/root/workdir/env/lib64/python3.6/site-packages/web3/manager.py", line 79, in _make_request return request_func(method, params)
      File "/root/workdir/env/lib64/python3.6/site-packages/web3/middleware/formatting.py", line 23, in middleware response = make_request(method, params)
      File "/root/workdir/env/lib64/python3.6/site-packages/web3/middleware/attrdict.py", line 20, in middleware response = make_request(method, params)
      File "/root/workdir/env/lib64/python3.6/site-packages/web3/middleware/formatting.py", line 23, in middleware response = make_request(method, params)
      File "/root/workdir/env/lib64/python3.6/site-packages/web3/middleware/formatting.py", line 23, in middleware
        response = make_request(method, params)
      File "/root/workdir/env/lib64/python3.6/site-packages/web3/providers/rpc.py", line 57, in make_request
        **self.get_request_kwargs()
      File "/root/workdir/env/lib64/python3.6/site-packages/web3/utils/request.py", line 20, in make_post_request
        response = session.post(endpoint_uri, data=data, *args, **kwargs)
      File "/root/workdir/env/lib64/python3.6/site-packages/requests/sessions.py", line 559, in post
        return self.request('POST', url, data=data, json=json, **kwargs)
      File "/root/workdir/env/lib64/python3.6/site-packages/requests/sessions.py", line 512, in request
        resp = self.send(prep, **send_kwargs)
      File "/root/workdir/env/lib64/python3.6/site-packages/requests/sessions.py", line 622, in send
        r = adapter.send(request, **kwargs)
      File "/root/workdir/env/lib64/python3.6/site-packages/requests/adapters.py", line 445, in send
        timeout=timeout
      File "/root/workdir/env/lib64/python3.6/site-packages/urllib3/connectionpool.py", line 600, in urlopen
        chunked=chunked)
      File "/root/workdir/env/lib64/python3.6/site-packages/urllib3/connectionpool.py", line 343, in _make_request
        self._validate_conn(conn)
      File "/root/workdir/env/lib64/python3.6/site-packages/urllib3/connectionpool.py", line 849, in _validate_conn
        conn.connect()
      File "/root/workdir/env/lib64/python3.6/site-packages/urllib3/connection.py", line 344, in connect
        cert_reqs=resolve_cert_reqs(self.cert_reqs),
      File "/root/workdir/env/lib64/python3.6/site-packages/urllib3/util/ssl_.py", line 292, in create_urllib3_context
        context.options |= options
      File "/usr/lib64/python3.6/ssl.py", line 465, in options
        super(SSLContext, SSLContext).options.__set__(self, value)
      File "/usr/lib64/python3.6/ssl.py", line 465, in options
        super(SSLContext, SSLContext).options.__set__(self, value)
      File "/usr/lib64/python3.6/ssl.py", line 465, in options
        super(SSLContext, SSLContext).options.__set__(self, value)
      [Previous line repeated 315 more times]
    RecursionError: maximum recursion depth exceeded while calling a Python object
    Somebody knows why does it happen ?