eth/handler: check hash against chain using in-mem cache only

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2025-12-18 09:49:17 +01:00
parent b8f264aad6
commit d220e4c844
No known key found for this signature in database
GPG key ID: 0FE274EE8C95166E

View file

@ -184,7 +184,7 @@ func newHandler(config *handlerConfig) (*handler, error) {
} }
chainTx := func(hash common.Hash) bool { chainTx := func(hash common.Hash) bool {
// check on chain (no need to check limbo separately, as chain checks limbo too) // check on chain (no need to check limbo separately, as chain checks limbo too)
return h.chain.HasCanonicalTransaction(hash, false) return h.chain.HasCanonicalTransaction(hash, true)
} }
validateMeta := func(tx common.Hash, kind byte) error { validateMeta := func(tx common.Hash, kind byte) error {
if hasTx(tx) { if hasTx(tx) {