lighthouse-pulse/consensus
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
..
cached_tree_hash Update smallvec (#1339) 2020-07-07 16:57:27 +10:00
fork_choice Fix invalid attestation verification condition (#1321) 2020-07-01 12:45:34 +10:00
int_to_bytes Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
merkle_proof Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
proto_array Merge remote-tracking branch 'origin/master' into spec-v0.12 2020-06-26 12:57:56 +10:00
safe_arith Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
serde_hex Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
ssz Update smallvec (#1339) 2020-07-07 16:57:27 +10:00
ssz_derive Fix eval order lint in ssz_derive (#1210) 2020-05-28 11:37:40 +10:00
ssz_types Bump all spec tags to v0.12.1 (#1275) 2020-06-19 11:18:27 +10:00
state_processing get_active_validator_indices() now has bound check (#1300) 2020-06-29 18:21:51 +10:00
swap_or_not_shuffle Bump all spec tags to v0.12.1 (#1275) 2020-06-19 11:18:27 +10:00
tree_hash Update smallvec (#1339) 2020-07-07 16:57:27 +10:00
tree_hash_derive Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
types Set Graffiti via CLI (#1320) 2020-07-14 08:05:02 +00:00