Skip to content

Commit

Permalink
Improve tx pool logging in RPC when then pool is not enabled or node …
Browse files Browse the repository at this point in the history
…not in sync. (#7106)

* update tx pool logging when not enabled.

Signed-off-by: Matt Nelson <[email protected]>

* Spotless

Signed-off-by: Matt Nelson <[email protected]>

* better wording

Co-authored-by: Sally MacFarlane <[email protected]>
Signed-off-by: Matt Nelson <[email protected]>

---------

Signed-off-by: Matt Nelson <[email protected]>
Co-authored-by: Sally MacFarlane <[email protected]>
  • Loading branch information
non-fungible-nelson and macfarla authored May 16, 2024
1 parent 6fe5fe8 commit 5bf2bfa
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ public enum RpcErrorType implements RpcMethodError {
METHOD_NOT_ENABLED(-32604, "Method not enabled"),

// Resource unavailable error
TX_POOL_DISABLED(-32002, "Transaction pool not enabled"),
TX_POOL_DISABLED(
-32002,
"Transaction pool not enabled. (Either txpool explicitly disabled, or node not yet in sync)."),

// eth_getBlockByNumber specific error message
UNKNOWN_BLOCK(-39001, "Unknown block"),
Expand Down

0 comments on commit 5bf2bfa

Please sign in to comment.