Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

separate non-zero exit code for doppelganger detection #3728

Merged
merged 1 commit into from
Jun 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion beacon_chain/gossip_processing/eth2_processor.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
9 changes: 8 additions & 1 deletion docs/the_nimbus_book/src/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 |