From 37d91cde0dbabd1da8d237b792b92f619e6f80a7 Mon Sep 17 00:00:00 2001 From: lightclient Date: Fri, 7 Feb 2025 13:19:52 -0700 Subject: [PATCH] core/txpool/legacypool: check code hash to determine delegation status --- core/txpool/legacypool/legacypool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/txpool/legacypool/legacypool.go b/core/txpool/legacypool/legacypool.go index 65f8ba0196..722e5e802f 100644 --- a/core/txpool/legacypool/legacypool.go +++ b/core/txpool/legacypool/legacypool.go @@ -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) }