Raul Jordan
ab511cb022
Move Deposit Encoding to Helpers Package ( #1644 )
...
* move deposits
* finish moving deposit helpers
2019-02-19 12:05:34 -06:00
terence tsao
9f64ee7ecf
Remove Processed Block Operations from DB ( #1626 )
2019-02-18 15:34:49 -08: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
Nishant Das
25e0d6fe34
Adding batched logs ( #1605 )
...
* adding batched logs
* remove arg
* set requestBlkNum
* changing to debug
* adding log delay
2019-02-16 15:00:52 -06:00
Raul Jordan
d174c4eed8
Update Validity Conditions to Match Spec ( #1611 )
...
* validity conditions to match master
* update tests across repo
2019-02-15 13:49:37 -06:00
Raul Jordan
1d72cee59c
Revive Our Demo Config for Local Testing ( #1602 )
2019-02-14 15:01:07 -08:00
Raul Jordan
ae13bb5c83
Use Tree Hashing Algorithm Everywhere for Block Roots and State Root ( #1577 )
...
* begin using tree hash instead of hash for state and blocks
* replace with ssz
* rem references to vote cache
* replace all instances of state/block hash with root
* goimports
* almost every test in the world fails
* goimports
* all tests pass, tree hash across repo
2019-02-14 14:04:47 -06:00
terence tsao
59e5e59300
Update Fork Choice to Use Balance ( #1564 )
2019-02-13 23:13:00 +00:00
Raul Jordan
c4ad6f220d
Wait to Send Genesis Time to Validators Until After Genesis State is Initialized ( #1568 )
...
* add state initialized feed to send to rpc service
* rpc tests pass by using mock initializer
* verifies the chain start send and receive
* chain start chan sub test
* goimports
2019-02-13 11:51:57 -06:00
terence tsao
4cadd534db
Update Genesis Slot and Epoch ( #1537 )
2019-02-10 23:09:35 +01: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
Raul Jordan
12524ae8dd
Update RANDAO to Match Spec ( #1533 )
...
* fix bug in eth1 data vote count increases
* updating attester slashings
* is double vote and attester pseudocode
* attester slashing revamp complete
* exits processing complete
* all block operations aligned to spec
* completed test revamp
* builds properly
* all done FINALLY
* deprecate all instances of old randao logic
* fix all broken tests and cleanup randao references across repo
* builds but tests failing
* fixing broken chaintests
* only chaintests fail now
* randao fully updated
* add bls todo
* lint
* travis
* fix unresolved property in struct
* remove used randao var
2019-02-09 14:35:51 -06:00
Preston Van Loon
b0b55e8d1d
Remove pending deposits after receiving a processed block ( #1530 )
...
* Remove pending deposits after receiving a processed block
* Abstract createDeposit
* fix test
* Rename helper for clarity
* MaxDepositAmount
2019-02-09 09:07:30 -05:00
terence tsao
c46a583acb
Update MaxDeposit Config Names ( #1539 )
2019-02-09 14:09:09 +01:00
skillful-alex
1861cf2d15
Added Check on POWChain Service Initialization ( #1502 )
...
* added check on web3Service initialization
* fix unit test
2019-02-07 10:11:18 -06:00
terence tsao
b099f5d216
Aligning ETH2.0 spec - Update Validator Fields ( #1513 )
...
* remove ValidatorRegistryDeltaBlock
* fixed tests after changing validator functions to epoch first
* gaz
2019-02-06 15:46:05 -06: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
Raul Jordan
61026103c6
Validator Attester Rewrite ( #1487 )
...
* initial validator attesthead rewrite based on proposer rewrite
* proceed with fetching committees and tree hashing the canonical head at assigned attester slot
* complete filling the properties of attestation data and all associated root hashes
* add when to attest todo
* finish entire attester client logic
* tests with mocks checked in
* tests passing in client
* stubbed out server implementation
* fixed build due to old property
* regen mocks with new mockgen version
* fixed broken tests
* complete bazel build fix
* address some review comments
* deep proto test
* tests passing after checking for empty committee and crosslink root
* address nishant comments
2019-02-06 10:20:38 -06: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
terence tsao
d1df055ab1
Aligning ETH2.0 spec - Removed Balances from Validator Proto ( #1470 )
2019-02-04 08:31:43 +01:00
Raul Jordan
088507af66
Initialize State from ChainStart Deposits in POWChainService ( #1474 )
...
* tests passing once again in db package
* fixed all tests
* revert some weird p2p changes made accidentally
* fix repeated code
* build fixed
* fix p2p
* fix all tests
2019-02-03 16:44:48 -06: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
Raul Jordan
cec6c8de83
Standardize Naming of Shared Packages, Remove Deprecated Packages ( #1435 )
...
* rem txpool
* standardize repo shared utils, remove deprecated items
* complete
* package lvl godoc
2019-01-31 10:53:58 +08:00
terence tsao
844f61d32c
fixed test ( #1440 )
2019-01-30 20:59:33 +01:00
Raul Jordan
425ec4eee1
Add NoSigVerification Option to State Transition ( #1434 )
...
* no sig verify
* gofmt
2019-01-30 13:45:01 +01:00
terence tsao
c0f36e467b
Eliminate Custody Logic for Phase 0 ( #1408 )
2019-01-30 11:11:13 +01:00
terence tsao
a52f73b78f
Remove Shard Committees Last Part ( #1411 )
2019-01-29 14:56:32 +01:00
terence tsao
9e6782da04
add spec comments to fork choice functions ( #1401 )
2019-01-29 12:19:17 +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
Raul Jordan
98a4274b81
Refactor ChainService for Synchronous Tests and ChainStart ( #1347 )
...
* can now test blockchain service synchronously
* completed chainstart listener
* fix comment
* completed refactor
* fix
* fix build
* rem genesis fetch
* fix broken
* fixed concurrency bug
* comments
2019-01-28 19:59:37 +08:00
Ivan Martinez
45e9eda43c
Normalize ETH to Gwei client-wide ( #1381 )
2019-01-24 15:29:04 -08:00
Ed Mazurek
10b237e72d
db methods: remove Get prefix ( #1351 )
...
* db methods: remove Get prefix for getter functions
* db methods: consistent test names by removing Get
2019-01-21 17:34:11 +08:00
Nishant Das
7ff544fddf
Fix travis and Other Linter Errors ( #1356 )
...
* fix travis and other linter errors
* remove megacheck
2019-01-21 13:35:34 +08:00
Raul Jordan
f89fce9bd7
Implement Basic LMD Ghost Fork Choice Skeleton + Helper Funcs ( #1310 )
...
* add fork choice helpers
* LMD GHOST basic implementation
* add todos
* add in the initial test and finalize rest of functions
* added tests
* more simulation, adding trivial case with only one option for a head
* panics
* begin helper function tests
* more helper tests
* higher vote wins
* LMD Ghost full test
* comment
* add types
* optimize
* prepared
* deposits for chain
* lint
* use the hash beacon block util
* rem unnecessary db methods
* comments
* setup works
2019-01-19 10:57:51 +08:00
Nishant Das
08a06458d9
Add in ChainStart Listener ( #1327 )
...
* changing handling of logs
* gazelle
* removing outdated vars
* fixing tests
* adding vrc bindings to service
* updating vrc sol and bindings
* more changes
* adding trie
* remove functions
* addressing preston's review
* tests
* gazelle
* fixed tests
* note
* Lint
* doc
* exploration test
* adding new methods and tests
* adding log type checker
* lint
* Adding processChainstartLog
* gazelle
* addressing comments
* addressing comments and adding tests
* review comments
* comment
* comment
* abi naming
2019-01-17 23:14:32 +08:00
Nishant Das
75a431c969
Modify PowChain service ( #1289 )
...
* changing handling of logs
* gazelle
* removing outdated vars
* fixing tests
* adding vrc bindings to service
* updating vrc sol and bindings
* more changes
* adding trie
* remove functions
* addressing preston's review
* tests
* gazelle
* fixed tests
* note
* Lint
* doc
* exploration test
* adding new methods and tests
* adding log type checker
* lint
* gazelle
* addressing comments
2019-01-16 22:01:21 +08:00
Preston Van Loon
592c5c3d92
Refactor hashing of beaconblock to shared ( #1315 )
...
* Add beacon block hash function
* Refactor/remove old hash method
* gazelle
2019-01-15 00:41:20 +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
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
Nishant Das
bb7b0a324b
Fix Bug On Startup Using Genesis.json ( #1258 )
...
* fix bug
* making requested changes
* new changes
* changing initialize state
* remove genesis.json and references
* remove log
* readme
* readme
* remove reference
2019-01-09 11:03:57 +08:00
Preston Van Loon
f47f123aab
Remove some redundant fetches from DB for the beacon state ( #1257 )
2019-01-06 13:05:16 +08:00
terence tsao
141a8dba87
Reformat Configs for Readability ( #1256 )
2019-01-05 20:36:05 -08:00
Raul Jordan
ccc2a4b91f
Process Validator Deposits ( #1184 )
2019-01-04 23:39:34 -06:00
Raul Jordan
7e1af4fceb
Remove Use of Proto .GetX for Value Getters ( #1235 )
2019-01-04 21:58:19 -06:00
terence tsao
1314077a4d
Code Clean Up Part 1 - Core Package ( #1216 )
2019-01-01 09:17:44 -08:00
Preston Van Loon
a901a154dc
Health check endpoints for services ( #1183 )
...
* /healthz part1
* lint, fix
* lints and todos
* add p2p status test
* Add test for service registry Statuses
* fix my fake errors for the linter
* Test healthz handler
* Run gazelle
2018-12-30 16:20:43 -05:00
Raul Jordan
f5abc780ab
Verify Block Proposer RANDAO ( #1104 )
2018-12-27 23:19:32 -06:00
Nishant Das
e95e3ed517
Update State Transitions to Process Block Roots ( #1176 )
...
* Adding block root updating functions
* Adding block root updating functions
* Commiting stuff
* Updating test
* permissions
* adding tests
* fixing tests and gazelle
* Revert randao changes
* Comment
* Addressing review
* indenting
2018-12-27 14:48:09 +08:00
Raul Jordan
952dbe983e
Integrate Block Operations Into State Transition ( #1135 )
2018-12-26 21:15:12 -06:00
Nishant Das
9db1002d87
Updating Genesis Block to Spec ( #1172 )
...
* Updating to spec
* addressing review comments
2018-12-25 14:47:07 +08:00
Raul Jordan
5d26efcfaa
Deprecate types.BeaconState with pb.BeaconState Generated Proto ( #1164 )
2018-12-23 16:51:04 -06:00
Raul Jordan
1065617087
Replace Attestation Type Primitive With Proto Generated Type ( #1149 )
...
* first commit, remote att types
* no more agg attestation proto
* regen mock
* only attestations
* proto
* att process
* fix att references
* more tests passing
* use att protos
* complete
* Update dependency com_github_deckarep_golang_set to v1 (#1159 )
* Update dependency com_github_edsrzf_mmap_go to v1 (#1160 )
* Update dependency com_github_go_stack_stack to v1 (#1161 )
* Update dependency com_github_rs_cors to v1 (#1162 )
* Update dependency in_gopkg_urfave_cli_v1 to v1 (#1163 )
* change visibility
2018-12-22 15:30:59 -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
Raul Jordan
6125c304ba
Remove Deprecated Spec Logic ( #1138 )
...
* no more deprecated stuff
* remove incentive functions
* rem deprecated
* remove funcs
2018-12-19 20:45:21 -05:00
Nishant Das
e92032346f
Partial Implementation of the Slot Processing Routine ( #1083 )
2018-12-19 00:18:42 -05:00
terence tsao
122ad6ef3c
Implemented Get_block_root Helper Function ( #1096 )
2018-12-13 11:35:11 -08:00
terence tsao
8402a1dd61
Part 1 of Cleaning Up State Proto ( #1070 )
2018-12-11 07:46:01 -08:00
terence tsao
b8a9e839e7
clean up BeaconBlock's validator fields ( #1037 )
2018-12-03 19:05:22 -08:00
terence tsao
121654ff12
Removed Deprecated BeaconBlock Fields ( #1035 )
2018-12-03 08:10:47 -08:00
Preston Van Loon
7cd6223755
Rename recent block hashes ( #1029 )
...
* update beacon-state proto to new spec
* AttestationData
* use bazel's pb.go
* boundry -> boundary
* Rename RecentBlockHashes to LatestBlockHashes
2018-12-02 15:25:55 -05:00
Raul Jordan
a99de08562
Merge Active/Cystallized State ( #1019 )
2018-12-01 16:09:12 -06:00
terence tsao
391eacd1d7
Refactor Casper Validators Into Core/Validators Stateless Package ( #875 )
2018-11-20 22:44:04 -08:00
terence tsao
cb65c556d6
Config Updates to Latest Spec ( #868 )
2018-11-20 17:41:20 -08:00
Preston Van Loon
14f5c732c8
Fix error message lint issues ( #824 )
...
* Getting ready to turn up the linter
* fix test
2018-11-19 00:33:05 +08:00
Raul Jordan
f6c1864d6d
Cleanup of Miscellaneous Items Around the Repo ( #790 )
2018-11-16 12:01:41 -05:00
terence tsao
a0569ee7ad
Fixed Validator Shuffling ( #749 )
...
* fixed parent hashes copy bug
* use data
2018-11-14 15:24:34 -05:00
Jie Hou
0de655eaab
Move BlockVoteCache out of ActiveState ( #739 )
2018-11-11 08:54:17 -08:00
Yutaro Mori
8235c35e07
Various Fixes to Allow State Recalculation to Succeed ( #733 )
...
* Allow state recalculations to correctly advance
* fixes
* comments
2018-11-08 19:13:50 +01:00
terence tsao
3c6952c510
Synchronize Beacon Node with Spec ( #719 )
2018-11-08 09:19:39 -08:00
Nishant Das
37bc1c67be
Adding Basic Private Key Management ( #671 )
...
* adding flags
* adding modified key utils
* adding more funcs
* more changes
* more changes
* documentation
* changes to node
* gazelle
* fixing bazel build
* gazelle
* adding tests
* more tests
* addressing terence's feedback
* adding geth header
* test
* changes
* fixedd it
* fixed marshalling
* adding more to tests
* gazelle
* adding more tests
* lint
* add cov
* cov
* fix imports
2018-11-08 11:22:31 +08:00
Raul Jordan
6476fb54af
Dynamic Chain Test Language Package With YAML Parser ( #681 )
2018-11-07 14:07:41 -05:00
Yutaro Mori
278a81032f
Always pass an item through channel when processing blocks ( #728 )
2018-11-06 21:48:11 +01:00
terence tsao
8dc3fb5c85
Removed Demo Debug Flags ( #680 )
2018-11-05 18:35:50 +01:00
Yutaro Mori
4db3a3f2d1
Properly clean up attestations during state transitions ( #705 )
2018-11-03 16:50:14 +04:00
terence tsao
80d6c60769
fixed error strings ( #708 )
2018-10-31 23:05:55 +01:00
Yutaro Mori
7caedbaf27
Miscellaneous Fixes for Demo ( #694 )
...
* Various fixes to get code in line with demo
* more fixes
2018-10-23 11:07:43 -05:00
Yutaro Mori
4c5099c8ba
Miscellaneous Cleanup Around Block Processing Logic ( #684 )
...
* Cleanup code around block processing
* gazelle
* gofmt
2018-10-22 16:04:17 -05:00
Raul Jordan
81ff9fd7e3
Implement GHOST Beacon Chain Fork Choice Rule ( #643 )
2018-10-17 23:23:18 -05:00
Yutaro Mori
c00a1d3132
Replace LevelDB with Bolt ( #666 )
2018-10-17 01:11:24 -05:00
terence tsao
b98d30cf18
Implement RANDAO From Spec ( #651 )
2018-10-15 17:02:00 -07:00
Nishant Das
5117e6d195
Refactor Crystallized State ( #641 )
2018-10-15 06:17:07 -07:00
Yutaro Mori
8bffae1316
Various cleanup and bugfixes around validator/RBC interaction ( #657 )
2018-10-14 10:29:57 -05:00
Yutaro Mori
b00cdb656a
Cleanup simulator service ( #653 )
2018-10-13 16:22:36 +09:00
Yutaro Mori
d1eefa5cc7
Use consistent hash formatting ( #650 )
2018-10-12 08:35:49 -07:00
Nishant Das
c67a084b55
Clean Up Todos and Add in Issue Checker ( #640 )
2018-10-11 13:52:09 -05:00
Yutaro Mori
724ae3c999
Implement Precise Ticker For Slot Interval ( #635 )
2018-10-10 11:17:48 -05:00
terence tsao
efeb6976d1
Align Block and State Field Names with Spec ( #628 )
2018-10-09 19:34:50 -07:00
Yutaro Mori
3e8a450e0f
Fix Flaky Tests ( #636 )
2018-10-09 10:52:20 -05:00
Yutaro Mori
ce99bd7605
Refactor to Create DB Package ( #582 )
2018-10-05 13:14:50 -04:00
Preston Van Loon
763d0d6bdc
Add Go tools in bazel ( #608 )
...
* add atlassian bazel tools
* Add bazel entrypoints for native go stuff
* gazelle
2018-10-02 22:04:36 -04:00
Preston Van Loon
8bcddf5fdc
Migrate dependencies on @com_github_ethereum_go_ethereum//event ( #601 )
...
* Add go-ethereum's event and
* remove swp file
* goimports
* remove unused code
* fix gazelle
2018-10-02 21:49:01 -04:00
Raul Jordan
593e3dcdf9
Beacon Node Determines Slot From Genesis Block if ChainState Detected ( #606 )
2018-10-02 15:07:33 -05:00
terence tsao
d5bf733948
Fixed Simulator Can't get ParentSlot ( #602 )
2018-10-02 13:34:26 -05:00
Raul Jordan
1abed55bdd
Update Beacon/Validator Flags to Disable Reward/Cross-Link Checking by Default ( #597 )
...
* flag updates
* enable att validity, cross links, rewards
* tests all pass
* fix race
* fix cov
* fix flag
* fix conf
* fix race
* fix gazelle
2018-10-02 10:04:37 +08:00
Preston Van Loon
6e2b6229fe
Revert "Fixed Sync With Simulator ( #588 )" ( #600 )
...
This reverts commit 085b45626e
.
2018-10-01 20:54:45 -04:00
terence tsao
085b45626e
Fixed Sync With Simulator ( #588 )
2018-10-01 14:14:10 -05:00