bitcoind – InvalidateBlock RPC name conduct with Bitcoin Core

on

|

views

and

comments


I am presently implementing the rpc name invalidateblock on btcd, an alternate Bitcoin full node implementation. I am attempting to determine how Bitcoin Core handles department choice on reorganizations with invalidateblock.

Say there’s 3 chaintips like so:

genesis -> 1  -> 2  -> 3  (energetic)     (chainwork=8)
       -> 1a             (valid-fork) (chainwork=4)
       -> 1b             (valid-fork) (chainwork=6)

Blocks at peak 1 had been acquired within the order of: 1, 1a, 1b. Block 1 was acquired most lately and block 1b was acquired final.

If I name invalidateblock on block 2, which block will change into the energetic chaintip?

Share this
Tags

Must-read

Waymo raises $16bn to gas international robotaxi enlargement | Know-how

Self-driving automobile firm Waymo on Monday stated it raised $16bn in a funding spherical that valued the Alphabet subsidiary at $126bn.Waymo co-chief executives...

Self-driving taxis are coming to London – ought to we be anxious? | Jack Stilgoe

At the top of the nineteenth century, the world’s main cities had an issue. The streets had been flooded with manure, the unintended...

US regulators open inquiry into Waymo self-driving automobile that struck youngster in California | Expertise

The US’s federal transportation regulator stated Thursday it had opened an investigation after a Waymo self-driving car struck a toddler close to an...

Recent articles

More like this

LEAVE A REPLY

Please enter your comment!
Please enter your name here