Update plugeth-statediff to v0.1.4 #2

Merged
roysc merged 2 commits from update-plugin into v5 2023-09-30 05:54:46 +00:00
Showing only changes of commit 7c00993ddb - Show all commits

View File

@ -26,7 +26,7 @@ var (
// - block hash/number are left as zero // - block hash/number are left as zero
func IndexStateDiff(dbConfig postgres.Config, stateCache state.Database, rootA, rootB common.Hash) error { func IndexStateDiff(dbConfig postgres.Config, stateCache state.Database, rootA, rootB common.Hash) error {
_, indexer, err := indexer.NewStateDiffIndexer( _, indexer, err := indexer.NewStateDiffIndexer(
context.Background(), ChainConfig, node.Info{}, dbConfig) context.Background(), ChainConfig, node.Info{}, dbConfig, true)
if err != nil { if err != nil {
return err return err
} }
@ -54,5 +54,5 @@ func IndexStateDiff(dbConfig postgres.Config, stateCache state.Database, rootA,
return err return err
} }
} }
return tx.Submit(err) return tx.Submit()
} }