File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -317,16 +317,18 @@ func (cs *CatchpointCatchupService) processStageLedgerDownload() error {
317
317
start := time .Now ()
318
318
err0 = lf .downloadLedger (cs .ctx , peer , round )
319
319
if err0 == nil {
320
- cs .log .Infof ("ledger downloaded in %d seconds" , time .Since (start )/ time .Second )
320
+ cs .log .Infof ("ledger downloaded from %s in %d seconds" , peerAddress ( peer ) , time .Since (start )/ time .Second )
321
321
start = time .Now ()
322
322
err0 = cs .ledgerAccessor .BuildMerkleTrie (cs .ctx , cs .updateVerifiedCounts )
323
323
if err0 == nil {
324
324
cs .log .Infof ("built merkle trie in %d seconds" , time .Since (start )/ time .Second )
325
325
break
326
326
}
327
327
// failed to build the merkle trie for the above catchpoint file.
328
+ cs .log .Infof ("failed to build merkle trie for catchpoint file from %s: %v" , peerAddress (peer ), err0 )
328
329
cs .blocksDownloadPeerSelector .rankPeer (psp , peerRankInvalidDownload )
329
330
} else {
331
+ cs .log .Infof ("failed to download catchpoint ledger from peer %s: %v" , peerAddress (peer ), err0 )
330
332
cs .blocksDownloadPeerSelector .rankPeer (psp , peerRankDownloadFailed )
331
333
}
332
334
You can’t perform that action at this time.
0 commit comments