Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Cody Lamson
    @TovarishFin
    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 ?
    chech0x
    @chech0x
    Hi , there is any function in the Smart Contract to know if there is more opened channels white same sender and receiver ?
    chech0x
    @chech0x
    Sorry, i figured out that i can find them filtering ChannelCreated events :P
    Peter Holzer
    @PeHo89

    hey guys! i am trying to get the microraiden demo running since a few days. i am completely new to this. i followed the instructions from the website (http://microraiden.readthedocs.io/en/latest/tutorials/dev-setup.html). on 'make pip-install-dev' i get the following error. does somebody know how to solve this or what i am doing wrong? it would be very great if someone can help me.

    Command "/home/peter/Downloads/env/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-75cbdzi9/cytoolz/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-f93kpksi/install-record.txt --single-version-externally-managed --compile --install-headers /home/peter/Downloads/env/include/site/python3.6/cytoolz" failed with error code 1 in /tmp/pip-install-75cbdzi9/cytoolz/

    CodeHex
    @ikbeniyare_twitter
    hello
    is there no way to run raiden on windows
    chech0x
    @chech0x
    @ikbeniyare_twitter with docker you can do it
    André Vitor de Lima Matos
    @andrevmatos
    @chech0x This SSL error usually happens because gevent wasn't monkey-patched soon enough, so urllib3 gets in a weird state. You may try doing the monkey-patch earlier to see if it goes away
    @PeHo89 This isn't related to µRaiden itself, but on that cytoolz dependency. You may look into installing it directly in your OS, or why it's failing to build for you. Maybe lacking build-essential packages or alike? You may also try venv or pyenv to get a full local installation, or docker containers available in the repositories
    chech0x
    @chech0x
    @andrevmatos Thanks, i'm going to check out that :)
    chech0x
    @chech0x
    @andrevmatos it works :) but it seems that infura doesn't support filters. So i keep my http geth node for the moment
    Peter Holzer
    @PeHo89
    @andrevmatos Thanks, i will have a look. Using docker containers is a good hint!
    Peter Holzer
    @PeHo89
    @andrevmatos I tried both instruction sets on https://github.com/raiden-network/microraiden and on http://microraiden.readthedocs.io/en/latest/tutorials/dev-setup.html but unfortunately both ends with different errors. I think the most promising error message is "Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-yf8b9pq1/secp256k1/" which also comes up alike using docker. I know, this are only very superficial statements from my side, but i don't know what to post here further. I think i am doing something basically wrong here. I would like to use microraiden for creating paid apis for an project at university. I hope you can help me somehow. I am completely new to this technology. Is there any other guide on which i can follow to get started? Many thanks in advance for your help!
    André Vitor de Lima Matos
    @andrevmatos
    @PeHo89 That error is again related to not being able to install/compile the secp256k1 dependency, which is required by µRaiden. Please, look at microraiden demo server docker-compose.yml, it's able to build and run µRaiden straight from the repository
    Notice this is our production docker setup, available on https://demo.micro.raiden.network
    Peter Holzer
    @PeHo89
    @andrevmatos Thanks again, now i have it running! :)