Commit Graph

1579 Commits

Author SHA1 Message Date
terence tsao
9f64ee7ecf
Remove Processed Block Operations from DB (#1626) 2019-02-18 15:34:49 -08:00
Preston Van Loon
c9bfa52119 Print a better copy/paste version of the deposit data (#1629) 2019-02-18 15:06:55 -08:00
Ivan Martinez
650372915f Hotfix/add both role case (#1627) 2019-02-18 14:51:49 -08:00
terence tsao
8b661c9540
CheckBit to work with small endian (#1628) 2019-02-18 12:45:20 -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
terence tsao
fc1aacaa54 Skips Attestation Older than Finalized Slot (#1623)
* fixed epoch_processing

* sync skips attestation with slot < finalized slot

* lint
2019-02-17 16:10:57 -06:00
terence tsao
25c5c9f6cc Add a Note for Leap Sec in Block Validity Condition (#1622)
* fixed epoch_processing

* added leap sec description

* revert

* fixed epoch_processing

* added leap sec description

* revert
2019-02-17 15:40:48 -06:00
terence tsao
26961d4686
Fix Off By One Attestation Bug (#1619) 2019-02-17 06:45:56 -08:00
terence tsao
4ee40706e0 Fix Penalize Validator Precondition (#1620)
* fixed epoch_processing

* test p2p

* added pre-condition and fixed tests
2019-02-16 21:58:15 -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
renovate[bot]
8c0825047f Update org_golang_x_sys commit hash to d0b11bd (#1603) 2019-02-15 23:34:12 -05:00
Raul Jordan
c032b0f6b5
Pending Attestations RPC Server/Client Implementation (#1617)
* complete tests for integrating the attestations pool

* fix broken build
2019-02-15 18:36:40 -06:00
Preston Van Loon
5109c1181a Deposit Contract; make some things public (#1612) 2019-02-15 16:25:01 -08:00
terence tsao
de4c8667fd Fixed Get Block Root (#1616)
* fixed epoch_processing

* test p2p

* fixed get block root and tests

* in test nightmare, yay

* fixed all the tests

* lint
2019-02-15 17:19:36 -06:00
Preston Van Loon
c07b9bb456
remove old keystore flag (#1610) 2019-02-15 17:50:25 -05: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
terence tsao
c8a170dbad Retrieve Attestations from Operation Service (#1606)
* fixed epoch_processing

* test p2p

* attestation pool to retrieve attestations up to max config amount

* lint

* update comments

* lint
2019-02-15 13:27:45 -06:00
Preston Van Loon
a57912dd5a
restore testutil usage removed in #1607 (#1608) 2019-02-15 14:04:51 -05:00
Preston Van Loon
8d67337564
Revert go-bls (#1607)
* revert bc2afa04c6

* Fix workspace

* remove serialize reference

* Remove static
2019-02-15 13:31:07 -05:00
Ivan Martinez
78c205758f Wait Until Halfway Through Slot Duration to AttestHead (#1532)
* Write initial sleep function

* Add fake delay to testing

* Attempt to fix tests

* Fix tests

* Remove stray delay = 0

* Attempt at test

* Changes to tests, removed unneeded code

* Fix delay

* Get further in test

* Fix gomock being stupid

* Fix merge issues

* Fix tests

* Fix tests (!!!)

* Fix goimports

* Fix merge issues
2019-02-15 10:58:06 -06:00
terence tsao
eab64062d7
Fixed Epoch Committee Count's Lower Bound to 1 (#1604) 2019-02-14 18:06:09 -08:00
renovate[bot]
2de83fbbb5 Update com_github_libp2p_go_libp2p_discovery commit hash to ececb85 (#1598) 2019-02-14 16:13:54 -08:00
Raul Jordan
1d72cee59c Revive Our Demo Config for Local Testing (#1602) 2019-02-14 15:01:07 -08:00
Preston Van Loon
bbf2052c98 disable gcc warnings for geth (#1599) 2019-02-14 14:10:09 -08:00
Raul Jordan
37fa839d98
Eliminate Repeated Expensive Operation in Client Tests (#1597)
* no more repeated get key

* no more calls to triple new key

* goimports
2019-02-14 14:51:40 -06: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
Nishant Das
fa47e0fd95 Add ChainStart Delay Flag (#1591)
* add flag

* log formatting

* fix test

* do not process logs if flag is enabled
2019-02-14 11:11:03 -06:00
Jie Hou
d620361233 Support typed nil pointer in tree hash (#1590) 2019-02-14 09:22:12 -06:00
Raul Jordan
e052e457df
Remove Old References to Block Vote Cache (#1585)
* rem references to vote cache

* fix build
2019-02-14 08:54:29 -06:00
renovate[bot]
20a340bfcc Update com_github_libp2p_go_libp2p_discovery commit hash to 17aa7d7 (#1592) 2019-02-14 08:53:29 -05:00
renovate[bot]
120f5e6c87 Update dependency build_bazel_rules_nodejs to v0.18.6 (#1588) 2019-02-14 08:31:02 -05:00
Preston Van Loon
65c2fe22cf
Temporarily disable static linking for validator docker image #1582 (#1589) 2019-02-14 08:29:34 -05:00
renovate[bot]
6af4505b9a Update com_github_aristanetworks_goarista commit hash to c1e4b37 (#1587) 2019-02-14 17:08:12 +05:30
Nishant Das
bddceda33b Implement Verify Bitfield (#1562) 2019-02-14 01:17:54 +00:00
Raul Jordan
281e5d1cfd
Provide Real Keystore to Validator Service for Public/Private Key Access at Runtime (#1570)
* provide validator with real keystore public key

* fmt

* build errors buildkite

* readd imports removed by goimport

* gazelle

* address broken tests

* make reference to filename a param

* fmt

* imports

* gazelle

* os remove all

* Use better Temp storage for tests

* testmain approach to avoid repeating expensive operation for each test

* travis lint

* fix test

* nokeystore in status test

* passing

* fix goimports
2019-02-13 17:49:06 -06:00
terence tsao
59e5e59300
Update Fork Choice to Use Balance (#1564) 2019-02-13 23:13:00 +00:00
terence tsao
89b451cb6e Move Validator Helper Functions to Helper Package (#1584)
* fixed epoch_processing

* test p2p

* refactored validator helpers to helper package

* increased validator test cov
2019-02-13 15:04:31 -06:00
Raul Jordan
fb9d60c377
Update References to Deposit Contract, Update Flags (#1576)
* update readme

* rename k8 file
2019-02-13 13:08:28 -06:00
Raul Jordan
b1f1dff8e5
Fetch Initial Assignments at Genesis Slot Post ChainStart (#1574)
* fix test for initial assign

* fmt
2019-02-13 12:27:44 -06:00
Raul Jordan
f707f14cb2
Change BLS Public Key Length Check in Beacon RPC Server (#1571) 2019-02-13 12:08:25 -06: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
f8d8865020
Moved Rewards/Penalties Helpers to Helper Packages (#1583) 2019-02-13 17:33:45 +00:00
terence tsao
fa47a9bf36
Remove Justified Slot (#1561) 2019-02-13 16:42:33 +00:00
Nishant Das
77b1cc1c81
Simplify Config (#1579)
* clean up config

* lint
2019-02-13 20:04:58 +05:30
renovate[bot]
8f43a27615 Update org_golang_x_sys commit hash to 983097b (#1580) 2019-02-13 13:47:13 +00:00
renovate[bot]
7157f46212 Update com_github_btcsuite_btcd commit hash to 306aecf (#1578) 2019-02-13 13:19:43 +00:00
renovate[bot]
fc366304bc Update org_golang_x_oauth2 commit hash to 3e8b2be (#1575) 2019-02-13 00:33:22 +00:00
renovate[bot]
b36fb6c714 Update com_github_libp2p_go_libp2p_discovery commit hash to d4858e0 (#1573) 2019-02-12 23:49:59 +00:00
renovate[bot]
2d8fed2839 Update com_github_aristanetworks_goarista commit hash to 83ee463 (#1572) 2019-02-12 23:32:59 +00:00
Raul Jordan
bb3ee07a3d
Standardize Slot Ticker with params.BeaconConfig().GenesisSlot (#1569)
* tests passing after standardizing to genesis slot

* goimports

* no more magic numbers in current slot

* fmt
2019-02-12 14:58:35 -06:00