Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
client/asset/{btc,dcr}: fix re-org depth calc in checkForNewBlocks
It is necessary to crawl backwards from the previous main chain tip to a main chain block (confs>0), the ancestor, to determine reorg depth. This logic is used to trigger findRedemptionsInBlockRange.
- Loading branch information
1 parent
c5413e8
commit cfa95eb
Showing
2 changed files
with
111 additions
and
81 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