Raul Jordan
2425bef5c7
Update Configuration, Naming, and GenesisStart to Accommodate Randao ( #1647 )
...
* signature on startup configuration
* remove ref to hash32s for randao
* completed changes
2019-02-19 14:24:00 -06:00
terence tsao
8c04ced1a6
Name Changes to Align with V0.3 ( #1621 )
...
* fixed epoch_processing
* penalize->slash
* exit -> voluntary_exit
* SEED_LOOKAHEAD -> MIN_SEED_LOOKAHED
* ENTRY_EXIT_DELAY -> ACTIVATION_EXIT_DELAY
* `INCLUDER_REWARD_QUOTIENT` -> `ATTESTATION_INCLUSION_REWARD_QUOTIEN`
* LatestIndexRoots -> LatestActiveIndexRoots
* `MIN_VALIDATOR_WITHDRAWAL_EPOCHS` -> `MIN_VALIDATOR_WITHDRAWAL_DELAY`
* MAX_WITHDRAWALS_PER_EPOCH -> MAX_EXIT_DEQUEUES_PER_EPOCH
* ETH1_DATA_VOTING_PERIOD -> EPOCHS_PER_ETH1_VOTING_PERIOD
* SLOT_DURATION -> SECONDS_PER_SLOT
* EPOCH_LENGTH -> SLOTS_PER_EPOCH
* SLOT_DURATION -> SECONDS_PER_SLOT take 2
* rest of the misc fixes for config name changes
* remove tools/bootnode/.!74296!bootnode.go
* `current_epoch_start_shard` -> `current_shuffling_start_shard`, `current_shuffling_epoch`, `current_shuffling_see`
* go fmt
* fixed comment
* updated pseudocode comments
* merged master
2019-02-18 10:52:16 -06:00
terence tsao
05b29d6226
Update PendingAttestationRecord Proto ( #1567 )
...
* fixed epoch_processing
* test p2p
* PendingAttestationRecord -> PendingAttestation
2019-02-12 12:04:30 -06:00
terence tsao
e321fdfafa
Update to Use Crosslink in AttestationData ( #1546 )
...
* fixed epoch_processing
* test p2p
* attestation uses crosslink instead of crosslink root hash
* lint
2019-02-10 11:59:17 -06:00
terence tsao
3dc6d3a2e6
Final Updates During Epoch Processing ( #1540 )
2019-02-09 22:14:10 +01:00
terence tsao
d008388bd1
Aligning ETH2.0 spec - Attestation and Epoch Processing - Part 2 ( #1523 )
...
* fixed epoch_processing
* epoch processing functions aligned
* fixed the last test!
* addressed nishant's comments
2019-02-09 14:15:59 -06:00
terence tsao
e76bf193b4
fix config across codebase ( #1514 )
...
* fixed epoch_processing
* fixed tests
* fixed more tests
2019-02-07 07:07:25 +01:00
Nishant Das
9ecef934d8
Update Beacon State to Match the Spec ( #1489 )
...
* first line of changes
* fix all tests in core package
* Finished fixing up all tests
* docs
* more docs
2019-02-06 10:44:27 -06:00
terence tsao
2441266898
Aligning ETH2.0 spec - Crosslink Records ( #1507 )
...
* updated proto state fields to unlock alignment
* moved AttestationParticipants to rightful location
* crosslink committees to use epoch
2019-02-06 15:00:50 +01:00
Nishant Das
c48f9c96e0
Allow Simulated Backend to Advance Chain ( #1445 )
...
* initialize beacon state separately
* extracting out testcase into another func
* creating function for simulated objects
* creating simulated object struct
* final clean up
* documentation
* lint
* adding chain advancer
* review comments
* replacing lib
* adding initialization for chain and new vars in struct
* added func
* fixing tests and all other bugs
* fixing tests
* docs
* adding a new nil block function
* adding test
* remove check for nil blocks
* godoc
* fixing merge conflicts, tests
* fix test
2019-02-06 10:18:55 +08:00
terence tsao
003d686f70
updated proto state fields to unlock alignment ( #1497 )
2019-02-05 21:14:29 +01:00
terence tsao
506db55be5
Aligning ETH2.0 spec - Make Epoch First Citizen (Shuffling and GetCrosslinkAtSlot) ( #1488 )
2019-02-05 19:52:14 +01:00
terence tsao
720c80d8ee
Aligning ETH2.0 spec - Make Epoch First Citizen (Package: Committee) ( #1477 )
...
* able to bazel build beacon chain.. yay
* fixed package validator tests
* fixed a few more package tests (epoch, blockops, forkchoice)
* fixed all the tests! and lint. Woohoo
* moving committee helpers to own package
* more fixes at epoch processing
* fixed rewards and penalties tests
* fixed rest of the tests. yay
2019-02-04 15:27:28 -06:00
terence tsao
21ac564631
Aligning ETH2.0 spec - Make Epoch First Citizen (Package: Validators) ( #1460 )
2019-02-04 21:34:33 +01:00
Ivan Martinez
5b209a2b18
Update DepositRoot to Eth1Data ( #1403 )
...
* update proto fileds
* Start writing ProcessETH1Data function
* More progress on tests
* Continue more work on tests
* Fix almost all the tests
* Fix all tests
* Fix everything
* Fix after rebase
* Fix for suggestions and fix per-epoch operation
* Remove method usage
* Fix build
* Fix suggestions
* Fix merge issues and suggestions
* Fix rebase issues
* Remove the error from ProcessETH1Data
* WIP write test
* Update test to reach crosslinks
* Revert "Update test to reach crosslinks"
This reverts commit 5ff9177f96c12c98c54eafffcfb385bd966b0888.
* Revert "WIP write test"
This reverts commit f7e7ed715c4af6b7e3c95643f7ebf85830caf638.
2019-02-02 16:24:42 -05:00
terence tsao
3acffd878c
Aligning ETH2.0 spec - RANDAO helpers ( #1454 )
2019-02-01 22:22:52 +01:00
terence tsao
cdf50e2fa2
Aligning ETH2.0 Spec - Implemented Slot & Epoch Helpers ( #1447 )
...
* starting to use SlotToEpoch...
* updated exisiting functions...
* fixed epoch tests
* fixed rest of the tests
* tests for newly added helper functions
* fixed visiblity
* added PrevEpoch and NextEpoch helpers
* lint
* removed file from other commit
2019-02-02 00:52:35 +08:00
terence tsao
a52f73b78f
Remove Shard Committees Last Part ( #1411 )
2019-01-29 14:56:32 +01:00
Ivan Martinez
e9cfc08549
Update all beacon constants to latest in spec ( #1407 )
...
* Update all beacon constants
* Fix documentation
* Fix sync time in config
* Fix some names
2019-01-29 12:16:50 +08:00
terence tsao
af1c382828
Remove Shard Committees 5 - Align Core Package ( #1379 )
2019-01-25 08:20:02 -08:00
terence tsao
821e7148f8
Remove Shard Committees 4 - Validator Registries Processing ( #1368 )
2019-01-23 23:09:52 -08:00
terence tsao
779bccba1e
Rm Shard Committees 1 - Update Protos and Configs ( #1353 )
2019-01-20 10:26:33 -08:00
terence tsao
2b24e7940e
function to update penalized exit balances ( #1335 )
2019-01-17 09:10:42 +08:00
terence tsao
e313e97666
Implement Validator Rotation Logic ( #1279 )
2019-01-13 12:52:31 -08:00
Andrei Ivasko
b29188128d
ToBytes32 ( #1306 )
2019-01-13 09:04:14 -05:00
terence tsao
060a311a14
Core Package Clean up Part 2 ( #1268 )
...
* comments on core package declarations
* fixed sentence
* cap
* no extra line
* fixed tests
* gazelle
2019-01-10 07:49:50 +08:00
terence tsao
911d30031a
Hook up Epoch-Processing Logic Inside State Transitions ( #1246 )
2019-01-09 09:26:40 -08:00
Raul Jordan
4bb6196f4f
Wrap Up Data Structure Renaming ( #1270 )
...
* spec renames
* fix goimports
* fix items
2019-01-09 03:49:17 -06:00
terence tsao
138bc37a60
Renaming Poc_ and Pow_receipt_ fields ( #1271 )
2019-01-08 20:42:42 -08:00
terence tsao
074ac07dc8
Replace Validator Status Code With Activation/Exit Slot ( #1233 )
2019-01-04 22:39:07 -08:00
terence tsao
576136e621
Cleanup Attestation Helper Function and Test ( #1220 )
2019-01-02 12:19:08 -08:00
terence tsao
d3acd397fb
Implemented Process Validator Registry ( #1213 )
2018-12-31 10:24:52 -08:00
terence tsao
085bd27fe1
Implemented Can Process Validator Registry ( #1188 )
2018-12-29 12:21:34 -06:00
terence tsao
b23ccc608c
Update Validator Status and Process Ejections ( #1186 )
2018-12-29 09:24:11 -08:00
terence tsao
5b967fc6ce
Implement Crosslink Processing ( #1167 )
2018-12-24 06:58:18 -08:00
terence tsao
c7a92b88c8
Epoch Processing: Receipt Root, Justification and Finalization ( #1158 )
2018-12-23 22:36:09 -08:00
terence tsao
b9a233da7d
Implemented Rest of Epoch Helpers ( #1145 )
...
* beginning epoch processing helper funcs
* renamed helpers to under epoch_operations
* implemented AttestingValidatorIndices
* deleted old epoch_processing.go file
* implemented WinningRoot & LowerThan helper funcs
* rest of the epoch helpers
* gazelle
* added tests
* merged
* mentioned LowerThan is for big endian format
* fixed spelling
2018-12-22 15:38:09 -05:00
Raul Jordan
e49a190754
Replace Types of Block Primitives With Proto Generated Types ( #1137 )
...
* refactor repo to use protos
* removed block successfully in types
* db package updated
* db, core passing
* chain service done
* no more block instances
* all pass
* deprecate all block protos
* tests pass
2018-12-20 17:00:38 -05:00
terence tsao
74532a80d1
Boundary Attestation and Balances Helper functions ( #1115 )
2018-12-18 20:55:36 -08:00
terence tsao
5c7539e2a1
Quick fix on a pseudocode typo ( #1106 )
2018-12-14 16:34:28 -08:00
terence tsao
53749c49d0
Get Epoch (&Boundary) Attestations Helper Functions ( #1103 )
2018-12-14 14:49:03 -06:00