From d272a0ae917bedb5af6ac9491a9ae791492fd39b Mon Sep 17 00:00:00 2001 From: capt4ce Date: Tue, 31 Mar 2020 11:07:58 +0800 Subject: [PATCH] add more info in log --- core/blockchainsync/downloadBlockchain.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/blockchainsync/downloadBlockchain.go b/core/blockchainsync/downloadBlockchain.go index 337be221e..e11094dd1 100644 --- a/core/blockchainsync/downloadBlockchain.go +++ b/core/blockchainsync/downloadBlockchain.go @@ -126,7 +126,13 @@ func (bd *BlockchainDownloader) GetPeerBlockchainInfo() (*PeerBlockchainInfo, er Peer: peer, CommonBlock: commonBlock, }, blocker.NewBlocker(blocker.ChainValidationErr, - "cumulative difficulty is lower/same with the current node's") + fmt.Sprintf( + "cumulative difficulty is lower/same with the current node's. Own: %s/%d, Peer: %s/%d", + lastBlock.CumulativeDifficulty, lastBlock.Height, + peerCumulativeDifficultyResponse.CumulativeDifficulty, + peerCumulativeDifficultyResponse.Height, + ), + ) } monitoring.IncrementMainchainDownloadCycleDebugger(bd.ChainType, 38)