Port: Check if the statediff is already in progress or completed.

This commit is contained in:
2023-06-23 21:21:14 +08:00
parent b6fc15dd81
commit 8fa061ded5
10 changed files with 89 additions and 20 deletions
+4
View File
@@ -35,6 +35,10 @@ type StateDiffIndexer struct{}
type batch struct{}
func (sdi *StateDiffIndexer) HasBlock(hash common.Hash, number uint64) (bool, error) {
return false, nil
}
func (sdi *StateDiffIndexer) PushBlock(block *types.Block, receipts types.Receipts, totalDifficulty *big.Int) (interfaces.Batch, error) {
return &batch{}, nil
}