mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
Merge 2
This commit is contained in:
parent
a709465c8b
commit
16de33504e
3 changed files with 2 additions and 5 deletions
|
|
@ -148,7 +148,7 @@ func ApplyMessage(
|
|||
}
|
||||
|
||||
receipt.Logs = state.GetLogs(tx.Hash(), header.Number.Uint64(), blockHash)
|
||||
receipt.Bloom = types.CreateBloom(types.Receipts{receipt})
|
||||
receipt.Bloom = types.CreateBloom(receipt)
|
||||
receipt.BlockHash = blockHash
|
||||
receipt.BlockNumber = header.Number
|
||||
receipt.TransactionIndex = 0
|
||||
|
|
|
|||
|
|
@ -1052,9 +1052,6 @@ func (s *StateDB) mvRecordWritten(object *stateObject) *stateObject {
|
|||
// existing account with the given address, otherwise it will be silently overwritten.
|
||||
func (s *StateDB) createObject(addr common.Address) *stateObject {
|
||||
obj := newObject(s, addr, nil)
|
||||
if s.logger != nil && s.logger.OnNewAccount != nil {
|
||||
s.logger.OnNewAccount(addr)
|
||||
}
|
||||
|
||||
s.journal.append(createObjectChange{account: addr})
|
||||
s.setStateObject(obj)
|
||||
|
|
|
|||
|
|
@ -354,7 +354,7 @@ func (sim *simulator) processBlock(ctx context.Context, block *simBlock, header,
|
|||
}
|
||||
blockBody := &types.Body{Transactions: txes, Withdrawals: *block.BlockOverrides.Withdrawals}
|
||||
chainHeadReader := &simChainHeadReader{ctx, sim.b}
|
||||
b, err := sim.b.Engine().FinalizeAndAssemble(chainHeadReader, header, sim.state, blockBody, receipts)
|
||||
b, err := sim.b.Engine().FinalizeAndAssemble(chainHeadReader, header, sim.state, blockBody, receipts, nil)
|
||||
if err != nil {
|
||||
return nil, nil, nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue