|
|
@ -50,7 +50,7 @@ func TestResetValidator(t *testing.T) { |
|
|
|
// test vote
|
|
|
|
height, round := int64(10), 1 |
|
|
|
voteType := byte(types.PrevoteType) |
|
|
|
blockID := types.BlockID{[]byte{1, 2, 3}, types.PartSetHeader{}} |
|
|
|
blockID := types.BlockID{Hash: []byte{1, 2, 3}} |
|
|
|
vote := newVote(privVal.Key.Address, 0, height, round, voteType, blockID) |
|
|
|
err = privVal.SignVote("mychainid", vote) |
|
|
|
assert.NoError(t, err, "expected no error signing vote") |
|
|
@ -207,8 +207,8 @@ func TestSignProposal(t *testing.T) { |
|
|
|
|
|
|
|
privVal := GenFilePV(tempKeyFile.Name(), tempStateFile.Name()) |
|
|
|
|
|
|
|
block1 := types.BlockID{[]byte{1, 2, 3}, types.PartSetHeader{5, []byte{1, 2, 3}}} |
|
|
|
block2 := types.BlockID{[]byte{3, 2, 1}, types.PartSetHeader{10, []byte{3, 2, 1}}} |
|
|
|
block1 := types.BlockID{Hash: []byte{1, 2, 3}, PartsHeader: types.PartSetHeader{Total: 5, Hash: []byte{1, 2, 3}}} |
|
|
|
block2 := types.BlockID{Hash: []byte{3, 2, 1}, PartsHeader: types.PartSetHeader{Total: 10, Hash: []byte{3, 2, 1}}} |
|
|
|
height, round := int64(10), 1 |
|
|
|
|
|
|
|
// sign a proposal for first time
|
|
|
|