Skip to content

Commit

Permalink
Return empty list instead of error in getPooledTxs handler (#2547)
Browse files Browse the repository at this point in the history
  • Loading branch information
jangko authored Aug 6, 2024
1 parent 6bae929 commit 3cef119
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nimbus/sync/handlers/eth.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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]):
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3cef119

Please sign in to comment.