Skip to content

Instantly share code, notes, and snippets.

View CosminNechifor's full-sized avatar

Cosmin Nechifor CosminNechifor

View GitHub Profile
lease be aware, that by using the Raiden Client, |
| your Ethereum address, channels, channel deposits, settlements and |
| the Ethereum address of your settlement counterparty will be |
| stored on the Ethereum chain, i.e. on servers of Ethereum node |
| operators and ergo made publicly available. The same will also be |
| stored on systems of parties running other Raiden nodes connected |
| to the same token network. |
| |
| Also be aware, that data on individual Raiden token transfers will |
| be made available via the Matrix protocol to the recipient, |
➜ ~ cd_raiden
➜ raiden git:(master) ✗ workon raiden
(raiden) ➜ raiden git:(master) ✗ raiden --keystore-path ~/.ethereum/testnet/keystore --log-config 'raiden:debug' --eth-rpc-endpoint "http://geth.ropsten.ethnodes.brainbot.com:8545" --api-address "http://127.0.0.1:5004"
Welcome to Raiden, version 0.12.1.dev15+g4a1f189e.d20181009!
----------------------------------------------------------------------
| This is an Alpha version of experimental open source software |
| released under the MIT license and may contain errors and/or bugs. |
| Use of the software is at your own risk and discretion. No |
| guarantee whatsoever is made regarding its suitability for your |
| intended purposes and its compliance with applicable law and |
48 def get_best_routes(
49 chain_state: ChainState,
50 token_network_id: typing.Address,
51 from_address: typing.Address,
52 to_address: typing.Address,
53 amount: int,
54 previous_address: typing.Address,
55 ) -> List[RouteState]:
56 """ Returns a list of channels that can be used to make a tra
082848'), HexBytes('0x223a64412417e53a425017adc679a189241337bd00896d7fc78985597320e957'), HexBytes('0xffae74ed935a933b2e9070df65e9b37902edecbae51792868c2239b87f946b34'), HexBytes('0x0af8f1edb133e4f45c8c5fda54727ce55f1fffa3da37a5a1f565f7001a2e297e'), HexBytes('0xf86f745c0eb02a41d460a6c140e84015931bcf3d4baccf824e09ef298ed36619'), HexBytes('0x61202abb8f0b4696a5f981ea1750bf79ef64e33af6d91eadcfceed0ca641f184'), HexBytes('0xbabb56d292d0ecbe5ea65132cbeba736b19f8b59c596cf1338d57fcfb10ada32'), HexBytes('0xbcf5a06ce3e6cf2ed8d9f16b7353ef2b711c34b3f4260da946c57a5396434116'), HexBytes('0x0c388d3acf669ffb1e94fc428e49739ad89fb195d52d51aa0e4597703bea8dff'), HexBytes('0x9a960bc2482bdfe139838e7d6898bc8c985400053e4506ab8973d8cf9b39eb31'), HexBytes('0x83ff23056697b8ef49a7a1b9871a68cfe94d2ca9dbc4dda600afe37663338eb0'), HexBytes('0xa5a661ecd2b11544fb4d44e659e8c4ac512f5d29f6d64ed17131885c2c880a9a'), HexBytes('0xf3bfeb752567e1f07e4e8ed8bd255ea58c685a6d7c1bddbfad34220160c5f441'), HexBytes('0x002e37700487e55b8ce02dce821c0aafd3d84bce9d
2018-10-02 15:05:40 [debug ] JSONRPCClient created [raiden.network.rpc.client] available_nonce=185 sender=27fad1fc
2018-10-02 15:05:44 [debug ] Matrix homeserver RTT times [raiden.network.transport.matrix] rtt_times=[('https://transport03.raiden.network', 0.052505), ('https://transport01.raiden.network', 0.05261866666666667), ('https://transport02.raiden.network', 0.13684000000000002)]
2018-10-02 15:05:44 [info ] Automatically selecting matrix homeserver based on RTT [raiden.network.transport.matrix] homeserver=https://transport03.raiden.network rtt=0.052505
2018-10-02 15:05:45 [warning ] Older versions of the database exist in /home/cosmin/.raiden/node_27fad1fc/netid_3/network_f2a175a5. Since a newer breaking version is introduced, it is advised that you leave all token networks before upgrading and then proceed with the upgrade. [raiden.app]
2018-10-02 15:05:45 [info ] Lock 139627325001064 acquired on /home/cosmin/.raiden/node_27fad1fc/netid_3/network_f2a175a5/.lock [filelock]
2
2018-10-03 14:28:55 [debug ] JSONRPCClient created [raiden.network.rpc.client] available_nonce=63 sender=77e080be
2018-10-03 14:29:00 [debug ] Matrix homeserver RTT times [raiden.network.transport.matrix] rtt_times=[('https://transport03.raiden.network', 0.05252266666666667), ('https://transport01.raiden.network', 0.057015666666666666), ('https://transport02.raiden.network', 0.137182)]
2018-10-03 14:29:00 [info ] Automatically selecting matrix homeserver based on RTT [raiden.network.transport.matrix] homeserver=https://transport03.raiden.network rtt=0.05252266666666667
2018-10-03 14:29:00 [warning ] Older versions of the database exist in /home/cosmin/.raiden/node_77e080be/netid_3/network_f2a175a5. Since a newer breaking version is introduced, it is advised that you leave all token networks before upgrading and then proceed with the upgrade. [raiden.app]
2018-10-03 14:29:00 [info ] Lock 140141583858544 acquired on /home/cosmin/.raiden/node_77e080be/netid_3/network_f2a175a5/.lock [f
2018-10-02 15:05:40 [debug ] JSONRPCClient created [raiden.network.rpc.client] available_nonce=185 sender=27fad1fc
2018-10-02 15:05:44 [debug ] Matrix homeserver RTT times [raiden.network.transport.matrix] rtt_times=[('https://transport03.raiden.network', 0.052505), ('https://transport01.raiden.network', 0.05261866666666667), ('https://transport02.raiden.network', 0.13684000000000002)]
2018-10-02 15:05:44 [info ] Automatically selecting matrix homeserver based on RTT [raiden.network.transport.matrix] homeserver=https://transport03.raiden.network rtt=0.052505
2018-10-02 15:05:45 [warning ] Older versions of the database exist in /home/cosmin/.raiden/node_27fad1fc/netid_3/network_f2a175a5. Since a newer breaking version is introduced, it is advised that you leave all token networks before upgrading and then proceed with the upgrade. [raiden.app]
2018-10-02 15:05:45 [info ] Lock 139627325001064 acquired on /home/cosmin/.raiden/node_27fad1fc/netid_3/network_f2a175a5/.lock [filelock]
2
sudo openvpn --config gw-UDP4-1196-cosmin.ams3.do.brainbot.com-config.ovpn
Mon Oct 1 14:44:27 2018 OpenVPN 2.4.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Sep 5 2018
Mon Oct 1 14:44:27 2018 library versions: OpenSSL 1.1.0g 2 Nov 2017, LZO 2.08
Mon Oct 1 14:44:27 2018 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Mon Oct 1 14:44:27 2018 TCP/UDP: Preserving recently used remote address: [AF_INET]206.189.106.50:1196
Mon Oct 1 14:44:27 2018 UDP link local (bound): [AF_INET][undef]:1194
Mon Oct 1 14:44:27 2018 UDP link remote: [AF_INET]206.189.106.50:1196
Mon Oct 1 14:45:27 2018 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Mon Oct 1 14:45:27 2018 TLS Error: TLS handshake failed
Mon Oct 1 14:45:27 2018 SIGUSR1[soft,tls-error] received, process restarting
2018-09-28 15:40:39 [debug ] JSONRPCClient created [raiden.network.rpc.client] available_nonce=36 sender=77e080be
2018-09-28 15:40:43 [debug ] Matrix homeserver RTT times [raiden.network.transport.matrix] rtt_times=[('https://transport03.raiden.network', 0.050445666666666666), ('https://transport01.raiden.network', 0.05649133333333333), ('https://transport02.raiden.network', 0.13941800000000001)]
2018-09-28 15:40:43 [info ] Automatically selecting matrix homeserver based on RTT [raiden.network.transport.matrix] homeserver=https://transport03.raiden.network rtt=0.050445666666666666
2018-09-28 15:40:43 [warning ] Older versions of the database exist in /home/cosmin/.raiden/node_77e080be/netid_3/network_f2a175a5. Since a newer breaking version is introduced, it is advised that you leave all token networks before upgrading and then proceed with the upgrade. [raiden.app]
2018-09-28 15:40:44 [info ] Lock 139933299326648 acquired on /home/cosmin/.raiden/node_77e080be/netid_3/network_f2a17
2018-09-28 14:51:52 [debug ] JSONRPCClient created [raiden.network.rpc.client] available_nonce=31 sender=ed3eb092
2018-09-28 14:51:56 [debug ] Matrix homeserver RTT times [raiden.network.transport.matrix] rtt_times=[('https://transport03.raiden.network', 0.050022333333333335), ('https://transport01.raiden.network', 0.056083999999999995), ('https://transport02.raiden.network', 0.13863666666666666)]
2018-09-28 14:51:56 [info ] Automatically selecting matrix homeserver based on RTT [raiden.network.transport.matrix] homeserver=https://transport03.raiden.network rtt=0.050022333333333335
2018-09-28 14:51:56 [warning ] Older versions of the database exist in /home/cosmin/.raiden/node_ed3eb092/netid_3/network_f2a175a5. Since a newer breaking version is introduced, it is advised that you leave all token networks before upgrading and then proceed with the upgrade. [raiden.app]
2018-09-28 14:51:57 [info ] Lock 140316917615192 acquired on /home/cosmin/.raiden/node_ed3eb092/netid_3/network_f2a1