Fix concurrency and tests #4

Merged
roysc merged 6 commits from fix-test-chain-config into v5 2023-10-04 07:44:45 +00:00
Showing only changes of commit b305f541a4 - Show all commits

View File

@ -404,6 +404,7 @@ func (sds *Service) writeStateDiff(block *types.Block, parentRoot common.Hash, p
if err != nil {
return err
}
defer tx.RollbackOnFailure(err)
// defer handling of commit/rollback for any return case
output := func(node sdtypes.StateLeafNode) error {
return sds.indexer.PushStateNode(tx, node, block.Hash().String())