mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-21 22:11:41 +01:00
Merge pull request #8550 from kornpow/kornpow/rescan-info-log
routerrpc: Add detailed info logging during a rescan
This commit is contained in:
commit
0c6cc8d0ae
1 changed files with 4 additions and 0 deletions
|
@ -854,10 +854,14 @@ func (r *ChannelRouter) syncGraphWithChain() error {
|
|||
|
||||
// Using the next height, request a manual block pruning from
|
||||
// the chainview for the particular block hash.
|
||||
log.Infof("Filtering block for closed channels, at height: %v",
|
||||
int64(nextHeight))
|
||||
nextHash, err := r.cfg.Chain.GetBlockHash(int64(nextHeight))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
log.Tracef("Running block filter on block with hash: %v",
|
||||
nextHash)
|
||||
filterBlock, err := r.cfg.ChainView.FilterBlock(nextHash)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Add table
Reference in a new issue