Skip to content

Live mode

vukasin gostovic edited this page Jul 13, 2023 · 4 revisions

live

The live mode is designed to be used to replay state as new block arrive to a local testnet. This essentially allows us to have a shadow fork of the live chain on our local node.

It can be used for protocol testing, as well as experimenting with interacting with the live chain without risking any funds.

Usage

To use this mode you need to specify the following parameters:

  • -m live, --mode live: Select the live mode.
  • -s, --source_rpc: RPC of the node we are getting blocks from.
  • -r, --replay_rpc: RPC of the node were sending blocks to.

Optional parameters

  • --exit_on_tx_fail: Exits sothis if a transaction/block failed to replay
  • --entropy_threshold: The percentage of transaction replay failures in a block, at which we will trigger a warning.
  • --no_setup: Start replaying without waiting for user input.
  • --block_listen_time: Period at which we listen for new blocks.
  • --send_as_unsigned: Anvil only. Send unsigned transactions when replaying. May improve performance slightly.

Using the live mode in conjunction with the tracking mode

If you are looking to track a storage variable on a live network, you can do so by running 2 instances of sothis. One for live replay, and the other in the tracking mode.

FAQ and troubleshooting

Please see the dedicated FAQ section on the sidebar.