simulation 921 B

123456789101112131415161718
  1. // In a terminal start a seed node
  2. $ cargo +nightly run --
  3. // In a new terminal start node 1
  4. $ cargo +nightly run -- --accept 0.0.0.0:11001 --seeds 127.0.0.1:11000 --rpc 127.0.0.1:6661 --external 127.0.0.1:11001 --id 1 --state ~/.config/darkfi/validator_state_1
  5. // In a new terminal start node 2
  6. $ cargo +nightly run -- --accept 0.0.0.0:11002 --seeds 127.0.0.1:11000 --rpc 127.0.0.1:6662 --external 127.0.0.1:11002 --id 2 --state ~/.config/darkfi/validator_state_2
  7. // In a new terminal start node 3
  8. $ cargo +nightly run -- --accept 0.0.0.0:11003 --seeds 127.0.0.1:11000 --rpc 127.0.0.1:6663 --external 127.0.0.1:11003 --id 3 --state ~/.config/darkfi/validator_state_3
  9. // In a new terminal, telnet to one of the nodes and submit a tx json command
  10. $ telnet 127.0.0.1 6661
  11. json: {"jsonrpc": "2.0", "method": "receive_tx", "params": ["tx"], "id": 42}
  12. // verify they all hold the same tx in the state file of each node