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
terence tsao
d65e2a4157
Implemented Dev Flag to Use Demo Config ( #586 )
2018-09-27 23:48:39 -07:00
terence tsao
2566687db7
Validator Client Use Assignment Stream to Determine Responsibility ( #566 )
2018-09-27 14:46:07 -07:00
terence tsao
bc7e07d5dd
Load Genesis State Config when Flag is Specified ( #576 )
2018-09-26 23:58:00 -07:00
Raul Jordan
e10baf7c80
Validator Assignment RPC Beacon Node Stream ( #563 )
2018-09-26 21:34:35 -05:00
Jie Hou
c37ad4b446
Initialize ActiveStateHash and CrystallizedStateHash for Genesis BeaconBlock ( #518 )
2018-09-26 08:34:23 -07:00
terence tsao
b59a4eef4e
Fixed Bugs after Crosschecking 2.1 Spec ( #564 )
2018-09-23 22:36:51 -07:00
terence tsao
1aeb0e6b10
Part 1 of Attestation Service - [sync -> blockchain -> rpc] ( #548 )
...
* Revert "Add Skip Coverage Condition in Coverage.sh (#416 )"
This reverts commit 72a5dd1cf4
.
* add coverage.sh back
* beginning sig aggregation routine
* fixed errors
* fixed existing tests
* merged master
* add attestation build.bazel
* private visibility
* tests for attestation service
* lint
* bazel gazelle
* add validator beacon file
* lint
* tests for sync service
* removed tmp.go
* bazel gazelle
2018-09-24 09:22:09 +08:00
terence tsao
1988dd0d5d
Change Default Validator Balance to Big Int ( #559 )
2018-09-22 13:15:39 -07:00
Raul Jordan
419cff2512
--Dev Mode Flag for Local Demo/Development ( #537 )
2018-09-21 16:02:17 -05:00
Raul Jordan
fa96e57ca2
Re-Add Block Validity Checks ( #541 )
2018-09-21 14:33:53 -05:00
Raul Jordan
190a976d3d
Validator Clients Use an Internal Clock to Determine Slot Responsibility ( #467 )
2018-09-21 09:32:20 -05:00
Raul Jordan
4bc2176898
Refactor Block Processing + UpdateHead to Use Slot Numbers ( #474 )
2018-09-18 09:06:28 -04:00
Nishant Das
cddae7a306
Implement RPC Messaging Between Validators ( #475 )
...
* Adding Proto files
* Move to shared package
* adding attestation sub
* gazelle
* attestation check
* proposal finished
* Add in attesters responsibilities
* fixing dependency issues
* adding topics
* refactoring tests
* Adding more tests
* adding more changes
* gazelle
* removing attester p2p
* remove mock
* changing to new proposer model
* changing tests
* making changes
* gazelle
* adding gomock
* adding rpc methods, reverting changes to other proto files
* gazelle and test changes
* adding tests
* adding mocks and tests
* gazelle
* fixing merge issues
* lint
* lint
2018-09-16 09:12:36 +08:00
terence tsao
ae84cfcfa2
Implement Proposer Attestation Check for Block Validity ( #508 )
2018-09-15 07:51:17 -07:00
Jie Hou
be11f2f103
Check attestation slot number ( #515 )
2018-09-13 22:07:30 -07:00
terence tsao
9639161fcc
Aligning With Latest 2.1 Spec ( #513 )
2018-09-13 17:36:57 -07:00
terence tsao
593c1ec9fc
Filled in ContainsBlock for Blockchain Service ( #512 )
...
* Revert "Add Skip Coverage Condition in Coverage.sh (#416 )"
This reverts commit 72a5dd1cf4
.
* add coverage.sh back
* filled in contains block to not always return false
* fixed lint
* lint
2018-09-13 23:24:18 +08:00
terence tsao
a630abae59
Dynasty Transition During Block Processing ( #498 )
2018-09-11 20:17:20 -07:00
terence tsao
861b960ed9
Implement Attester Responsibilities for Demo ( #487 )
2018-09-11 10:08:31 -07:00
Yutaro Mori
f312c013fc
beacon-chain: Refactor Beacon Chain To Simplify Block Processing ( #473 )
2018-09-11 07:09:41 +02:00
Ivan Martinez
d4e8de95d8
Change IndicesForSlots to ShardsAndCommitteesForSlots ( #481 )
...
* Change IndicesForSlots to ShardsAndCommitteesForSlots
* Capitalize function properly
2018-09-09 11:05:36 +08:00
terence tsao
b0f5ef0da0
Save Attestation and AttestationHashes to DB ( #472 )
2018-09-08 18:52:18 -07:00
terence tsao
d4209b7357
beacon: Process Crosslink During Cycle Transition ( #482 )
...
* Revert "Add Skip Coverage Condition in Coverage.sh (#416 )"
This reverts commit 72a5dd1cf4
.
* add coverage.sh back
* save attestations to db
* added tests
* use them in service.go
* process crosslink records
* revert
* revert
* revert
* test
2018-09-08 17:20:06 +02:00
terence tsao
fe3c647c45
Skip Block if Attestation is Bad ( #455 )
2018-09-04 16:18:55 -07:00
Nishant Das
42d93812ce
beacon: Implement Sync Handler for Block Requests By Slot Number ( #461 )
...
* Persist Dag
* Add schema
* Add new message
* add mapping
* Adding check to save block
* Removing blocks mapping
* Make changes to block processing
* Change from mapping to a slice of hashes
* Adding tests to core
* adding more tests
* Fixing service test
* Add comments and fix bazel
* fix lint
* fix conflicts
* addressing review comments
* Removing references to active
* fixing tests with active state
* Protytype for #440 : Persist blocks and latest state in DB
* simplify code
* removing block registry
* fix test
* adding block removal/iterator
* Addressing review comments
* Addressing comments
* Adding block request
* removing extra line
* making vars private and adding canonical key
* fix lint
* splitting methods
* adding more changes
* lint
* improving coverage
* removing decodeslotnumber
* Able to search for and send blocks
* adding core tests
* adding tests
* adding documentation
* addressing raul's comments
* lint and gazelle
* addressing yutaro's comments
* improving coverage
* improve coverage
* improving coverage
2018-09-04 10:48:07 -04:00
Yutaro Mori
6acf9d9db5
remove unused code ( #462 )
2018-09-02 13:46:42 -04:00
Nishant Das
4891f68929
Persist Blocks and State in DB ( #440 )
...
* Persist Dag
* Add schema
* Add new message
* add mapping
* Adding check to save block
* Removing blocks mapping
* Make changes to block processing
* Change from mapping to a slice of hashes
* Adding tests to core
* adding more tests
* Fixing service test
* Add comments and fix bazel
* fix lint
* fix conflicts
* addressing review comments
* Removing references to active
* fixing tests with active state
* Protytype for #440 : Persist blocks and latest state in DB
* simplify code
* removing block registry
* fix test
* adding block removal/iterator
* Addressing review comments
* Addressing comments
* removing extra line
* making vars private and adding canonical key
* fix lint
* splitting methods
* adding more changes
* lint
* improving coverage
* removing decodeslotnumber
* gazelle
* remove todos
* addressing preston's comments
* remove slotnumber
* lint
2018-09-03 00:44:03 +08:00
terence tsao
8ce739adfb
Add LastJustifiedSlot in Crystallized State Field ( #454 )
...
* Revert "Add Skip Coverage Condition in Coverage.sh (#416 )"
This reverts commit 72a5dd1cf4
.
* add coverage.sh back
* new justifiedSlot field in crystallized state
* test coverage
2018-09-02 14:34:29 +08:00
Ivan Martinez
d30d81a608
Rename all mentions of height to slot ( #456 )
...
#442
2018-09-01 12:01:53 -04:00
Yutaro Mori
f0abbf6f26
Refactor Validator Shuffling Logic ( #444 )
...
* Refactor and fix bugs for validator shuffling logic
* fix lint errors
* fixes
* address pr comments
* comments
* typo
* fix tests
* better readability
* gofmt
2018-08-30 22:55:52 -04:00
terence tsao
366e5168ba
Initialize New Cycle during Block Processing ( #443 )
2018-08-29 16:21:15 -07:00
terence tsao
f37a59d2f8
Part 5 of Aligning Beacon Chain with Latest 2.1 - Block Vote Cache ( #436 )
2018-08-28 17:55:56 -07:00
terence tsao
6389877154
Part 4 of Aligning Beacon Chain with Latest 2.1 - Bootstrapping Genesis ( #430 )
2018-08-25 11:59:46 -07:00