This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
forked from decred/dcrd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chain/indexers: Allow reorg of block one.
This modifies the code to permit a reorganization that includes block one. Even though this will never happen on the main network since it's buried so deep, it is entirely possible for the first block to be reorged away on test chains. Not only is it more technically accurate to permit a reorg of the first block, so long as the new one satisfies all of consensus rules, it also facilitates upcoming test code which relies on that capability. It should be noted that this is technically a hard fork, however, it only applies to the first block and so it would now require a reorg of over 150,000 blocks which is completely infeasible.
- Loading branch information
Showing
3 changed files
with
7 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters