Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #6905 from LiskHQ/6887-update_bft_api
Browse files Browse the repository at this point in the history
Update aggregate commit empty condition - Closes #6887
  • Loading branch information
shuse2 authored Nov 19, 2021
2 parents 4b1bf5c + 356ddf8 commit ecda816
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion framework/src/modules/bft/bft_votes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ export const updateMaxHeightPrecommitted = async (

export const updateMaxHeightCertified = (bftVotes: BFTVotes, header: BlockHeader): void => {
if (
header.aggregateCommit.height === 0 &&
header.aggregateCommit.aggregationBits.length === 0 &&
header.aggregateCommit.certificateSignature.length === 0
) {
Expand Down
2 changes: 1 addition & 1 deletion framework/test/unit/modules/bft/bft_votes.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ describe('BFT votes', () => {
aggregateCommit: {
aggregationBits: Buffer.alloc(0),
certificateSignature: Buffer.alloc(0),
height: 0,
height: 10,
},
}),
);
Expand Down

0 comments on commit ecda816

Please sign in to comment.