mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 10:20:44 +00:00
Merge pull request #739 from gzliudan/fix-preCheck
core: fix preCheck for RandomizeSMC after EIP-1559
This commit is contained in:
commit
8e72c6dafb
1 changed files with 1 additions and 1 deletions
|
|
@ -267,7 +267,7 @@ func (st *StateTransition) preCheck() error {
|
||||||
}
|
}
|
||||||
// This will panic if baseFee is nil, but basefee presence is verified
|
// This will panic if baseFee is nil, but basefee presence is verified
|
||||||
// as part of header validation.
|
// as part of header validation.
|
||||||
if st.gasFeeCap.Cmp(st.evm.Context.BaseFee) < 0 {
|
if (msg.To() == nil || *msg.To() != common.RandomizeSMCBinary) && st.gasFeeCap.Cmp(st.evm.Context.BaseFee) < 0 {
|
||||||
return fmt.Errorf("%w: address %v, maxFeePerGas: %s baseFee: %s", ErrFeeCapTooLow,
|
return fmt.Errorf("%w: address %v, maxFeePerGas: %s baseFee: %s", ErrFeeCapTooLow,
|
||||||
msg.From().Hex(), st.gasFeeCap, st.evm.Context.BaseFee)
|
msg.From().Hex(), st.gasFeeCap, st.evm.Context.BaseFee)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue