Skip to content

Commit 8e5bdc8

Browse files
author
Seulgi Kim
committed
Adjust the log level in the block sync extension
The score can become smaller because the block sync extension propagates proposal block. If the nodes agree on the higher view block after a node propagates a proposal block, the score can become smaller.
1 parent 52fa397 commit 8e5bdc8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sync/src/block/extension.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,8 @@ impl Extension {
444444
match self.header_downloaders.entry(*from) {
445445
Entry::Occupied(mut peer) => {
446446
if !peer.get_mut().update(total_score, best_hash) {
447-
cwarn!(SYNC, "Peer #{} status updated but score is less than before", from);
447+
// FIXME: It should be an error level if the consensus is PoW.
448+
cdebug!(SYNC, "Peer #{} status updated but score is less than before", from);
448449
return
449450
}
450451
}

0 commit comments

Comments
 (0)