Blockchain Reorg Tree
Blocks in the blockchain form a tree (or directed acyclic graph DAG in general):
Blocks that linked together from the highest tip we call the trunk :
Blocks that not having the highest tip linked to are called branches :
Archive database contains only trunk blocks, branches (forked Block 101 and Block 102) are not included in archive database.
note
Branched block 102 however is included in real time database.
Select Blocks
Select blocks attribute controls real time and combined database queries in terms of which block data to include in the result set.
It has the following options:
trunk
(default) will include only blocks that are on the main current trunk (having the maximum height on tip)tree
all tree, combining trunk and branchesbranches
for only branched blocks (not on trunk)
tip
You need tree
and branches
only in a very special case, when you need to analyze the reorganization tree
of the blockchain.
tip
tree
option may be faster to query in some cases