Skip to content

Commit

Permalink
Fix leader election test
Browse files Browse the repository at this point in the history
  • Loading branch information
agouin committed Jan 9, 2024
1 parent e68ce7f commit c1a24e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions signer/threshold_validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -582,9 +582,13 @@ func testThresholdValidatorLeaderElection(t *testing.T, threshold, total uint8)

var extension = []byte{0x1, 0x2, 0x3}

blockIDHash := sha256.New()
blockIDHash.Write([]byte("something"))

preCommit := cometproto.Vote{
Height: 1 + int64(i),
Round: 1,
BlockID: cometproto.BlockID{Hash: blockIDHash.Sum(nil)},
Type: cometproto.PrecommitType,
Extension: extension,
}
Expand Down

0 comments on commit c1a24e6

Please sign in to comment.