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
    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! :)
    Peter Holzer
    @PeHo89
    @andrevmatos One more question: when starting the client after starting the server from the echo demo i get the error "ERROR:microraiden.client.session:Unexpected server error, status code 502; ERROR:root:Error getting the resource. Code=502 body="Channel manager ETH balance is below limit"". Do i have to change an address or something somewhere? i followed the tutorial from the website and the account wich fits the specified private key is charged with > 10 eth and > 200 tkn.
    André Vitor de Lima Matos
    @andrevmatos
    @PeHo89 Not only the client account needs ETH, you need to put some ETH (no need for tokens there) in the server account, as it may need to challenge a wrong close tx on-chain. That's what this error refer to, the server account doesn't have enough ETH
    Peter Holzer
    @PeHo89
    @andrevmatos i think i did this. but the balance from the receiver account jumps (sometime i have 22 eth, sometimes 8 eth). if i charge it with faucet, the balance doesnt change after a few seconds. whats the limit of eth?
    André Vitor de Lima Matos
    @andrevmatos
    It's very low, something like 0.1Gwei
    Maybe your chain isn't synced, or somehow µRaiden isn't being able to pick your server account's balance
    André Vitor de Lima Matos
    @andrevmatos
    @PeHo89 Apply this patch to get better info on what µRaiden sees of your balance's account, and retry the failed request
    Peter Holzer
    @PeHo89
    @andrevmatos mhm..do you have any idea how to solve this issue? i think the chain is synced. at least the server application doesn't notice that the chain is not synced. on the very beginning after running geth it did so. so i think it is synced.
    Peter Holzer
    @PeHo89
    image.png
    this is an actual screenshot of the geth console output. maybe you are right that the chain is not in sync...
    Peter Holzer
    @PeHo89
    but if i type in eth.syncing i get false. so it is synced, right?
    André Vitor de Lima Matos
    @andrevmatos
    Ropsten is currently in the 3.7M block, you're 700k off. Maybe your node hardforked (there were some nasty issues related to geth/parity consensus breaking bugs), or simply doesn't have synced peers. For parity, you may delete nodes.json to make it find new peers, but not sure how to do that with geth
    André Vitor de Lima Matos
    @andrevmatos
    Last option would be to remove the database and either try the node in light client mode or wait for a full resync
    Peter Holzer
    @PeHo89
    @andrevmatos i will try..thanks!
    Portia Burton
    @pkafei

    Hello. I'm running through your demo proxy example. I'm trying to figure out how does the receiver claim the deposit, and if this is recorded on-chain. Right now I'm able to

    1. open a channel
    2. have the sender transfer tokens on the client via metamask
    3. record the channel on the sqlite db
    4. have the receiver sign the contract
    5. on-chain show that the sender owes the receiver

    The on-chain transaction shows that the sender has sent money to the receiver, but is there anyway on-chain that I can prove the receiver has gotten the tokens?

    Peter Holzer
    @PeHo89
    @andrevmatos remove the database did the job. many thanks again!
    Peter Holzer
    @PeHo89
    @andrevmatos one more question: i would like to implement the echo service demo application on my own with typescript / javascript to better understand the technology and its way of working. as far as i understood the microraiden typescript library is only helpful for client application and not for server application? how can i implement the server code in typescript or are there existing libraries? unfortunately i have absolutely no experience with python which makes it a little hard to read. is there any help online somewhere? do have some hints for me? to be honest its very hard for me to understand all the stuff at the moment.
    Portia Burton
    @pkafei
    I have figured it out. It seems like after the receiver has settled the channel, the contract routes the tokens to the receiver. https://ropsten.etherscan.io/tx/0x039a368be9e827009139830f7ab303eb80433fa98c7c401f51d69f494197672f
    Peter Holzer
    @PeHo89

    @andrevmatos I loaded the channel which was created by the echo service demo application in typescript app and want to close it. I always get an 'unknown account' error. But i see correct (?) channel state. Code is here: https://gist.github.com/PeHo89/1a998e89d7fb77d6c7a3a53f9a6b9e38. Here is the output:

    Application started!
    { account: '0x4f171ad9568e295998182d09a3dbc5db03a19750',
    receiver: '0x58a08b28dada672f04a20d22e9faf4097cc7e322',
    block: 3769554,
    proof: { balance: BigNumber { s: 1, e: 0, c: [Array] } } }
    Closing channel. Cooperative = undefined
    Error: unknown account
    at Object.InvalidResponse (/home/peter/Downloads/microraiden-master/microraiden/webui/microraiden/node_modules/web3/lib/web3/errors.js:38:16)
    at /home/peter/Downloads/microraiden-master/microraiden/webui/microraiden/node_modules/web3/lib/web3/requestmanager.js:86:36
    at XMLHttpRequest.request.onreadystatechange (/home/peter/Downloads/microraiden-master/microraiden/webui/microraiden/node_modules/web3/lib/web3/httpprovider.js:129:7)
    at XMLHttpRequestEventTarget.dispatchEvent (/home/peter/Downloads/microraiden-master/microraiden/webui/microraiden/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
    at XMLHttpRequest._setReadyState (/home/peter/Downloads/microraiden-master/microraiden/webui/microraiden/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
    at XMLHttpRequest._onHttpResponseEnd (/home/peter/Downloads/microraiden-master/microraiden/webui/microraiden/node_modules/xhr2-cookies/dist/xml-http-request.js:318:14)
    at IncomingMessage.<anonymous> (/home/peter/Downloads/microraiden-master/microraiden/webui/microraiden/node_modules/xhr2-cookies/dist/xml-http-request.js:289:61)
    at IncomingMessage.emit (events.js:185:15)
    at endReadableNT (_stream_readable.js:1106:12)
    at process._tickCallback (internal/process/next_tick.js:178:19)

    Unfortunately I also can not create a new channel between a new sender and an existing receiver. Same error message. What is missing or what I am doing wrong here?