Browse Source

Allow for test apps to return nil hashes

pull/164/head
Jae Kwon 9 years ago
parent
commit
35abb4df92
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      consensus/state_test.go

+ 3
- 0
consensus/state_test.go View File

@ -192,6 +192,9 @@ func TestBadProposal(t *testing.T) {
// make the block bad by tampering with statehash
stateHash := propBlock.AppHash
if len(stateHash) == 0 {
stateHash = make([]byte, 32)
}
stateHash[0] = byte((stateHash[0] + 1) % 255)
propBlock.AppHash = stateHash
propBlockParts := propBlock.MakePartSet()


Loading…
Cancel
Save