Skip to content

Commit 9d3955b

Browse files
committed
Add comment of can_change_canon_chain function
1 parent 5332d40 commit 9d3955b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/src/consensus/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,9 @@ pub trait ConsensusEngine: Sync + Send {
266266
header.hash()
267267
}
268268

269+
/// In PoW consensus, the higher scored block became the best block.
270+
/// In Tendermint consensus, the highest scored block may not be the best block.
271+
/// Only the child of the current best block could be the next best block in Tendermint consensus.
269272
fn can_change_canon_chain(&self, _header: &HeaderView) -> bool {
270273
true
271274
}

0 commit comments

Comments
 (0)