Commit Graph

210 Commits

Author SHA1 Message Date
Carl Beekhuizen 918192cdab
`compute_slot_epoch`->`compute_epoch_of_slot` 2019-06-30 23:35:07 +02:00
Carl Beekhuizen fe68a8d1f0
Minor python style tweaks 2019-06-30 22:59:12 +02:00
Carl Beekhuizen 361732f409
merge in dev and resolve conflicts 2019-06-30 21:54:30 +02:00
Justin Drake 9b5e18b61c Last minute cleanups 2019-06-30 20:51:10 +01:00
Carl Beekhuizen e0a0f6e156
Makes markdown comply with linter 2019-06-30 21:25:58 +02:00
Carl Beekhuizen 9deb4090b0
Merge branch 'dev' into exec_v_spec
* dev:
  delayed_activation_exit_epoch -> compute_activation_exit_epoch
  remove 'int' types from spec typehints. replace with uint64
  'beacon state getters' -> ' beacon state accessors'
  PR feedback
  Cleanup
  Fix bug
  ready for review
  A few more cleanups
  Push draft
  WIP
  WIP2
  WIP
2019-06-30 21:03:27 +02:00
Carl Beekhuizen 0fd1d38417
`Misc` function rename 2019-06-30 20:58:02 +02:00
Danny Ryan d1bc2f03ac
remove 'int' types from spec typehints. replace with uint64 2019-06-30 13:00:22 -05:00
Danny Ryan 6d5e4da3e0
PR feedback 2019-06-30 12:42:24 -05:00
Justin Drake e8532ced79 WIP 2019-06-30 10:56:14 +01:00
Carl Beekhuizen fa7f80157d
Merge branch 'dev' into exec_v_spec
* dev: (112 commits)
  Minor copyedit
  Fix typo
  minor typo
  fix genesis tests; sign deposit-datas, and lower min validator count for testing
  add comments to make variations in genesis initialization clear, and about the mix-in in verification
  Refactor
  Update 0_beacon-chain.md
  quick comment on avoiding underflow
  fix basic test
  Make timestamp a uint64
  Fixes
  typo
  Fix genesis balance bug (git add -u)
  Cleanups and fixes
  fix finalize on double justification in 123 rule
  Merge is_genesis_trigger into get_genesis_state
  Cleanups; think about merging is_genesis_trigger into get_genesis_state
  Renames:
  fix typo in justification wording
  rename/fix roots in justification tests for consistency
  ...
