I’ve been testing numerous RPC instructions on bitcoin.
The “RPC API Reference” web page properly demonstrates nearly all the instructions.
However by studying the supply code (bitcoin v27.0), I observed that among the instructions should not documented.
Most notable ones are “invalidateblock” and “reconsiderblock”. (What these instructions do appears fairly apparent: making a block invalid by pressure and verifying a block once more together with all of the transactions in it.)
I examined these two instructions on my bitcoin node and the habits was as I anticipated.
Q1 => Why do these instructions even exist?
Q2 => Additionally, I’ve observed that MemPoolAccept::ConsensusScriptChecks
perform in src/validation.cpp
performs a job within the “invalidateblock” course of. It appears some previous transactions is likely to be marked as invalid if the script verification flags are totally different between the block that’s being invalidated, and the latest block. Is that this a attainable state of affairs and what occurs in such events?
I’ve been testing numerous RPC instructions on bitcoin.
The “RPC API Reference” web page properly demonstrates nearly all the instructions.
However by studying the supply code (bitcoin v27.0), I observed that among the instructions should not documented.
Most notable ones are “invalidateblock” and “reconsiderblock”. (What these instructions do appears fairly apparent: making a block invalid by pressure and verifying a block once more together with all of the transactions in it.)
I examined these two instructions on my bitcoin node and the habits was as I anticipated.
Q1 => Why do these instructions even exist?
Q2 => Additionally, I’ve observed that MemPoolAccept::ConsensusScriptChecks
perform in src/validation.cpp
performs a job within the “invalidateblock” course of. It appears some previous transactions is likely to be marked as invalid if the script verification flags are totally different between the block that’s being invalidated, and the latest block. Is that this a attainable state of affairs and what occurs in such events?