mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
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:
parent
b8f264aad6
commit
d220e4c844
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue