ipld-eth-server/pkg/fakes/mock_transaction_syncer.go

14 lines
339 B
Go
Raw Normal View History

2019-03-27 04:05:30 +00:00
package fakes
import "github.com/ethereum/go-ethereum/core/types"
type MockTransactionSyncer struct {
SyncTransactionsCalled bool
SyncTransactionsError error
}
func (syncer *MockTransactionSyncer) SyncTransactions(headerID int64, logs []types.Log) error {
syncer.SyncTransactionsCalled = true
return syncer.SyncTransactionsError
}