diff --git a/beacon_chain/gossip_processing/eth2_processor.nim b/beacon_chain/gossip_processing/eth2_processor.nim index 7213fc132..b4e8e56fa 100644 --- a/beacon_chain/gossip_processing/eth2_processor.nim +++ b/beacon_chain/gossip_processing/eth2_processor.nim @@ -281,7 +281,11 @@ proc checkForPotentialDoppelganger( validatorIndex, validatorPubkey, attestation = shortLog(attestation) - quit QuitFailure + + # Avoid colliding with + # https://www.freedesktop.org/software/systemd/man/systemd.exec.html#Process%20Exit%20Codes + const QuitDoppelganger = 1031 + quit QuitDoppelganger proc attestationValidator*( self: ref Eth2Processor, src: MsgSource, diff --git a/docs/the_nimbus_book/src/options.md b/docs/the_nimbus_book/src/options.md index fa7c5b747..1af8d49d9 100644 --- a/docs/the_nimbus_book/src/options.md +++ b/docs/the_nimbus_book/src/options.md @@ -9,7 +9,7 @@ You can pass any `nimbus_beacon_node` options to the `prater` and `mainnet` scri To see a list of the command line options availabe to you, with descriptions, run: ``` -build/./nimbus_beacon_node --help +build/nimbus_beacon_node --help ``` You should see the following output: @@ -128,3 +128,10 @@ num-threads = 0 trusted-node-url = "http://192.168.1.20:5052" ``` +# Exit Codes + +| Exit code | Description | +|-----------|---------| +| 0 | Successful exit | +| 1 | Generic failure or unspecified error | +| 1031 | Doppelganger detection; one might prefer not to restart automatically |