This commit is contained in:
Sina Mahmoodi 2024-06-12 13:29:40 +02:00
parent ac690f0d4c
commit a9842e500c

View file

@ -241,6 +241,7 @@ func (sim *simulator) processBlock(ctx context.Context, block *simBlock, header,
} }
b := types.NewBlock(header, &types.Body{Transactions: txes, Withdrawals: withdrawals}, receipts, trie.NewStackTrie(nil)) b := types.NewBlock(header, &types.Body{Transactions: txes, Withdrawals: withdrawals}, receipts, trie.NewStackTrie(nil))
res := RPCMarshalBlock(b, true, sim.fullTx, config) res := RPCMarshalBlock(b, true, sim.fullTx, config)
res["totalDifficulty"] = (*hexutil.Big)(sim.b.GetTd(ctx, sim.base.Hash()))
repairLogs(callResults, res["hash"].(common.Hash)) repairLogs(callResults, res["hash"].(common.Hash))
res["calls"] = callResults res["calls"] = callResults