| 1234567891011121314151617181920212223 |
- // In a terminal start a seed node
- $ cargo +nightly run -- -v
- // In a new terminal start node 1
- $ cargo +nightly run -- -v --accept 0.0.0.0:11001 --slots 5 --seeds 127.0.0.1:9999 --rpc 127.0.0.1:6661 --external 127.0.0.1:1101
- // In a new terminal start node 2
- $ cargo +nightly run -- -v --accept 0.0.0.0:11002 --slots 5 --seeds 127.0.0.1:9999 --rpc 127.0.0.1:6662 --external 127.0.0.1:1102
- // In a new terminal start node 3
- $ cargo +nightly run -- -v --accept 0.0.0.0:11003 --slots 5 --seeds 127.0.0.1:9999 --rpc 127.0.0.1:6663 --external 127.0.0.1:1103
- // In a new terminal, telnet to one of the nodes and submit a tx json command
- $ telnet 127.0.0.1 6661
- json: {"jsonrpc": "2.0", "method": "receive_tx", "params": ["tx"], "id": 42}
- // In new terminal windows(one for each node), telnet rest nodes
- $ telnet 127.0.0.1 6661
- $ telnet 127.0.0.1 6662
- $ telnet 127.0.0.1 6663
- // verify they all hold the same tx by submiting the following json in each terminal
- json: {"jsonrpc": "2.0", "method": "get_tx_pool", "params": [], "id": 42}
|