367: Check if the statediff is already in progress or completed. #392

Merged
telackey merged 3 commits from telackey/367b into v1.11.6-statediff-v5 2023-06-01 18:21:33 +00:00
Showing only changes of commit bd5b7ff77b - Show all commits
+4
View File
@@ -34,6 +34,10 @@ type StateDiffIndexer struct{}
type batch struct{}
func (sdi *StateDiffIndexer) HasBlock(block *types.Block) (bool, error) {
return false, nil
}
func (sdi *StateDiffIndexer) PushBlock(block *types.Block, receipts types.Receipts, totalDifficulty *big.Int) (interfaces.Batch, error) {
return &batch{}, nil
}