terence tsao
b98d30cf18
Implement RANDAO From Spec ( #651 )
2018-10-15 17:02:00 -07:00
Yutaro Mori
1f00cfe23e
Replaced HasStoredState with IsSyncedWithNetwork ( #662 )
2018-10-16 07:22:15 +09:00
Nishant Das
5117e6d195
Refactor Crystallized State ( #641 )
2018-10-15 06:17:07 -07:00
Yutaro Mori
2697d99762
Fix getSignedParentHashes ( #664 )
...
* fix getSignedParentHashes
* Add another check
2018-10-15 16:50:08 +08:00
Catalin Pirvu
c3a7dfce96
Add check for validity to CheckBit method ( #658 )
2018-10-15 02:35:52 +08:00
Yutaro Mori
8bffae1316
Various cleanup and bugfixes around validator/RBC interaction ( #657 )
2018-10-14 10:29:57 -05:00
Ivan Martinez
6d46dda33c
Make blake2b hash util in shared/ ( #649 )
2018-10-13 21:32:29 -05:00
terence tsao
dc8d40d10d
Replace Dynasty with Validator Set Change ( #655 )
2018-10-13 21:12:06 -05:00
Yutaro Mori
b00cdb656a
Cleanup simulator service ( #653 )
2018-10-13 16:22:36 +09:00
Yutaro Mori
4c657fef04
Proposal to upgrade to 1.11 ( #652 )
2018-10-13 13:23:41 +08:00
Yutaro Mori
f767b11348
Prevent 0 value for committeesPerSlot in shuffle function ( #648 )
2018-10-13 14:05:19 +09:00
terence tsao
6d0290664a
Implement Validator Rotation during State Recalculation ( #645 )
2018-10-12 11:27:55 -07:00
Yutaro Mori
d1eefa5cc7
Use consistent hash formatting ( #650 )
2018-10-12 08:35:49 -07:00
Yutaro Mori
04c7a89f1d
[WIP] Partial fix for the validator code ( #647 )
2018-10-11 23:41:17 -05:00
Nishant Das
c67a084b55
Clean Up Todos and Add in Issue Checker ( #640 )
2018-10-11 13:52:09 -05:00
Ivan Martinez
26cad3f9c1
Enforce Max Committee Size and Remove Multiple Slots Per Committee ( #644 )
2018-10-10 18:27:56 -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
Raul Jordan
cd2073e84f
Cleanup and Refactor Shared Package ( #634 )
2018-10-09 00:58:54 -05:00
terence tsao
1c7af71774
Add SpecialRecord Type and Updated Config ( #624 )
2018-10-06 08:30:15 -07:00
Yutaro Mori
ce99bd7605
Refactor to Create DB Package ( #582 )
2018-10-05 13:14:50 -04:00
Nishant Das
3dfbec9d3c
Update Rewards to Align with Spec ( #596 )
...
* Adding integer square root and other changes to spec
* adding doc
* fixing tests
* fix spec
* fix rewards
* Remove failing test
* fix test
* lint
2018-10-04 12:49:18 +08:00
Raul Jordan
075e333215
fix shuffle ( #611 )
2018-10-03 09:08:12 -04:00
Raul Jordan
b8036fcb0f
Fix Validator Assignment ( #609 )
...
* fix
* ready
2018-10-02 22:39:19 -05: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
terence tsao
aec2ea3b1b
Fixed Simulator Slot Alignment ( #607 )
2018-10-02 20:02:52 -05: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
Nishant Das
c4ea6b8e13
adding attestation ( #590 )
2018-09-29 17:09:05 +08:00
terence tsao
d65e2a4157
Implemented Dev Flag to Use Demo Config ( #586 )
2018-09-27 23:48:39 -07:00
Raul Jordan
367aae3bf4
Fix State Recalc in Slot Assignment ( #585 )
2018-09-27 23:49:29 -05:00
terence tsao
965c6a30cf
Add Back Deleted Test and New Logs ( #584 )
2018-09-27 19:57:09 -05: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
Nishant Das
48c07bfeb9
Update Rewards to Align with Spec ( #570 )
...
* updating rewards
* add tests
* adding tests
* lint
2018-09-26 22:20:59 -05:00
Raul Jordan
e10baf7c80
Validator Assignment RPC Beacon Node Stream ( #563 )
2018-09-26 21:34:35 -05:00
Nishant Das
542ddef9e8
fixing error ( #574 )
2018-09-27 01:06:45 +08:00
Jie Hou
c37ad4b446
Initialize ActiveStateHash and CrystallizedStateHash for Genesis BeaconBlock ( #518 )
2018-09-26 08:34:23 -07:00
Preston Van Loon
5bc324d2f1
Change pubkey from uint64 to bytes ( #561 )
...
* Change pubkey from uint64 to bytes
* add the rebuilt proto pb.go
2018-09-24 22:01:26 -05:00
Raul Jordan
78ccea9865
Refactor ValidatorSlot RPC and Casper to Return ValidatorSlotAndResponsibility ( #565 )
...
* slot responsibility casper refactor
* fix
2018-09-24 23:18:27 +08: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
673c4f840f
Streaming Validator Assignment Service Definition ( #554 )
2018-09-22 13:19:34 -05:00
Preston Van Loon
e5569c88f8
More todos ( #558 )
...
* Add TODO link for issue #555
* Remove database related TODO
* update todo for issue #426
2018-09-22 12:58:24 -04:00
Raul Jordan
5c0ee65619
Finished TODO cleanup ( #553 )
2018-09-21 22:36:38 -05:00
Raul Jordan
419cff2512
--Dev Mode Flag for Local Demo/Development ( #537 )
2018-09-21 16:02:17 -05:00
Nishant Das
53508d6bec
Update Rewards to Align With New Spec ( #504 )
2018-09-21 14:56:39 -05:00
Raul Jordan
fa96e57ca2
Re-Add Block Validity Checks ( #541 )
2018-09-21 14:33:53 -05:00
Nishant Das
e9ae09ef4c
Fixing profiling and tracing ( #550 )
2018-09-21 13:35:48 -05:00
Raul Jordan
190a976d3d
Validator Clients Use an Internal Clock to Determine Slot Responsibility ( #467 )
2018-09-21 09:32:20 -05:00
Daniel Schonfeld
8b61994fb3
Attestation Justified Slot Validation Per Spec ( #516 )
...
* bringing isAttestationValid up to spec and udpating tests
* Seems like a bug/typo returning Slot inside Attestation.JustifiedSlotNumber(), fixed now
* typos per @terenc3t
* change errors and messages
* using positive tests vs negative if statements to test for spec rules
* fix error typo
* remove comment
2018-09-20 20:31:29 -04:00
Divyank Katira
2a51ed3f39
P2P Message Execution Tracing ( #517 )
...
* Request execution tracing initial commit
* Resolve linter issues
* Run gazelle
* Make trace sampling configurable, clean up, update doc
* Document trace span creation
* Fix linter issue
2018-09-20 07:46:35 -04:00
Preston Van Loon
75d32588e0
format and cleanup some TODOs ( #544 )
2018-09-19 21:14:31 -07:00
terence tsao
b4e57489af
Fixed Bugs for Proposer Attestation ( #539 )
2018-09-19 10:23:26 -04:00
Preston Van Loon
8bfed4897f
Added Comments/Documentation on Recent Block Hashes of ActiveState ( #533 )
...
* Add some clarifying comments to calculateNewBlockHash
* missing )
* words
2018-09-19 12:28:50 +08:00
Raul Jordan
4bc2176898
Refactor Block Processing + UpdateHead to Use Slot Numbers ( #474 )
2018-09-18 09:06:28 -04:00
terence tsao
ddfe1715c9
RPC methods for Validators to Get ShardID, Index and Slot ( #526 )
2018-09-17 22:36:09 -04:00
Preston Van Loon
3c264be1c1
Clean up some p2p related TODOs ( #521 )
...
* Remove error checking for type assertions on p2p messages. The code should fail earlier in the p2p layer. Also fixed format on some TODOs
* format TODO again
* Add a bit more tests for p2p stuff
* goimports on feed_mock
* remove unused import
2018-09-16 14:02:53 -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
Daniel Schonfeld
15a6545f64
Default values for Genesis Block ( #507 )
...
* return a genesis block filled with default values
modified tests to reflect the block's requirements
* linted
2018-09-13 21:21:57 +08:00
terence tsao
a630abae59
Dynasty Transition During Block Processing ( #498 )
2018-09-11 20:17:20 -07:00
Preston Van Loon
366124991b
Allow users to use 0x prefix for their pubkey ( #500 )
2018-09-11 18:55:05 -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
Preston Van Loon
78c763368b
Update rules_go, bazel_gazelle, and go-ethereum to Support Go 1.11 ( #490 )
...
* Update rules_go, bazel-gazelle, and go-ethereum to support go 1.11
* gazelle
2018-09-10 23:14:29 +02:00
Preston Van Loon
db1138ae1f
Fix p2p issues in #465 ( #489 )
2018-09-09 18:15:24 -04: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
8897ddaa6b
Fixed Broken Markdown links ( #483 )
2018-09-08 06:50:21 -07:00
Raul Jordan
ee91be2c4a
validator: Implementing Partial Implementation of Proposer Responsibility ( #441 )
...
* implementing basic proposer functionality
* checked in gomocks
* fix typo
* refactor using feeds
* use event feeds for assignment
* sending the latest beacon block over announcement chan
* 100 coverage, using feeds
* gazelle
* include parent hash from prev canonical block and slot number + 1
* including all other prop fields
* fix build
* proposer rpc method tests, implemented in beacon chain side
* godoc
2018-09-04 23:35:32 -04: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
Raul Jordan
4937da5c7d
Update Documentation + Create a Subproject for Important Markdown Docs ( #451 )
...
* add docs folder for markdowns
* create scripts project, move readmes
* update all docs
* fix travis
2018-09-01 21:25:06 -05: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
9be495dc1f
Add Casper/Sharding/Beacon Chain FAQs to Readmes ( #446 )
...
* Revert "Add Skip Coverage Condition in Coverage.sh (#416 )"
This reverts commit 72a5dd1cf4
.
* add coverage.sh back
* add casper/sharding faqs to readmes
2018-08-29 14:42:51 -04:00
Preston Van Loon
b02042dbe9
shared: Split P2P Topics And Introduce Middleware (Adapters) ( #421 )
2018-08-29 11:32:54 -05: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
terence tsao
1598ae8605
Part 3 of Aligning Beacon Chain with Latest 2.1 - Processing Attestations ( #423 )
2018-08-24 09:07:23 -07:00
Raul Jordan
4a1b5db07b
beacon: Store Incoming Blocks and Calculated States in DAG ( #422 )
...
* begin with a block/state dag approach in prep for fork choice
* add TODOs for fork choice items, add data structure for forks
* remove syncing and processing states for incoming block sync
* simulator only broadcasts blocks now, no more state simulation
* fix sim tests, no more state sim
* bazel rerun
* naive fork choice
* split update head routine
* pesky race conditions
* fork choice rule works
* dag + fork choice working
* canonical head storage across sessions
* todo: save dag
* no more stalling after 10 blocks, using event feeds
* address review
* sync instead uses event feed
* refactored pure funcs into casper package
* tests pass
* fix lint
* refactor get blockhash
* refactor blockhashforslot
* event feed for incoming blocks in chainservice
* use config
* addressed all comments
* fix typo
* address yutaro comment
* using db interface
* check if parent hash in previous slot DAG
* works
* tests
* drop ffg suffix
* bazel gazelle
* full cov validators by height shard
* gazelle
* state tests
* all state tests
* 100% cov types and 99% cover casper
* cov up
* 80% blockchain cov
* fix lint
2018-08-23 22:09:59 -06:00
terence tsao
7c8331e9d3
Renamed Client to Validator ( #428 )
2018-08-22 12:15:21 -07:00
terence tsao
56ba92ac93
Updated Docker Rules ( #424 )
2018-08-21 19:59:36 -07:00
Yutaro Mori
7cfda8a149
Extract Initial Sync Into its Own Package ( #404 )
...
* Initial commit to extract initial sync code
* Add stop/resume of sync/intialsync
* bazel run
* gometalinter
* add tests
* cleanup
* build fixes
* use infof rather than errorf if sync is not in correct state
* Add TODO comment detailing eventual completion of transition from initial sync to sync
* fix build
* pr comments
* fix tests
* bump
2018-08-22 09:52:03 +08:00
Yutaro Mori
920a9a874d
fix race condition in rpc tests ( #425 )
2018-08-21 20:45:47 -04:00
terence tsao
e1f727cbb2
Implement Beacon Node Validator and Observer Entry Points ( #414 )
2018-08-20 08:50:11 -07:00
terence tsao
5356bda411
beacon: Use Blake2b Sum512 Instead of 256 ( #419 )
...
* Revert "Add Skip Coverage Condition in Coverage.sh (#416 )"
This reverts commit 72a5dd1cf4
.
* use blake2b512
* messed up on coverage.sh
2018-08-19 18:01:19 -06:00
terence tsao
09824428e8
beacon: Improve Utils Coverage to 100% ( #415 )
2018-08-18 20:24:42 -06:00
Raul Jordan
d3b5a7c67b
beacon: Implement Beacon Node gRPC Server Streams ( #400 )
...
* remove client helper in internal
* tidying up the sharding client project
* update all docs
* implementing beacon rpc server methods
* address prs
* begin coverage
* regen proto
* include announcement chans
* tests pass, announcing as canonical only after block has passed all processing
* system functioning yay
* tests pass
* bootstrap validators
* default balance params
* fix lint
* fix all tests
* increasing cov
* 100% test cov rpc
* build file for internal
* typo
* graceful stop
* merge with Terence's PR
* address review comments
* fixed blockchain tests and lint
* added ethdb
* persists last simulated session
* cov
* ready
* fix lint
* fix cov tests
* fix lint
* config options for args
* fix lint
* lint fix
2018-08-17 21:34:56 -06:00
terence tsao
72282a90ba
Part 2 of Aligning Core Package with Latest 2.1 - Helper Functions ( #403 )
2018-08-17 18:54:34 -07:00
terence tsao
b7bf48bc3e
Fixed NewSimulatedBackend ( #405 )
...
* sync functions for active and crystallized states
* make pb structure more semantic
* use run func to consolidate to one main routine
* remove mainchain package
* remove smc. yay!
* fixed NewSimulatedBackend
* added smc tests back
* race = off
* used latest commit from bazel-go-ethereum
* changed testoutput to all
* output test.log after failure
* disable race
* restore travis config to original state, add race=off to blockchain workspace
* added issue number and fixed typo
2018-08-16 15:37:53 -06:00
terence tsao
06ca8e758f
beacon: Improve Test Coverage for Beacon Chain Package ( #402 )
2018-08-14 22:49:59 -06:00
terence tsao
1f56c4304d
Part 1 of Aligning Core Blockchain Package with Latest 2.1 Spec ( #371 )
2018-08-13 17:58:37 -07:00
Ivan Martinez
4976461e62
Implement GenesisBlock() to Grab the Block from Memory DB ( #373 )
...
* Fix odd placement of import
* Puts all of NewGenesisBlock() into GenesisBlock()
Also removes the unneeded TODO
* Add error check for db retrieval
* Add missing bazel imports
* Add back NewGenesisBlock and create GenesisBlock in NewBeaconChian
* Fix GenesisBlock() to grab the block from memory db
* Fix according to requested changes
Fix GenesisBlock() to grab the block from memory db
Fix odd placement of import
Properly add ParentHash to Block
Remove no longer needed if statement condition
Puts all of NewGenesisBlock() into GenesisBlock()
Also removes the unneeded TODO
Add error check for db retrieval
Add case for if the beaconChain is missing a genesisBlock
Add missing bazel imports
Add back NewGenesisBlock and create GenesisBlock in NewBeaconChian
Remove duplicate code
Change genesis block timestamp to unix 0
Adds info log when a genesis block isn't found
* Provide fakeClock to pass tests with a mocked genesisBlock
* Fix unexpected log in test from addition of genesis block
* Add tests for clock
2018-08-12 22:07:37 -04:00
Federico Gimenez
dd29481abe
Fix beacon-chain/sync Test Race ( #390 )
...
* fix beacon-chain/sync test race
* address review comments
* remove unused file
* gazelle
* disable race for client/contracts
* address review comments
* fix conflict
* remove duplicated deps, embed
* remove unneeded file
2018-08-12 16:27:21 -04:00
Raul Jordan
2060d2934e
beacon: Fix Beacon Block Response in Simulator ( #394 )
2018-08-12 13:20:30 -05:00
Raul Jordan
cd90598a90
client: Update Attester to Use Beacon Node RPC, Replacing SMC Completely ( #365 )
2018-08-09 17:54:59 -05:00
Ivan Martinez
390ac62ed8
Update docs client/beacon-chain wide ( #386 )
2018-08-09 11:25:48 -07:00
Ivan Martinez
0d0626a101
Add support to pass in TLS key/crt to use gRPC securely ( #384 )
2018-08-08 15:43:25 -07:00
terence tsao
7841c53db0
Each Service Should Run a Single Main Routine ( #382 )
2018-08-07 12:56:28 -05:00
Nishant Das
2cf7fa0174
Check Last Finalized Epoch ( #357 )
...
* Adding proto topics
* Adding crystallized state request
* Reverting shanges to proto
* Adding db checks
* get crystallised state
* Finalize epoch for mapping
* more changes
* cleaning up main routine
* adding tests
* fix test
* Adding ability to save blocks
* Adding block fetcher
* Another test for setting finalized epoch
* adding final tests
* finished tests
* adding comments
* gazelle
* Making requested changes
* Fixing lint
* stop sync from exiting
* fixing lint
* lint
* Adding new request type to proto
* Making changes to block/state requests
* Change tests
* fixing error messages
* gazelle and lint
* adding back crystallised state
* fix tests
* Fixing merge conflicts
* Addressing review comments
* Changing back to one service
* removing case
2018-08-07 20:12:10 +08:00
terence tsao
bfaa248b39
Refactor Proto Struct to Be More Semantic ( #381 )
2018-08-05 16:23:31 -07:00
Ivan Martinez
73f24561c7
Change all struct initializations to be explicit ( #374 )
2018-08-03 14:31:52 -07:00
terence tsao
87d5fbfd2b
Move Get Cutoff Algo to Utils Package ( #370 )
2018-08-02 14:20:54 -07:00
terence tsao
0a5e091ad3
Fixed Deficiency in Apply Reward & Refactored Blockchain Functions ( #367 )
2018-08-02 10:47:49 -07:00
Raul Jordan
29596bf862
beacon: Beacon Node gRPC Server and Client Services ( #364 )
2018-08-01 17:08:44 -05:00
terence tsao
c9f1bfc19c
Simulate Epoch Transition ( #361 )
2018-08-01 08:24:55 -07:00
Edward Ward
a433bc70f2
Fix Gitter Link ( #362 )
...
Was getting 404 for the gitter link, now working.
2018-08-01 07:51:29 -04:00
terence tsao
2c4bfeeef0
sync functions for active and crystallized states ( #358 )
2018-07-31 18:13:54 -07:00
Raul Jordan
13a011ce5f
proto: Structure Protos for Beacon and for Sharding ( #359 )
2018-07-31 13:54:45 -05:00
Yutaro Mori
f3b3712916
Quick Test Helper for Creating Blocks ( #356 )
2018-07-31 07:37:20 -07:00
Sina Mahmoodi
8c0e9d231c
beacon: Check parent hash in block processing ( #340 )
...
Signed-off-by: Sina Mahmoodi <itz.s1na@gmail.com>
2018-07-31 18:06:44 +09:00
Raul Jordan
cccd675a84
beacon: Initial Sync Network Simulator ( #341 )
2018-07-30 23:41:27 -05:00
terence tsao
9b1966374a
Part 2 of State Sync - Active State Proto Struct ( #355 )
2018-07-30 18:13:25 -07:00
terence tsao
33c56092ad
beacon: Part 1 of State Sync - Crystallized State Proto Struct ( #354 )
2018-07-30 19:29:40 -05:00
Yutaro Mori
9c9aef8194
Eliminate test only methods on types.Block ( #350 )
2018-07-31 00:45:44 +09:00
Preston Van Loon
26fec66da4
Kubernetes - Part 1 of ?? ( #348 )
...
* Add basic k8s configuration for geth deployments
* set genesis difficulty to 0x0
* gazelle, comments
* More comments on priority class and adjust priority class for ethstats
* Adjustments to the miner limits
* set minimum gas price to 0
2018-07-30 10:04:47 -04:00
Yutaro Mori
f9d23da2dd
Decouple Database From the ServiceRegistry ( #335 )
2018-07-29 23:14:50 -07:00
terence tsao
9853f53cc1
beacon: Quick Fix on Typo ( #346 )
2018-07-29 21:20:20 -04:00
terence tsao
1cb300565d
Implement Validator Cutoff Algorithm ( #339 )
2018-07-29 10:03:03 -07:00
Nishant Das
d7a88dffa4
Implemeting Validator Rewards and Penalties ( #323 )
...
* Adding Validator Rewards
* Addressing review comments
* Adding Penalties
* Adding changes
* Breaking up functions
* Cleaning up
* Adding slashing conditions
* Adding slashing condition boiler plate
* Adding tests
* Adding comments
* Adding comments
* Add in Pubkey
* Adding more tests
* Adding more unit tests and making name changes
* Add beacon chain test helper and fix references to it
* Adding rewards test
* Adding all tests
* Addressing review comments
* Remove slashing conditions
* fix lint
* Fixing merge issues
* removing commented function
* removing newline
* fix golint
2018-07-30 00:22:15 +08:00
Preston Van Loon
9cf375267e
Add Security Linter: gosec ( #343 )
2018-07-28 20:44:24 -04:00
Raul Jordan
9ab02849b6
beacon: Initial Beacon P2P Protobufs, Subscriptions ( #327 )
2018-07-28 15:53:02 -04:00
Yutaro Mori
67d05861eb
beacon: Merge PoWChain goroutines together ( #334 )
2018-07-27 13:41:00 -05:00
terence tsao
b1c47ab83a
Implement Validator Clean Up for Dynasty Transition ( #329 )
2018-07-26 11:20:55 -07:00
Preston Van Loon
5776e573ed
Add script to ensure visibility is OK ( #332 )
...
* Add script to ensure visibility is OK
* typo
* another typo
2018-07-26 13:13:07 +08:00
Yutaro Mori
09ca832a5f
beacon: Beginning the Sync Service for the Beacon Chain ( #322 )
2018-07-25 11:57:44 -05:00
terence tsao
c0b4503d5f
beacon: Check State Hashes while Processing Incoming Blocks ( #319 )
2018-07-24 16:09:04 -05:00
Raul Jordan
d46f1f6502
beacon: Block Processing Validity Conditions ( #310 )
2018-07-23 12:54:41 -04:00
Preston Van Loon
48b047fd61
Add Docker Container Images for beacon-chain and client ( #314 )
...
* Add docker container images for beacon-chain and client
* Add docker section to README
2018-07-22 13:31:43 -04:00
terence tsao
3abfb77b87
Outline for Active State Transition Function ( #309 )
2018-07-22 13:00:10 -04:00
Raul Jordan
b6cd890a67
Log Verbosity Flags + Logrus Package Level Logs With Fields ( #304 )
...
Former-commit-id: f7344b7d3fb2fa07f0fd421c5ed3721f6c7a9258 [formerly e678ab2f1681d9492c0e1b142cd06ee08a462fdb]
Former-commit-id: d942da3d5cfcde921bebb149c26edd5c4ed178dd
2018-07-21 12:51:18 -05:00
Raul Jordan
59fc2e13e7
client: Fix P2P Linter Error ( #307 )
...
Former-commit-id: 5f673dffed4267c1aca8ebfb4fe182798b9b2d2a [formerly 3fd494231ba5a350ab59a86fcf60ae9f56f1da00]
Former-commit-id: 1506dd418121884a8c7a727f8cf03c12e4c93cc3
2018-07-21 12:20:00 -05:00
Raul Jordan
92af8bc351
Rename Entire Project to Repo, Change Import Paths and Readmes ( #298 )
...
Former-commit-id: b7b8bbd10777012ae6f7d30eb6b05c3b1c3ec5d3 [formerly 06e1112fa0e1092a7137186d3a386972daa2effe]
Former-commit-id: ff2bc760c9dafb6250f056606eb2cbf96b6afa5b
2018-07-20 16:31:26 -05:00
Raul Jordan
abed3dcb6d
update to GPLv3 ( #297 )
...
Former-commit-id: cc6b67b7391c407d2f830ae46e6765e097c50c57 [formerly cb2dc8a0ea96b92897dd8f797eb632c941d9f653]
Former-commit-id: 600e28af6901b19b8d191cf3153343d94670f9d0
2018-07-20 10:23:48 -05:00
Raul Jordan
4d5d229f0f
beacon: Define a Core Blockchain Package and Persisted Structure for Beacon ( #278 )
...
Former-commit-id: bbd5b46e7f64f762350d6fb496492207e70d7130 [formerly 43a37f7139b7d1d90f0c27a7406b63bdf390ad96]
Former-commit-id: bb7a2ff0a7619f8de0bd38cd2c9eb0de7c189edb
2018-07-19 11:31:50 -05:00
Preston Van Loon
77267169ea
Add More Lint Rules With gometalinter ( #284 )
...
* turn up linter to 11
* Added extra linting rules and fixed all lint issues
* add deadline of 10m
Former-commit-id: 632999fcaa8370516d6fe76c28c503cb2e3319b7 [formerly d4354f631b1eb4f7918cde28bf063f756ae92a54]
Former-commit-id: 3aaf78a56b76850b0123d61551ac554ccecfe9ad
2018-07-15 15:06:36 -04:00
Raul Jordan
878a332913
beacon: Create a Subscription to Mainchain Head Events Via RPC as a Service in Beacon Node ( #273 )
...
Former-commit-id: a4677d647a959cbbbe9c4046e16fa6fa761133ac [formerly f775f6e9529e64cb1392a22f8ef15b186efa14ed]
Former-commit-id: 42350204f72fcba4626a39e61b6e64b6f0afba32
2018-07-14 14:48:42 -05:00
Raul Jordan
e305d58355
shared: reinclude debug.Exit() usefulness ( #275 )
...
Former-commit-id: 423052bc5858f3e5772b37bb9d0b4a05f9b131ac [formerly 869ca9c92bc215b0583953bb5ab2479927b15256]
Former-commit-id: bfd9353f0234864c9823ad3ee10d152d59af791c
2018-07-13 22:35:15 -05:00
Raul Jordan
83569f1342
shared: Abstract Service Registry Into Shared Folder, Add Beacon Node and Beacon Entry Point ( #268 )
...
Former-commit-id: 406ba2f1e65ec58e822fcf1b9d54c44ba51a559c [formerly 52aebe050663c4dc73fc56e5e4c6846620267f1f]
Former-commit-id: c959a9fda119e4403136ac4f8d1b345d464ab5df
2018-07-13 21:15:37 -05:00
Raul Jordan
0444ee81c4
Update Documentation to Reflect Beacon Chain Research ( #247 )
...
Former-commit-id: 91dea499d9e27b0ca9e22769582eae6f8d042a98 [formerly 9bfb7f7fef2b8e4802cfd5d99be561378a5ada65]
Former-commit-id: 5a2a52d440d9d67857f5ecac173aa721ce46d12c
2018-07-12 12:12:11 -05:00
Raul Jordan
923e727819
Fix Bazel Build Rules for Visibility, Move LICENSE to Top-Level ( #253 )
...
Former-commit-id: 4857afb2c25835b643cd58dd90b114695154b50f [formerly 5d2c723def807289eb72e6c35ce7036ef70f837e]
Former-commit-id: 79c8f081748e29e00b61ace851f74c2252865729
2018-07-12 12:00:37 -05:00
Nishant Das
620564cd61
beacon: move beacon-chain to geth-sharding repo ( #250 )
...
Former-commit-id: 689de6935d724226eb9125d597831d7b274d79c1 [formerly 4e0c0d671c4e6284cd33300231cc0f7aba99d314]
Former-commit-id: c3079b352bc938c12708b81cdc0130909456ea27
2018-07-11 17:29:31 -05:00