chainselection
Chainselection is the set of rules used by a blockchain node to determine the canonical chain when multiple chains exist due to forks. In a distributed network, blocks may be found nearly simultaneously, producing competing branches. Each node maintains a local view of the blockchain and, when faced with forks, applies a chain selection rule to decide which branch to extend.
The most common form, in proof-of-work systems such as Bitcoin, is to choose the chain with the
In other consensus models, such as proof-of-stake, chain selection may use different criteria, such as total
Key considerations include liveness (the ability to continue adding blocks) and finality (the point at which