2019-06-30 11:19:21 +02:00
Carl Beekhuizen f6322e199b
Fixes typing and Makefile 2019-06-30 11:18:36 +02:00
Justin Drake d0acd81157 WIP 2019-06-30 10:02:18 +01:00
Carl Beekhuizen 1d9fe90d97
Makes v-guide executable 2019-06-30 10:58:04 +02:00
Hsiao-Wei Wang 12dff5349d
Renames:
1. `Deposit` log -> `DepositEvent` log
2. `get_deposit_root` -> `get_hash_tree_root`
2019-06-30 03:42:00 +08:00
Dankrad Feist 6a2d2c84a8
Bitlist for attestation doc 2019-06-28 20:49:57 +01:00
protolambda 5f0e58364f
resolved merge conflicts, take attesters seq->set change from dev, take bits rework from bitlistvector PR 2019-06-28 18:17:13 +02:00
Justin 2739767a71
Hardened Eth 1.0 voting strategy (#1218) 2019-06-28 14:43:44 +01:00
Justin Drake 196ac42025 Cleanup naming 2019-06-28 12:23:22 +01:00
JSON 20602bc92b phase 0 doc standardization b4 spec freeze (#1212) 2019-06-25 14:32:56 +01:00
Danny Ryan a6230425b8
Merge branch 'dev' into container-cleanup 2019-06-14 10:36:41 -06:00
Danny Ryan b56539a47d
add missing colon to v-guide 2019-06-10 15:14:42 -06:00
Justin Drake 565f61dfaa Cleanup containers 2019-06-09 20:41:21 +01:00
terence tsao 8b54c90fd6
Update 0_beacon-chain-validator.md 2019-06-09 12:09:54 -07:00
terence tsao eefd306253
Update 0_beacon-chain-validator.md 2019-06-05 13:07:10 -04:00
Ivan Martinez 1b5370f8e2
Update 0beacon-chain-validator.md 2019-06-04 18:20:16 +09:00
Danny Ryan c2f0f7e4d8
Merge pull request #1108 from ethereum/eth1_error
minor fix to how eth1 data is counted in validator guide
2019-05-28 16:09:04 -06:00
Danny Ryan 4183d8440b
Merge pull request #1069 from sigp/bn-vc-api-rfc
Beacon Node API for Validator
2019-05-28 16:07:51 -06:00
Luke Anderson c32328fdf2
Fixed swagger URL so that the version number isn't specified (defaults to latest). 2019-05-28 10:49:40 +10:00
Luke Anderson 56698602ab
Updated all absolute URLs to the eth2.0-specs repo so that they point to the master branch (instead of dev). 2019-05-28 10:48:41 +10:00
Danny Ryan 405b34225f
D be list instead of set in validator eth1 data counting 2019-05-27 09:37:30 -06:00
Luke Anderson fa177e0355
Bumped API version number to 0.2.0 2019-05-27 13:01:36 +10:00
Luke Anderson af798a3065
Minor updates.
- Fixed spelling (and made American English)
 - Clarified the schema for the new poc_bit field, and description.
2019-05-27 11:21:23 +10:00
Luke Anderson edf0b9d05f
Addressed some of @djrtwo's suggestions.
- Rewording of specification goal paragraph
 - Clarify get duties description regarding chain reorgs.
 - Add epoch parameter to get duties, and new error 406
 - Block publishing action is clarified around validation, with a new status code 202
 - The validator pubkey and PoC bit are passed to produce attestation
 - Attestation publishing action is clarified around validation, new status code 202
 - Rewording of genesis_time, 'block' -> 'slot'
 - Update Crosslink to latest spec
 - Added missing signature field to IndexedAttestation
2019-05-25 07:59:35 +10:00
Danny Ryan 7b30c55cd4
minor copy edits to vc api 2019-05-23 13:10:34 -04:00
protolambda 6b5f4b44ea
avoid zero constant for deposits fork-version, just default to it 2019-05-22 01:39:20 +02:00
Danny Ryan 4ce441c4a4
minor fix to how eth1 data is counted in validator guide 2019-05-21 12:54:38 -06:00
Danny Ryan 847fcf52cc
utilize bls_domain directly for deposits 2019-05-21 11:30:38 -06:00
Danny Ryan 7a9097ec23
Merge branch 'dev' into fix-deposit-forkv 2019-05-21 11:04:13 -06:00
Luke Anderson 8e67dec7e4
Fixed misinterpretation of the proof array in the Deposit object, bumped version. 2019-05-20 16:43:21 +10:00
Luke Anderson 490cf9e347
Updated version number to reflect small changes. 2019-05-20 13:56:25 +10:00
Luke Anderson 73c9d126de
Updated API spec with suggestions by @hwwhww.
- Corrected to use American English instead of Australian
 - Fixed spelling mistake with indices
 - Changed tag to 'MinimalSet' and 'OptionalSet'
 - Added a  response to the list of components
 - Renamed 'block_production' to 'block_proposal'
2019-05-20 13:49:06 +10:00
Hsiao-Wei Wang a68aa82b89
Update validator guide 2019-05-20 11:39:13 +08:00
Danny Ryan 174e1e4dbe
pr feedback 2019-05-17 11:04:05 -04:00
Danny Ryan acb7444184
pr feedback 2019-05-17 10:58:02 -04:00
Danny Ryan 37aca60fae
pr feedback 2019-05-17 10:55:07 -04:00
Danny Ryan d1f5f85464
Merge branch 'dev' into fix-v-committee 2019-05-17 10:31:57 -04:00
Bruno Škvorc bc95906e4f
Typo fix 2019-05-15 10:40:42 +02:00
Danny Ryan 01efe52eb0
fix start shard 2019-05-14 17:32:44 -04:00
Danny Ryan 5e7b173b22
fix up validator guide crosslink committee instructions 2019-05-14 17:29:11 -04:00
Danny Ryan 7bb85a69ed
add process_slots usage to validator guide 2019-05-13 16:34:30 -04:00
Luke Anderson 67921ab96f
Fixed up some small wording in the API readme. 2019-05-13 16:30:53 +10:00
Luke Anderson 0b2c7acdb3
Fixed up markdown.
- Removed TOC
 - Removed all the old spec stuff
 - Uploaded spec to SwaggerHub and provided a link to it.
 - Added a 'license' section to the API description.
2019-05-13 16:25:22 +10:00
Luke Anderson 2035aea0b8
Formatting clean up.
- Moved /node/fork up with other node endpoints
 - Added descriptions and ordering to tags
 - Removed common merkle_root schema, to be more specific in descriptions.
 - Moved BeaconBlockCommon next to appropriate schemas.
 - Lots of small grammar improvements, full stops at end of descriptions.
2019-05-13 15:52:34 +10:00
Luke Anderson d10baf1dce
Added optional path, , renamed tags, and fixed up whitespace issues. 2019-05-13 15:18:56 +10:00
Luke Anderson 48ed25b2bd
Fleshed out a lot more of the API, nearly ready.
- Added all the fields from BeaconBlock(Body)
 - Tagged all paths as 'Minimum for validator'
 - Removed BeaconNode and ValidatorClient conventions
 - Moved the basic non-object schema components to the top
 - Broke out common beacon block properties into the BeaconBlockCommon object
 - Fixed links to Eth2.0 spec
2019-05-13 15:07:15 +10:00
Alex Stokes a552b94d46
Update 0_beacon-chain-validator.md
typo fix
2019-05-10 11:02:39 -07:00
Luke Anderson b918cc3de3
Fleshed out a whole lot more of the OpenAPI specification for the API. 2019-05-10 14:03:59 +10:00
Luke Anderson 39fd625d35
Started porting the API proposal into OpenAPI 3 format. 2019-05-09 23:49:59 +10:00
Danny Ryan af2bb7d6f6
Merge pull request #1044 from ethereum/JustinDrake-patch-21
Crosslink in AttestationData
2019-05-08 08:35:06 -06:00
Luke Anderson 4d2e752bb9
Started updating the markdown description of the BNVC REST API, removing stuff specific to the issue and conforming to standard text layout. 2019-05-08 23:51:53 +10:00
Luke Anderson 0d06f6bcc1
Added the first draft of the BN-VC API RFC, as it was listed on the issue #1011. 2019-05-08 15:04:27 +10:00
Danny Ryan 13d2ee6969
cleanup validator guide for crosslinks 2019-05-07 11:49:45 -06:00
terence tsao 24966d71be
Update 0_beacon-chain-validator.md 2019-05-06 17:54:40 -07:00
protolambda 3a309155aa
fix deposit domain: forks are ignored for deposit validity, deposits are always accepted, if coming from the correct contract(s). 2019-05-06 22:06:00 +02:00
Justin Drake ea60fb632c More renaming 2019-05-06 20:49:46 +01:00
Justin Drake f4db9ebae0 Renamings triggered by HW comment 2019-05-06 18:26:14 +01:00
Justin 7ba13aa4c5
Merge branch 'dev' into JustinDrake-patch-21 2019-05-06 17:48:09 +01:00
JSON d1c96c1e0d Doc standardization (#1039) 2019-05-06 16:30:32 +01:00
Justin Drake 5fb32fd19b Fix tests 2019-05-05 12:10:39 +01:00
Danny Ryan bf2b65191d
Merge pull request #1033 from ethereum/ralexstokes-patch-3
Update name of constant
2019-05-03 09:14:44 -06:00
Alex Stokes 43e85f76d9
Update name of constant
max deposit amount is now in spirit named max effective balance
2019-05-02 21:05:51 -07:00
Alex Stokes 5d688ddb9d
Update property name 2019-05-02 20:45:39 -07:00
Danny Ryan ef72b7ec20
Merge branch 'master' into vbuterin-patch-2 2019-05-01 16:19:21 -06:00
Justin Drake 2e5ab130c1 Simplify presentation 2019-05-01 07:42:49 +01:00
Danny Ryan f76ade93d8
update registry tests to return the blocks that transiiton the pre_state to post_state 2019-04-26 08:27:07 -06:00
Danny Ryan 777590434b
Merge branch 'dev' into JustinDrake-patch-20 2019-04-24 13:37:50 -06:00
Danny Ryan 20d65e040b
pr feedback 2019-04-24 11:31:24 -06:00
Danny Ryan 0079c635b6
Merge pull request #924 from ethereum/JustinDrake-patch-11
Remove serialization from consensus
2019-04-22 09:41:30 -06:00
Danny Ryan 5744fef808
clean up some notes on deposits 2019-04-22 09:18:20 -06:00
JSON 1a95996035 i.e. + e.g. standardization (#970) 2019-04-20 16:01:06 +10:00
Justin Drake 40b55cf433 More fixes 2019-04-18 14:43:24 +10:00
Hsiao-Wei Wang cc68df8346
Merge branch 'dev' into prev-cur-crosslinks 2019-04-17 12:01:40 +08:00
Danny Ryan 882937b537 attesation proposer rewards to block processing (#920) 2019-04-17 12:32:50 +10:00
Danny Ryan 9489ae5dcd
upate validator guide to new crosslink format 2019-04-13 18:02:12 +10:00
Danny Ryan 75df6106aa
clean up some deposit notes in validator doc 2019-04-12 23:23:04 -06:00
JSON 1932a4fbf4
Update 0_beacon-chain-validator.md 2019-04-12 19:46:22 -05:00
JSON 0b6d6f2c51 Update 0_beacon-chain-validator.md (#909) 2019-04-13 09:33:34 +10:00
Chih Cheng Liang ffccf742bd
replace signed_root with signing_root 2019-04-08 09:57:04 +08:00
Mikhail Kalinin 1b975d2ceb
Use signed_root as block id in Honest V guide 2019-03-27 19:23:23 +06:00
Danny Ryan 2c5a68b5b5
remove registry_change options from shuffling functions 2019-03-26 12:32:24 -06:00
Danny Ryan 0121adea38
fix beacon proposer function and mod v-guide to not have lookahead for proposing 2019-03-26 07:09:48 -06:00
Danny Ryan 1083de0c61
add notes about mandatory deposits in validator guide 2019-03-19 17:38:09 -06:00
Danny Ryan b72070b53e
Merge branch 'dev' into vbuterin-patch-12 2019-03-19 17:31:10 -06:00
terence tsao c30018a716
Update 0_beacon-chain-validator.md 2019-03-13 18:45:52 -07:00
Danny Ryan 0e837c3386
update v-guide to v0.5.0 2019-03-13 12:17:21 -06:00
vbuterin 5266bbd378
Honest validator doc update for mandatory deposits
Co-requisite with #758.
2019-03-11 23:38:22 -05:00
Akhila Raju f4e0d9804a Minor spelling fixes. 2019-03-06 12:03:03 -05:00
Hsiao-Wei Wang 34091d70ec
Fix typo 2019-02-28 16:30:46 +08:00
Danny Ryan b2c53045fc
make get_beacon_proposer_index safe for next epoch 2019-02-26 15:55:27 -07:00