ipld-eth-server/pkg/fakes/mock_block_retriever.go
2019-03-06 12:43:06 -06:00

15 lines
322 B
Go

package fakes
type MockBlockRetriever struct {
FirstBlock int64
FirstBlockErr error
}
func (retriever *MockBlockRetriever) RetrieveFirstBlock() (int64, error) {
return retriever.FirstBlock, retriever.FirstBlockErr
}
func (retriever *MockBlockRetriever) RetrieveMostRecentBlock() (int64, error) {
return 0, nil
}