Browse Source

tools/tm-signer-harness: update height and round for test harness (#3466)

In order to re-enable the test harness for the KMS (see
tendermint/kms#227), we need some marginally more realistic proposals
and votes. This is because the KMS does some additional sanity checks
now to ensure the height and round are increasing over time.
pull/3475/head
Thane Thomson 6 years ago
committed by Anton Kaliaev
parent
commit
85be2a554e
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      tools/tm-signer-harness/internal/test_harness.go

+ 4
- 4
tools/tm-signer-harness/internal/test_harness.go View File

@ -198,8 +198,8 @@ func (th *TestHarness) TestSignProposal() error {
hash := tmhash.Sum([]byte("hash")) hash := tmhash.Sum([]byte("hash"))
prop := &types.Proposal{ prop := &types.Proposal{
Type: types.ProposalType, Type: types.ProposalType,
Height: 12345,
Round: 23456,
Height: 100,
Round: 0,
POLRound: -1, POLRound: -1,
BlockID: types.BlockID{ BlockID: types.BlockID{
Hash: hash, Hash: hash,
@ -240,8 +240,8 @@ func (th *TestHarness) TestSignVote() error {
hash := tmhash.Sum([]byte("hash")) hash := tmhash.Sum([]byte("hash"))
vote := &types.Vote{ vote := &types.Vote{
Type: voteType, Type: voteType,
Height: 12345,
Round: 23456,
Height: 101,
Round: 0,
BlockID: types.BlockID{ BlockID: types.BlockID{
Hash: hash, Hash: hash,
PartsHeader: types.PartSetHeader{ PartsHeader: types.PartSetHeader{


Loading…
Cancel
Save