From 7c00993ddb179e02a2021bef97e76168d8f70e03 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Sat, 30 Sep 2023 11:02:02 +0800 Subject: [PATCH] update calls --- trie_by_cid/helper/statediff_helper.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trie_by_cid/helper/statediff_helper.go b/trie_by_cid/helper/statediff_helper.go index db6308a..0f0820b 100644 --- a/trie_by_cid/helper/statediff_helper.go +++ b/trie_by_cid/helper/statediff_helper.go @@ -26,7 +26,7 @@ var ( // - block hash/number are left as zero func IndexStateDiff(dbConfig postgres.Config, stateCache state.Database, rootA, rootB common.Hash) error { _, indexer, err := indexer.NewStateDiffIndexer( - context.Background(), ChainConfig, node.Info{}, dbConfig) + context.Background(), ChainConfig, node.Info{}, dbConfig, true) if err != nil { return err } @@ -54,5 +54,5 @@ func IndexStateDiff(dbConfig postgres.Config, stateCache state.Database, rootA, return err } } - return tx.Submit(err) + return tx.Submit() }