Skip to content

Commit 16bb075

Browse files
committed
If best block is not changed don't move to the next height
1 parent a6f7c23 commit 16bb075

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/src/consensus/tendermint/worker.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,11 @@ impl Worker {
13121312
view,
13131313
} => {
13141314
cinfo!(ENGINE, "Commit timeout.");
1315-
if self.client().block(&block_hash.into()).is_none() {
1315+
1316+
let proposal_imported = self.client().block(&block_hash.into()).is_some();
1317+
let best_block_header = self.client().best_block_header();
1318+
1319+
if !proposal_imported || best_block_header.hash() != block_hash {
13161320
cwarn!(ENGINE, "Best chain is not updated yet, wait until imported");
13171321
self.step = TendermintState::CommitTimedout {
13181322
block_hash,

0 commit comments

Comments
 (0)