evidence linked with consensus/node. compiles

This commit is contained in:
Ethan Buchman
2017-12-26 20:26:21 -05:00
parent 6c4a0f9363
commit 7a18fa887d
8 changed files with 65 additions and 35 deletions
+2 -2
View File
@@ -84,7 +84,7 @@ type State interface {
// UNSTABLE
type EvidencePool interface {
PendingEvidence() []Evidence
AddEvidence(Evidence)
AddEvidence(Evidence) error
}
// MockMempool is an empty implementation of a Mempool, useful for testing.
@@ -93,4 +93,4 @@ type MockEvidencePool struct {
}
func (m MockEvidencePool) PendingEvidence() []Evidence { return nil }
func (m MockEvidencePool) AddEvidence(Evidence) {}
func (m MockEvidencePool) AddEvidence(Evidence) error { return nil }