Port: Check if the statediff is already in progress or completed.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user