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. (hyperledger#7106)

* update tx pool logging when not enabled.

Signed-off-by: Matt Nelson <85905982+non-fungible-nelson@users.noreply.github.com>

* Spotless

Signed-off-by: Matt Nelson <85905982+non-fungible-nelson@users.noreply.github.com>

* better wording

Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Matt Nelson <85905982+non-fungible-nelson@users.noreply.github.com>

---------

Signed-off-by: Matt Nelson <85905982+non-fungible-nelson@users.noreply.github.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
  • Loading branch information
2 people authored and matthew1001 committed Jun 7, 2024
1 parent 87e8282 commit a0b4832
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 a0b4832

Please sign in to comment.