mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 01:43:47 +00:00
core/txpool/legacypool: check code hash to determine delegation status
This commit is contained in:
parent
2dc72d52f7
commit
37d91cde0d
1 changed files with 1 additions and 1 deletions
|
|
@ -567,7 +567,7 @@ func (pool *LegacyPool) validateTx(tx *types.Transaction) error {
|
|||
if list := pool.queue[addr]; list != nil {
|
||||
have += list.Len()
|
||||
}
|
||||
if pool.currentState.GetCode(addr) != nil {
|
||||
if pool.currentState.GetCodeHash(addr) != types.EmptyCodeHash {
|
||||
// Allow at most one in-flight tx for delegated accounts.
|
||||
return have, max(0, 1-have)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue