15 lines
352 B
Go
15 lines
352 B
Go
|
package fakes
|
||
|
|
||
|
type MockHeaderSyncBlockRetriever struct {
|
||
|
FirstBlock int64
|
||
|
FirstBlockErr error
|
||
|
}
|
||
|
|
||
|
func (retriever *MockHeaderSyncBlockRetriever) RetrieveFirstBlock() (int64, error) {
|
||
|
return retriever.FirstBlock, retriever.FirstBlockErr
|
||
|
}
|
||
|
|
||
|
func (retriever *MockHeaderSyncBlockRetriever) RetrieveMostRecentBlock() (int64, error) {
|
||
|
return 0, nil
|
||
|
}
|