forked from lightningnetwork/lnd
-
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.
lntemp: after mining, sync to latest block
Ensure active nodes are synced to the latest block mined. There are two scenarios where they might not be synced to the correct block even when SyncedToChain is true: 1. The backend may have rejected a newly mined block (e.g., see lightningnetwork#7241). 2. The backend might not have fully processed the new blocks yet. In either case SyncedToChain will (correctly) be true since the node is indeed fully synced to the backend. This commit makes sure we detect case 1 above, while making sure we continue to wait in case 2.
- Loading branch information
Showing
2 changed files
with
35 additions
and
2 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