Moves the node's active chain to a previous block, effectively
rolling back the blockchain state. This is a powerful operation
typically used for testing or recovery. The node must be paused
with mc_pause(conn, "incoming,mining") before calling.
Arguments
- conn
A connection object created by
mc_connect.- hash_or_height
Either a block hash (character string) or a block height (integer) to rewind to.
See also
mc_pause, mc_resume,
mc_get_block to inspect blocks.
Other node control:
mc_pause(),
mc_resume()