Skip to content

Commit 1754b09

Browse files
committed
Use correct view when creating a Commit message
1 parent 2fb735b commit 1754b09

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

core/src/consensus/tendermint/worker.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,15 +1969,13 @@ impl Worker {
19691969
if height == self.height - 1 {
19701970
let block = self.client().block(&height.into()).expect("Parent block should exist");
19711971
let block_hash = block.hash();
1972-
let seal = block.seal();
1973-
let author_view =
1974-
TendermintSealView::new(&seal).author_view().expect("Block is already verified and imported");
1972+
let finalized_view = self.finalized_view_of_previous_block;
19751973

19761974
let votes = self
19771975
.votes
19781976
.get_all_votes_in_round(&VoteStep {
19791977
height,
1980-
view: author_view,
1978+
view: finalized_view,
19811979
step: Step::Precommit,
19821980
})
19831981
.into_iter()

0 commit comments

Comments
 (0)