lighthouse/beacon_node/beacon_chain/src
pscott e164371083 Set Graffiti via CLI (#1320)
## Issue Addressed

Closes #1319 

## Proposed Changes

This issue:
1. Allows users to edit their Graffiti via the cli option `--graffiti`. If the graffiti is too long, lighthouse will not start and throw an error message. Otherwise, it will set the Graffiti to be the one provided by the user, right-padded with 0s.
2. Create a new `Graffiti` type and unify the code around it. With this type, everything is enforced at compile-time, and the code can be (I think...) panic-free! :)

## Additional info

Currently, only `&str` are supported, as this is the returned type by `.arg("graffiti")`.
Since this is user-input, I tried being as careful as I could. This is also why I created the `Graffiti` type, to make sure I could check as much as possible at compile time.
2020-07-14 08:05:02 +00:00
..
attestation_verification.rs Use all attestation subnets (#1257) 2020-06-18 19:11:03 +10:00
beacon_chain.rs Set Graffiti via CLI (#1320) 2020-07-14 08:05:02 +00:00
beacon_fork_choice_store.rs Apply store refactor to new fork choice 2020-06-17 15:20:44 +10:00
beacon_snapshot.rs Add no-copy block processing cache (#863) 2020-04-06 10:53:33 +10:00
block_verification.rs Remove old block processing shim (#1327) 2020-07-06 16:28:00 +10:00
builder.rs Set Graffiti via CLI (#1320) 2020-07-14 08:05:02 +00:00
errors.rs Process exits and slashings off the network (#1253) 2020-06-18 21:06:34 +10:00
eth1_chain.rs Cache deposit signature verification (#1298) 2020-06-26 11:43:06 +10:00
events.rs Add first Server Sent Events API endpoint (#1107) 2020-06-06 16:39:11 +10:00
head_tracker.rs Race condition fix + Reliability improvements around forks pruning (#1132) 2020-05-16 13:23:32 +10:00
lib.rs Remove old block processing shim (#1327) 2020-07-06 16:28:00 +10:00
metrics.rs v0.12 fork choice update (#1229) 2020-06-17 11:10:22 +10:00
migrate.rs Write new blocks and states to the database atomically (#1285) 2020-07-01 12:45:57 +10:00
naive_aggregation_pool.rs Stable futures (#879) 2020-05-17 11:16:48 +00:00
observed_attestations.rs Move long-running tests to dbg (#1137) 2020-05-13 10:55:02 +10:00
observed_attesters.rs Fix clippy's performance lints (#1286) 2020-06-26 00:04:08 +10:00
observed_block_producers.rs Add attestation gossip pre-verification (#983) 2020-05-06 21:42:56 +10:00
observed_operations.rs Process exits and slashings off the network (#1253) 2020-06-18 21:06:34 +10:00
persisted_beacon_chain.rs Clean up database abstractions (#1200) 2020-06-01 08:13:49 +10:00
persisted_fork_choice.rs v0.12 fork choice update (#1229) 2020-06-17 11:10:22 +10:00
shuffling_cache.rs Optimize attestation processing (#841) 2020-03-05 17:19:35 +11:00
snapshot_cache.rs Add no-copy block processing cache (#863) 2020-04-06 10:53:33 +10:00
test_utils.rs Merge remote-tracking branch 'origin/master' into spec-v0.12 2020-06-26 12:57:56 +10:00
timeout_rw_lock.rs Add timeouts to canonical head rwlock (#759) 2020-01-06 17:30:37 +11:00
validator_pubkey_cache.rs Add attestation gossip pre-verification (#983) 2020-05-06 21:42:56 +10:00