mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-13 07:23:46 +00:00
fix(signer): update LatestSigner logic (#880)
This commit is contained in:
parent
dcd0004376
commit
a40ef3f6e0
1 changed files with 3 additions and 0 deletions
|
|
@ -65,6 +65,9 @@ func MakeSigner(config *params.ChainConfig, blockNumber *big.Int) Signer {
|
||||||
// have the current block number available, use MakeSigner instead.
|
// have the current block number available, use MakeSigner instead.
|
||||||
func LatestSigner(config *params.ChainConfig) Signer {
|
func LatestSigner(config *params.ChainConfig) Signer {
|
||||||
if config.ChainID != nil {
|
if config.ChainID != nil {
|
||||||
|
if config.CurieBlock != nil {
|
||||||
|
return NewLondonSignerWithEIP4844(config.ChainID)
|
||||||
|
}
|
||||||
if config.LondonBlock != nil {
|
if config.LondonBlock != nil {
|
||||||
return NewLondonSignerWithEIP4844(config.ChainID)
|
return NewLondonSignerWithEIP4844(config.ChainID)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue