Skip to content

Commit 9a71f32

Browse files
committed
Use correct view when creating a Commit message
1 parent 0e45e6b commit 9a71f32

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
@@ -1972,15 +1972,13 @@ impl Worker {
19721972
if height == self.height - 1 {
19731973
let block = self.client().block(&height.into()).expect("Parent block should exist");
19741974
let block_hash = block.hash();
1975-
let seal = block.seal();
1976-
let author_view =
1977-
TendermintSealView::new(&seal).author_view().expect("Block is already verified and imported");
1975+
let finalized_view = self.finalized_view_of_previous_block;
19781976

19791977
let votes = self
19801978
.votes
19811979
.get_all_votes_in_round(&VoteStep {
19821980
height,
1983-
view: author_view,
1981+
view: finalized_view,
19841982
step: Step::Precommit,
19851983
})
19861984
.into_iter()

0 commit comments

Comments
 (0)