routerrpc: Add detailed info/trace logging during a rescan
This commit is contained in:
1 file changed
+4
@@ -854,10 +854,14 @@ func (r *ChannelRouter) syncGraphWithChain() error {
|
|||||||
|
|
||||||
// Using the next height, request a manual block pruning from
|
// Using the next height, request a manual block pruning from
|
||||||
// the chainview for the particular block hash.
|
// 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))
|
nextHash, err := r.cfg.Chain.GetBlockHash(int64(nextHeight))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
log.Tracef("Running block filter on block with hash: %v",
|
||||||
|
nextHash)
|
||||||
filterBlock, err := r.cfg.ChainView.FilterBlock(nextHash)
|
filterBlock, err := r.cfg.ChainView.FilterBlock(nextHash)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in new issue
Block a user