When two Bitcoin chain tips have equal total work, Bitcoin Core (as of commit 0e8f70a8) prefers the tip with the lower nSequenceId, which its code comment calls the earliest activatable time, rather than choosing at random.
Sources and checks
T1Bitcoin Core src/node/blockstorage.cpp, CBlockIndexWorkComparatorSource code, says this directly
if (pa->nSequenceId < pb->nSequenceId) return false;
CBlockIndexWorkComparator::operator(), second ordering rule, read 2026-11-26
Still in src/node/blockstorage.cpp at the head of bitcoin/bitcoin (0e8f70a863), read 26 Nov 2026.
T1Bitcoin Core src/node/blockstorage.cpp, CBlockIndexWorkComparatorSource code, says this directly
// ... then by earliest activatable time, ...
CBlockIndexWorkComparator::operator(), comment, read 2026-11-26
Still in src/node/blockstorage.cpp at the head of bitcoin/bitcoin (0e8f70a863), read 26 Nov 2026.
bitcoin/bitcoin at 0e8f70a863 contains this text in src/node/blockstorage.cpp, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show 0e8f70a86314bc73539b110d947c41d40c4886fc:src/node/blockstorage.cpp | grep -nF 'if (pa->nSequenceId < pb->nSequenceId) return false;'Checked at block 977,599, 26 Nov 2026, 00:22 UTC: quotes 2/2, code 1/1
History
Nothing is edited silently; every revision keeps what it replaced.
- 26 Nov 2026, 00:22 UTCblock 977,599
Published Revision 1, run 2026-11-26-daily-proof-of-work