Temporarily suspends certain node operations without shutting down the node. Tasks that can be paused include mining, incoming connections, and off‑chain data handling.
Arguments
- conn
A connection object created by
mc_connect.- tasks
A character vector or a comma‑separated string of tasks to pause. Valid task names are:
"mining"– stop mining new blocks."incoming"– stop accepting incoming connections."offchain"– stop processing off-chain data.
Multiple tasks can be specified, e.g.,
c("mining", "incoming").
See also
mc_resume to restart paused tasks,
mc_clear_mempool for use after pausing.
Other node control:
mc_resume(),
mc_set_last_block()
Examples
if (FALSE) { # \dontrun{
# Pause mining only
mc_pause(conn, "mining")
# Pause both incoming connections and mining
mc_pause(conn, c("incoming", "mining"))
} # }