Skip to content

Instantly share code, notes, and snippets.

View CosminNechifor's full-sized avatar

Cosmin Nechifor CosminNechifor

View GitHub Profile
pragma solidity >= 0.4.22 < 0.6.0;
contract Contract {
string public Name;
constructor(string memory name) public {
Name = name;
}
function getName() public view returns(string memory) {
~ man ls | grep list
ls - list directory contents
do not list implied . and ..
do not list implied entries ending with ~
-C list entries by columns
list directories themselves, not their contents
-g like -l, but do not list owner
in a long listing, don't print group names
follow symbolic links listed on the command line
do not list implied entries matching shell PATTERN (overridden by -a or -A)
│- [✔] Serial (0:26:26.758611) - Routing scenario │
│ + [✔] Parallel (0:06:24.053611) - Create channels │
│ + [✔] Serial (0:00:30.011599) - Allow time for nodes to learn about their channels │
│ + [✔] Parallel (0:06:09.436264) - Founding the channles │
│ + [✔] Serial (0:00:15.003929) - Allow time for all nodes to learn about the deposit │
│ + [✔] Parallel (0:00:00.041526) - Checking if the deposits w
│- [•] Serial (0:29:44.830964) - Long running scenario │
│ + [✔] Parallel (0:01:51.439974) - Create channels │
│ + [✔] Serial (0:00:30.001294) - Allow time for nodes to learn about their channels │
│ + [✔] Parallel (0:00:00.027168) - Verify if channels were opened correctly │
│ + [✔] Parallel (0:06:06.258271) - A B C D make a deposit of 100 to their channels │
│ + [✔] Parallel (0:00:00.058796) - Checking if the deposit wa
Production:
- Opened channels both on mainnet(2 channels) and kovan(3 channels)
- Performed direct payments on mainnet between my nodes (around 500 both directions)
- Performed 3 hop payments (A -> B -> C) around 2000
- Performed multihop payments at the same time between the nodes I had on Kovan:
1. A -> B -> C (1000 payments of 0.000...1 tokens)
2. B -> C (100 payments of 0.000...1 tokens)
3. C -> B (100 payments of 0.000...1 tokens)
4. B -> A (100 payments of 0.000...1 tokens)
./raiden-v0.19.1.dev44+gaf0eaa6f-linux --keystore-path /home/cosmin/.local/share/io.parity.ethereum/keys/ethereum --log-config 'raiden:debug' --eth-rpc-endpoint "http://parity.mainnet.ethnodes.brainbot.com:8545" --api-address "http://127.0.0.1:5555" --network-id 1 --environment-type "production" --accept-disclaimer
Welcome to Raiden, version 0.19.1.dev44+gaf0eaa6f!
----------------------------------------------------------------------
| This is an Alpha version of experimental open source software |
| released as a test version under an MIT license and may contain |
| errors and/or bugs. No guarantee or representations whatsoever is |
| made regarding its suitability (or its use) for any purpose or |
| regarding its compliance with any applicable laws and regulations. |
| Use of the software is at your own risk and discretion and by |
| using the software you acknowledge that you have read this |
version: 2
settings:
gas_price: "fast"
chain: kovan
token:
decimals: 3
nodes:
This file has been truncated, but you can view the full file.
2018-12-19 15:52:22.040962 [debug ] State change [raiden.raiden_service] greenlet_name=sync_handle_response-s1260286_3579376_0_1_1195_1_1_7914_1 node=b2c94bba state_change={"route": {"node_address": "0xf2fBCC167cc3f24a620798E27b4BB084dD275253", "channel_identifier": "88", "_type": "raiden.transfer.state.RouteState", "_version": 0}, "transfer": {"message_identifier": "6657298922071645343", "payment_identifier": "3033055086864854698", "token": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "balance_proof": {"nonce": 103, "transferred_amount": "47", "locked_amount": "1", "locksroot": "0x4e3cba417b033fc05439219a67295368956c74e9af501939c3b6222d575ace09", "token_network_identifier": "0xa5C9ECf54790334B73E5DfA1ff5668eB425dC474", "channel_identifier": "88", "message_hash": "0x2484db8a0b5d4471c3e3d2413fa0cd2c55bc7bca5c952aa0979128c87294a662", "signature": "0xbcfb08b8e1145a91958961f01222c47ad07f00b59422f0b5dae6ed584dde8621019369d747e3e9f50841b45c456876379a00738c2486e99a90ffebcaf1ade07e1c", "sender"
2018-12-19 15:08:15.810918 [debug ] Initiating payment [raiden.api.rest] amount=5 node=b2c94bba payment_identifier=1545232095848 registry_address=0xB9633dd9a9a71F22C933bF121d7a22008f66B908 target_address=0x4d6FA60E64C7E520899A9aeDD40cB1E6992027F0 token_address=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
2018-12-19 15:08:15.811743 [debug ] Initiating transfer [raiden.api.python] amount=5 identifier=1545232095848 initiator=b2c94bba target=4d6fa60e token=c02aaa39
2018-12-19 15:08:15.871063 [debug ] State change [raiden.raiden_service] node=b2c94bba state_change={"transfer": {"payment_network_identifier": "0xB9633dd9a9a71F22C933bF121d7a22008f66B908", "payment_identifier": "1545232095848", "amount": "5", "token_network_identifier": "0xa5C9ECf54790334B73E5DfA1ff5668eB425dC474", "initiator": "0xB2C94bBaf307C6DfBf70Cc2537385553385a345b", "target": "0x4d6FA60E64C7E520899A9aeDD40cB1E6992027F0", "secret": "0x59ccbec519f4394322d840286c2f6a43ffa43b6e5aa7cb00b3c2f7204ef1ae13
Traceback (most recent call last):
File "src/gevent/greenlet.py", line 716, in gevent._greenlet.Greenlet.run
File "site-packages/raiden/network/transport/matrix.py", line 262, in _run
File "site-packages/raiden/network/transport/matrix.py", line 253, in _check_and_send
File "site-packages/raiden/network/transport/matrix.py", line 1028, in _send_raw
File "site-packages/matrix_client/room.py", line 105, in send_text
File "site-packages/matrix_client/api.py", line 336, in send_message
File "site-packages/matrix_client/api.py", line 256, in send_message_event
File "site-packages/raiden_libs/network/matrix/client.py", line 75, in _send
File "site-packages/matrix_client/api.py", line 691, in _send