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

This commit is contained in:
2023-07-14 12:57:34 +08:00
parent 49e0beb389
commit c96215f9be
10 changed files with 89 additions and 20 deletions
+6
View File
@@ -413,6 +413,12 @@ func (sdi *StateDiffIndexer) PushIPLD(batch interfaces.Batch, ipld sdtypes.IPLD)
return nil
}
// HasBlock checks whether the indicated block already exists in the output.
// In the "dump" case, this is presumed to be false.
func (sdi *StateDiffIndexer) HasBlock(hash common.Hash, number uint64) (bool, error) {
return false, nil
}
// Close satisfies io.Closer
func (sdi *StateDiffIndexer) Close() error {
return sdi.dump.Close()