Commit Graph

12 Commits

Author SHA1 Message Date
Justin a85f59779a
Clean up data structures
This includes:

* Giving every data structure a name (e.g. `BeaconChainBlock`)
* Making data structure names consistent (e.g. `SpecialObject` => `SpecialRecord`)
* Arranging the fields within the data structures in a more logical/consistent manner
* Reworking the comments to be more concise and to the point
* Rename some fields for consistency:
    * `shard_id` => `shard` (for consistency with `withdrawal_shard`)
    * `last_state_recalculation` => `last_state_recalculation_slot` (for consistency with `last_finalized_slot`, `last_justified_slot`, etc.)
    * `current_dynasty` => `dynasty` (for consistency with `slot`, `shard`)
    * `pow_chain_ref` => `pow_chain_reference` (abbreviations are avoided throughout)
* Various other cleanups
2018-10-04 11:09:39 +01:00
Danny Ryan ed014c4fbc Merge branch 'master' into todos 2018-10-03 21:47:50 -05:00
Justin 2f34691615
Minor cleanups 2018-10-03 22:00:05 +01:00
Danny Ryan 0941d592de
Merge pull request #30 from ethereum/JustinDrake-patch-1
Cleanups in get_active_validator_indices and shuffle
2018-10-03 09:31:56 -05:00
Danny Ryan 86d0c209b7 fix rand_max in shuffle alg. add note about usage 2018-10-03 09:28:42 -05:00
Danny Ryan 65656e15d1
Merge pull request #31 from ethereum/JustinDrake-patch-2
Minor fixes
2018-10-03 09:19:20 -05:00
Danny Ryan 7e978f1b40 Merge branch 'master' into JustinDrake-patch-1 2018-10-03 09:17:06 -05:00
Justin 48c2643f47
Update beacon-chain.md 2018-10-03 15:16:38 +01:00
Justin 4076804d2b
Rework Appendix A on hash functions 2018-10-03 15:13:29 +01:00
Justin 038db57b9d
Minor fixes 2018-10-03 15:02:58 +01:00
Danny Ryan 52d2355a5e Merge branch 'master' into rename-file 2018-10-03 08:47:54 -05:00
Justin cf7552ee31
Rename spec.md to beacon-chain.md 2018-10-03 14:35:11 +01:00