Author

Topic: How to invalidate a block (Read 193 times)

member
Activity: 100
Merit: 15
October 17, 2022, 07:26:57 PM
#7
ah ok. Thanks!
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
October 07, 2022, 02:07:22 AM
#6
So I just tried it. And I get a "Empty response". What does that mean?
That's the response if that command is executed successfully.
Otherwise, it'll return with "Block not found", "blockhash must be of length 64" or other errors.

You can immediately see that the block is invalidated in bitcoind with the lines InvalidChainFound: invalid block=n or in the logs (debug.log) file.
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
October 06, 2022, 07:12:13 PM
#5
invalidateblock where is the hash of the block you wish to mark as invalid.

reconsiderblock where is the hash of the block and it's ancestors that you wish for the node to revalidate.

So I just tried it. And I get a "Empty response". What does that mean?

Some RPC calls have no response because it wouldn't make any sense to return anything. Invalidateblock is one such example - you already have the block hash passed as a parameter, what more could be returned?
member
Activity: 100
Merit: 15
October 06, 2022, 05:18:48 PM
#4
invalidateblock where is the hash of the block you wish to mark as invalid.

reconsiderblock where is the hash of the block and it's ancestors that you wish for the node to revalidate.

So I just tried it. And I get a "Empty response". What does that mean?
member
Activity: 100
Merit: 15
October 06, 2022, 05:08:11 PM
#3
ah ok. Thank you.
staff
Activity: 3458
Merit: 6793
Just writing some code
October 03, 2022, 12:31:52 AM
#2
invalidateblock where is the hash of the block you wish to mark as invalid.

reconsiderblock where is the hash of the block and it's ancestors that you wish for the node to revalidate.
member
Activity: 100
Merit: 15
October 03, 2022, 12:28:06 AM
#1
Hey guys so for educational purposes, how do I use Bitcoin Core to invalidate a block? And then how do I return to normal after? Thanks.
Jump to: