state.ApplyBlock takes evpool and calls MarkEvidenceAsCommitted

This commit is contained in:
Ethan Buchman
2017-12-26 20:27:32 -05:00
parent 3271634e7a
commit 869d873d5c
8 changed files with 27 additions and 29 deletions
+4 -2
View File
@@ -87,6 +87,7 @@ type State interface {
type EvidencePool interface {
PendingEvidence() []Evidence
AddEvidence(Evidence) error
MarkEvidenceAsCommitted([]Evidence)
}
// MockMempool is an empty implementation of a Mempool, useful for testing.
@@ -94,5 +95,6 @@ type EvidencePool interface {
type MockEvidencePool struct {
}
func (m MockEvidencePool) PendingEvidence() []Evidence { return nil }
func (m MockEvidencePool) AddEvidence(Evidence) error { return nil }
func (m MockEvidencePool) PendingEvidence() []Evidence { return nil }
func (m MockEvidencePool) AddEvidence(Evidence) error { return nil }
func (m MockEvidencePool) MarkEvidenceAsCommitted([]Evidence) {}