forked from cerc-io/ipld-eth-server
15 lines
337 B
Go
15 lines
337 B
Go
package fakes
|
|
|
|
type MockLightBlockRetriever struct {
|
|
FirstBlock int64
|
|
FirstBlockErr error
|
|
}
|
|
|
|
func (retriever *MockLightBlockRetriever) RetrieveFirstBlock() (int64, error) {
|
|
return retriever.FirstBlock, retriever.FirstBlockErr
|
|
}
|
|
|
|
func (retriever *MockLightBlockRetriever) RetrieveMostRecentBlock() (int64, error) {
|
|
return 0, nil
|
|
}
|