fix state tests

This commit is contained in:
Ethan Buchman
2018-06-03 14:01:45 +02:00
committed by Alexander Simmerl
parent 2889e5d065
commit fe62dc8724
4 changed files with 74 additions and 38 deletions
+11
View File
@@ -88,6 +88,17 @@ func (tm2pb) Evidence(ev_ Evidence) abci.Evidence {
// Time: ev.Time(),
// TotalVotingPower: 10,
}
case *MockGoodEvidence, MockGoodEvidence:
return abci.Evidence{
Type: "mock/good",
Validator: abci.Validator{
Address: ev.Address(),
// TODO
},
Height: ev.Height(),
// Time: ev.Time(),
// TotalVotingPower: 10,
}
default:
panic(fmt.Sprintf("Unknown evidence type: %v %v", ev_, reflect.TypeOf(ev_)))
}