Return empty list instead of error in getPooledTxs handler (#2547)

This commit is contained in:
andri lim 2024-08-06 22:06:48 +07:00 committed by GitHub
parent 6bae929439
commit 3cef119b78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -345,7 +345,8 @@ method getPooledTxs*(ctx: EthWireRef,
trace "handlers.getPooledTxs: tx not found", txHash
ok(list)
else:
err("txpool disabled")
var list: seq[PooledTransaction]
ok(list)
method getBlockBodies*(ctx: EthWireRef,
hashes: openArray[Hash256]):
@ -438,7 +439,7 @@ method handleAnnouncedTxs*(ctx: EthWireRef,
except CatchableError as exc:
return err(exc.msg)
else:
err("txpool disabled")
ok()
method handleAnnouncedTxsHashes*(
ctx: EthWireRef;