preciousblock

Back to blockchain

Summary

Treats a block as if it were received before others with the same work.

Description

Treats a block as if it were received before others with the same work.

A later preciousblock call can override the effect of an earlier one.

The effects of preciousblock are not retained across restarts.

Arguments

  • blockhash (STR_HEX, required): the hash of the block to mark as precious

Results

  • value (NONE): No description.

Examples

qbit-cli preciousblock "blockhash"
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "preciousblock", "params": ["blockhash"]}' -H 'content-type: application/json' http://127.0.0.1:8352/