fix(core): fix a transaction Message assembling issue (#308)

This commit is contained in:
David 2024-08-29 15:01:47 +08:00 committed by GitHub
parent b5ac526d9a
commit 04d76e8f01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -91,6 +91,9 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
if err != nil {
return nil, nil, 0, fmt.Errorf("could not apply tx %d [%v]: %w", i, tx.Hash().Hex(), err)
}
if p.config.IsOntake(block.Number()) {
msg.BasefeeSharingPctg = DecodeOntakeExtraData(header.Extra)
}
statedb.SetTxContext(tx.Hash(), i)
receipt, err := applyTransaction(msg, p.config, gp, statedb, blockNumber, blockHash, tx, usedGas, vmenv)
if err != nil {