From c8c819359c6f18e1b7a02fc806e3e313f7a1929e Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Fri, 15 Jan 2021 19:39:45 +0200 Subject: [PATCH] More clear error message when a validator exit was rejected --- beacon_chain/conf.nim | 2 +- beacon_chain/nimbus_beacon_node.nim | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/beacon_chain/conf.nim b/beacon_chain/conf.nim index 6c8dd085a..dc5d4b046 100644 --- a/beacon_chain/conf.nim +++ b/beacon_chain/conf.nim @@ -386,7 +386,7 @@ type rpcUrlForExit* {. name: "rpc-url" - defaultValue: parseUri("wss://localhost:" & $defaultEth2RpcPort) + defaultValue: parseUri("http://localhost:" & $defaultEth2RpcPort) desc: "URL of the beacon node JSON-RPC service" }: Uri exitAtEpoch* {. diff --git a/beacon_chain/nimbus_beacon_node.nim b/beacon_chain/nimbus_beacon_node.nim index 69cc5e9fc..91da071d4 100644 --- a/beacon_chain/nimbus_beacon_node.nim +++ b/beacon_chain/nimbus_beacon_node.nim @@ -1272,7 +1272,8 @@ proc handleValidatorExitCommand(config: BeaconNodeConf) {.async.} = echo "The voluntary exit was not submitted successfully. Please try again." quit 1 except CatchableError as err: - fatal "Failed to send the signed exit message to the beacon node RPC" + fatal "Failed to send the signed exit message to the beacon node RPC", + err = err.msg quit 1 programMain: