mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
add td
This commit is contained in:
parent
ac690f0d4c
commit
a9842e500c
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue