terence tsao
b00891880e
Implement Validator Status RPC Methods ( #1839 )
2019-03-03 21:28:00 -08:00
terence tsao
17682321fe
Clean Up Validator RPC Server ( #1798 )
2019-03-03 14:55:12 -08:00
Ivan Martinez
5aa7320507
Clear Up Code Inconsistencies ( #1836 )
2019-03-03 09:31:29 -08:00
Preston Van Loon
f09c66035b
add slot metric ( #1815 )
2019-03-03 08:18:27 -05:00
terence tsao
c467ef19fa
remove fmt print ( #1811 )
2019-03-02 22:49:00 -05:00
terence tsao
94e6cfe478
Refactor Crosslink Committees at Slot ( #1771 )
2019-03-02 19:14:04 -08:00
terence tsao
6a1addbd1a
remove logging exits ( #1791 )
2019-03-02 21:22:35 -05:00
Nishant Das
b8785ba1d8
Eth1 Data Fix ( #1785 )
...
* adding fields to initalize state
* fix references
* change naming
* change to eth1data
* lint
2019-03-02 17:38:22 -06:00
terence tsao
5ab93dfabb
Fix Randao Reveal Bug ( #1801 )
...
* use 32 bytes
* all tests passed
* lint
2019-03-02 17:24:15 -06:00
Raul Jordan
88765b6d3c
Fix Attestation Info at Slot to Match Justified Epoch Expectations ( #1768 )
...
* fix crosslinkt committees
* fix lint
* fix in epoch
* imports
* add gx tags
* epoch shuffling tests
* regress test
* preston comments
* service change
* advance to handle skip slots
* ready
* imports
* rem unnecessary log
* revert config
* last comment
* imports
2019-03-01 18:33:55 -06:00
Raul Jordan
7fac8a3c42
Fix Crosslink Calculation in Assignment Fetching ( #1737 )
...
* fix crosslinkt committees
* fix lint
* fix in epoch
* imports
* add gx tags
* epoch shuffling tests
* regress test
* preston comments
* lint
2019-03-01 11:39:09 -06:00
terence tsao
6dc6a9b766
Misc Fixes for Epoch Processing ( #1762 )
...
* misc fixes for epoch processing
* more fixes
* more fixes
* added todos
* fixed tests
* lint
2019-02-28 20:47:32 -06:00
terence tsao
852214e497
Remove Next Epoch Registry Change Checks ( #1761 )
2019-02-28 07:27:43 -08:00
terence tsao
4bc324dc95
Make Getting Epoch Assignment Generic ( #1746 )
2019-02-27 17:16:05 -08:00
terence tsao
9f950211d8
Rename Shard Block Root to Crosslink Data Root ( #1743 )
2019-02-27 15:07:39 -08:00
Ivan Martinez
136950e0c5
Update some of client to v0.3 spec ( #1733 )
...
* Update validator to v0.3 spec
* Fix typos with rename
2019-02-27 12:21:15 -08:00
terence tsao
79252f1e96
Fix committee assignment bugs ( #1740 )
...
* moved processiing logs to block chain service layer
* fix-committee-start-shard-bug
* typo
* fixed test
2019-02-27 13:36:37 -06:00
terence tsao
727adacb4b
fixed slashed epoch ( #1723 )
2019-02-26 16:12:06 -06:00
terence tsao
84a6d2dcc5
Fix Get Previous Epoch Logic ( #1721 )
...
* moved processiing logs to block chain service layer
* fixed prev epoch logic
2019-02-26 11:53:36 -06:00
Raul Jordan
ed156e7c0e
use reg change flag everywhere ( #1722 )
2019-02-26 11:27:27 -06:00
terence tsao
0976584f8e
moved processiing logs to block chain service layer ( #1708 )
2019-02-26 10:23:38 -06:00
terence tsao
c4ebb0a522
Fix attestation inclusion ( #1715 )
2019-02-26 07:38:49 -08:00
Raul Jordan
f5178ef4a6
registry change fix ( #1713 )
2019-02-25 20:19:24 -08:00
Raul Jordan
20803b4c9d
Revert Usage of ssz.TreeHash Across Repo ( #1711 )
...
* revert using ssz.TreeHash
* gazelle
2019-02-25 21:42:31 -06:00
Raul Jordan
84142477ea
Utilize New UpdateRegistry Function ( #1710 )
...
* fix current boundary issue
* gazelle
* test fix
* deprecate old epoch processing justified hash indices
* finality fixes
* fmt
* pseudocode
* underflow conditions
* add back att fix
* remove off by one fix
* fix most tests
* fix all tests
* logging proposers
* use the update registry function
* outdated tests
* fixed check reg change
* gazelle
* tests pass
* registry change flag
2019-02-25 18:37:55 -06:00
Raul Jordan
f1114ca35c
Align Epoch Processing With Spec ( #1703 )
...
* fix current boundary issue
* gazelle
* test fix
* deprecate old epoch processing justified hash indices
* finality fixes
* fmt
* pseudocode
* underflow conditions
* add back att fix
* remove off by one fix
* fix most tests
* fix all tests
2019-02-25 15:16:12 -06:00
terence tsao
b6cc79fa2a
Save Validator Public Key -> Index in DB ( #1690 )
2019-02-25 09:37:02 -08:00
Raul Jordan
e19920aec1
Miscellaneous Runtime Fixes & Improvements - Raul ( #1674 )
...
* fatal if impossible to receive chainstart
* fix tests
* fix
* custom delay
* completed custom delay
* errors
* better logs, nothing at genesis
* use demo in val
* add gazelle
* log
* starting to log stuff
* pass in ops
* avoid printing the large #s for debug, still working on tests..
* all around better logging
* fixed build error in epoch process
* fixed state transiton tests
* fixed block tests
* lint
* verify sigs in randao
* ready for inclusion falg
* only print waiting when slot is not valid
* fix build
* mod config
* fixed last justified slot issue
* fix inclusion
* fixed attestation issue
* using zero hash from params instead
* fix tests
* update balance
* removed swp
* more `- genesis_slot` for logs
* rem unused log
* fix broken tests
* account for skip slots in state root computation
* fixes done
* validator guide bug fixes - 671
* epoch boundary at the last slot of the epoch
* fix epoch issue
* more balance cal logs for debugging
* greater balance
* attestaton fixes
* fixes
* addressed testrun
* fixed ejection balance
* fix tests with far future epoch
* revert sync change
* revert initial sync change
* fix changes
* off by one att fix
* revert the att fix
* address comments
* format
* fix build
* rem file
2019-02-24 20:09:45 -06:00
Preston Van Loon
69572d0ada
Add validator balance metric ( #1692 )
...
* Add validator metrics
* Add test
* use hex.EncodeToString for faster processing
2019-02-23 23:33:10 -05:00
Nishant Das
f5c88e1bcb
Test Syncing with Another Fully Synced Service ( #1594 )
...
* clean up test
* adding test setup
* add chainstart check to sync querier
* goimports
* goimports
* backend cleanup
* adding getters
* lint
* moving to db
* gazelle
* adding more services setup
* adding more changes
* adding different test setups
* other merge issues
* imports
* fixing keys
* get intial sync able to be set up
* new changes and gazelle
* use simulated p2p
* everything finally works
* unexport fields
* revert changes from merge
* remove mock server
* add documentation
* gazelle
* add another node
* review comments
* fix tests
2019-02-23 11:36:20 +05:30
Ivan Martinez
0d29b2cd91
Makes test naming consistent across codebase ( #1636 )
2019-02-22 07:11:26 -08:00
terence tsao
ddb8fa1867
Implement Process Slot for Per-slot Processing ( #1663 )
2019-02-20 12:08:05 -08:00
Raul Jordan
19abe81472
Implement Randao Reveal Signing in Proposer Client ( #1650 )
...
* finish the BLS API wrapper
* all tests passing
* unexported comment
* gofmt tests for bls
* block processing test into own package to avoid cycle
* randao tests pass
* blocks test passing
* use common deposit generator
* helper
* resolved import cycle
* setup initial
* builds
* almost done with blockchain tests
* fix blockchain tests
* getting through with chaintests
* revert client change
* lint
* sync master conflict gazelle
* randao test fixes
* randao proposer impl
* tests pass
2019-02-20 12:58:34 -06:00
Raul Jordan
b0f5324303
Implement BLS Based RANDAO ( #1633 )
...
* finish the BLS API wrapper
* all tests passing
* unexported comment
* gofmt tests for bls
* block processing test into own package to avoid cycle
* randao tests pass
* blocks test passing
* use common deposit generator
* helper
* resolved import cycle
* setup initial
* builds
* almost done with blockchain tests
* fix blockchain tests
* getting through with chaintests
* revert client change
* lint
* sync master conflict gazelle
* randao test fixes
2019-02-19 23:07:28 -06:00
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
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
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
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
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
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
eab64062d7
Fixed Epoch Committee Count's Lower Bound to 1 ( #1604 )
2019-02-14 18:06:09 -08: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
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
Nishant Das
bddceda33b
Implement Verify Bitfield ( #1562 )
2019-02-14 01:17:54 +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