From 2bf4c912694854226dfb360d02df4e6b7f6206ac Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Thu, 22 Jun 2023 12:54:50 -0500 Subject: [PATCH] Fix mock --- statediff/test_helpers/mocks/indexer.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/statediff/test_helpers/mocks/indexer.go b/statediff/test_helpers/mocks/indexer.go index 767f436f1..6ab19f0da 100644 --- a/statediff/test_helpers/mocks/indexer.go +++ b/statediff/test_helpers/mocks/indexer.go @@ -17,6 +17,7 @@ package mocks import ( + "github.com/ethereum/go-ethereum/statediff/indexer/models" "math/big" "time" @@ -32,6 +33,14 @@ var _ interfaces.Batch = &batch{} // StateDiffIndexer is a mock state diff indexer type StateDiffIndexer struct{} +func (sdi *StateDiffIndexer) DetectGaps(beginBlock uint64, endBlock uint64) ([]*interfaces.BlockGap, error) { + return nil, nil +} + +func (sdi *StateDiffIndexer) CurrentBlock() (*models.HeaderModel, error) { + return nil, nil +} + type batch struct{} func (sdi *StateDiffIndexer) HasBlock(hash common.Hash, number uint64) (bool, error) {