Raul Jordan
dce9c41094
Define Interface Stubs for New DB Interface ( #3164 )
...
* begin db interface
* define the database interface
* interface definition simplifications
* include latest message proto
* modify pbs
* rem kv folder
* add filter interface
* lint
* ctx package is great
* interface getting better
* ctx everywhere...it's everywhere!
* block roots method
* new kv store initialization
* comments
* gaz
* implement interface
* refactor for proper naming conventions
* add todos
* proper comments
* rem unused
2019-08-10 20:50:10 -04:00
Ivan Martinez
bb2d79be85
Aggregate attestations before adding into the DB ( #3149 )
...
* Implement Attestation Aggregation before inserting into the DB
* Nearly complete test for aggregating signatures
* Finish tests for aggregating signatures
* gazelle
* Rename tests
* add lock and advance state
* only advance if necessary
* Fix most tests
* Fix more of DB keys and changing keys to data hashes
* Fix a lot of tests and inconsistencies
* fix lock
* gaz
* undo local changes
* fix ref
* fix ref
* Fix some tests
* clear cache
* fix sync for attestations
* finally working across multiple nodes
* gen proto
* lint
* properly wrap error
2019-08-10 16:13:04 -04:00
Preston Van Loon
830a0a4bca
Fix mid-epoch assignment requests ( #3168 )
...
* fix mid-epoch assignments
* add quick test comment
2019-08-10 15:49:58 -04:00
terence tsao
d153abd992
Remove attestation announcement ( #3165 )
2019-08-09 16:31:44 -07:00
Raul Jordan
3d63bca127
Define New DB Interface ( #3163 )
...
* begin db interface
* define the database interface
* interface definition simplifications
* include latest message proto
* modify pbs
* rem kv folder
* add filter interface
* lint
* ctx package is great
* interface getting better
* ctx everywhere...it's everywhere!
* block roots method
2019-08-09 15:17:18 -04:00
Jean-André Santoni
e1dfe73525
Query a roughtime server to mitigate NTP attacks ( #3151 )
2019-08-09 07:05:08 -07:00
Preston Van Loon
d860dbbb60
Fix deposits at genesis eth1data ( #3161 )
...
* Exclude additional deposits from genesis block
* fix tests
* add test to cover this scenario
2019-08-08 23:26:18 -04:00
terence tsao
32c426ed1b
Replaced block and state roots construction to SlotsPerHistoricalRoot
( #3160 )
2019-08-08 13:12:35 -05:00
terence tsao
b3e29399aa
Reest array size to SlotsPerHistoricalRoot ( #3158 )
2019-08-08 08:03:24 -07:00
terence tsao
2ec8a46cb2
forgot to wrap these two errors ( #3156 )
2019-08-08 06:55:25 -07:00
Preston Van Loon
ccc7d8d7b7
Update BLS with @protolambda's improvements ( #3152 )
...
* Add @protolambda's fork until https://github.com/phoreproject/bls/pull/11
* update workspace
2019-08-07 22:54:33 -04:00
Raul Jordan
4e041c852b
utilize newest ssz and fix build ( #3155 )
2019-08-07 20:24:04 -05:00
Preston Van Loon
cb5c920502
Add quick bls benchmark ( #3148 )
2019-08-05 17:11:38 -07:00
Nishant Das
9ec54ae432
Optimize Verification Of Signatures in Attestations ( #3146 )
...
* add few changes
* add process attestation no verify
* gaz
* add reg test
* revert config
* add new method
* fix test
* preston's review
* preston's review
* space
2019-08-05 10:35:47 -04:00
terence tsao
dec694916b
Renovate updates in batch ( #3145 )
...
* Update io_bazel_rules_k8s commit hash to 5648b17
* Update dependency build_bazel_rules_nodejs to v0.35.0
* Update libp2p
* Update dependency com_github_urfave_cli to v1
2019-08-05 09:33:40 -04:00
renovate[bot]
64f7569894
Update graknlabs_bazel_distribution commit hash to 8dc6490 ( #3138 )
2019-08-05 00:37:19 -04:00
renovate[bot]
7d2bb5878f
Update dependency io_bazel_rules_docker to v0.9.0 ( #3141 )
2019-08-04 23:33:51 -04:00
terence tsao
bccd2f95cc
Finish error wrapping ( #3135 )
2019-08-04 15:45:03 -07:00
Preston Van Loon
d97b691f7d
stub insertions when flag off ( #3131 )
2019-08-03 16:28:04 -04:00
terence tsao
d59800210a
Skip empty criteria for public key instead of fail ( #3130 )
2019-08-03 10:23:10 -07:00
terence tsao
7e819990f6
Reject attestation older than finalized epoch ( #3124 )
...
* Reject Att older than current finalized epoch
* Fixed receive att test
* Don't use slot for old fork choice target map, use epoch
* Fixed one last conflict
2019-08-03 10:07:57 -07:00
terence tsao
d6b311ab84
Fix ListBlock RPC bugs ( #3126 )
2019-08-03 09:22:13 -07:00
Nishant Das
ea09a918d8
Fix Sync Service Status ( #3128 )
...
* fix bug
* remove log
2019-08-03 10:37:52 -04:00
Nishant Das
b1fcaa03ae
Remove Statistical Package ( #3129 )
2019-08-03 06:47:46 -07:00
terence tsao
0beb919fc0
Switch over to sha256-simd ( #3125 )
2019-08-02 14:42:59 -07:00
Preston Van Loon
953c59a302
Wrap errors ( #3123 )
2019-08-01 19:27:38 -07:00
terence tsao
7eca7ba43b
Fixed spelling of genesis ( #3120 )
2019-08-01 16:55:50 -04:00
Preston Van Loon
f019e54ebb
Remove metrics with high cardinality ( #3121 )
...
* remove metrics with high cardinality
* imports
2019-08-01 12:23:52 -04:00
Nishant Das
474fd20123
Fixes when Fetching Pending Deposits ( #3119 )
...
* fix bug and add reg test
* fix test
* add better test
2019-08-01 11:12:54 -04:00
terence tsao
08ac1c3c35
Remove nil for assignment when slot is 0 ( #3117 )
2019-07-31 17:46:11 -05:00
Nishant Das
b504d3beb8
Attestation Fixes ( #3113 )
...
* change to hashTreeRoot
* remove function and run gaz
* fix panic
* remove cache and add fix
* Revert "remove cache and add fix"
This reverts commit 735986a2db6ba49a0b47611c773e9565f9a82061.
* add back fix
* comment out
* refactor and reg test
* some more fixes
* fix tests
* todo
* Revert config changes
* fix test
* Apply suggestions from code review
Co-Authored-By: terence tsao <terence@prysmaticlabs.com>
* Update beacon-chain/rpc/attester_server.go
Co-Authored-By: terence tsao <terence@prysmaticlabs.com>
* preston's review
2019-07-31 14:58:03 -04:00
terence tsao
da551f688d
Removed extra state root check ( #3114 )
2019-07-31 12:57:29 -04:00
Nishant Das
57d60d681a
Eth1Data VoteCount Fix ( #3105 )
...
* change to hashTreeRoot
* remove function and run gaz
* fix panic
* remove cache and add fix
* Revert "remove cache and add fix"
This reverts commit 735986a2db6ba49a0b47611c773e9565f9a82061.
* add back fix
* comment out
* refactor and reg test
* Update beacon-chain/rpc/proposer_server_test.go
Co-Authored-By: terence tsao <terence@prysmaticlabs.com>
* Terence PR feedback
2019-07-31 11:00:31 -04:00
terence tsao
f70d94675b
Fix assignment to advance state up to requested slot ( #3112 )
2019-07-30 20:47:34 -07:00
Preston Van Loon
3c3e4a2cb5
Add tests for db deposits ( #3111 )
...
* add tests for deposits
* fix imports
* gaz
* travis lint
2019-07-30 12:30:07 -04:00
Preston Van Loon
5f4cdd6095
Need to ignore in progress cache while disabled ( #3109 )
2019-07-30 01:07:18 -04:00
Preston Van Loon
63cf0f07a2
Disable caches, allow toggle via feature flag ( #3107 )
2019-07-29 20:38:05 -07:00
terence tsao
68f29967f3
Renovate updates in batch ( #3103 )
2019-07-29 08:23:34 -07:00
Nishant Das
f72f7677b3
Replace Deposit Hash with HashTreeRoot ( #3102 )
...
* change to hashTreeRoot
* remove function and run gaz
* fix panic
2019-07-29 08:43:24 -05:00
terence tsao
3fe0933936
Fixed TestRetrieveAttestations_OK test ( #3087 )
2019-07-27 17:13:00 -05:00
terence tsao
ad82e84503
Updated pseudocode for get_indexed_attestation ( #3086 )
2019-07-27 14:47:32 -07:00
Nishant Das
fc907261e9
Fix State Root Verification in Sync ( #3085 )
...
* remove caches
* use already imported block package
2019-07-28 02:32:13 +05:30
terence tsao
96c32c3865
Implement ListBlocks RPC function ( #3084 )
...
* Implemented rpc list blocks
* Tests for list blocks
* lint
* lint
2019-07-27 15:26:28 -05:00
Nishant Das
8cbd1097d7
Fix Signature Verification for Attestations ( #3080 )
...
* fix bug and test
* terence's review
2019-07-26 23:18:44 -05:00
terence tsao
956b07f5c1
Implement state transition no verify ( #3048 )
...
* Implemented state transition w/o sig verification
* ExecuteStateTransitionNoValidateStateRoot -> ExecuteStateTransitionNoVerify
* Fixed all the tests
* Extra spaces
* Gazelle
* Conflict
* Added start shard cache back
* typos
2019-07-27 00:24:42 +05:30
Raul Jordan
4ebe2fb5b5
Implement AttestationPool and ListAttestations RPC Functions ( #3061 )
2019-07-26 10:07:20 -07:00
Raul Jordan
40fca7bb2c
Update SSZ Dependency With Tree Hash Cache Enabled ( #3076 )
...
* utilize new SSZ
* workspace
2019-07-25 23:49:49 -05:00
Ivan Martinez
ed78f1f406
Require Signature Verification in Randao, Attestations and AttesterSlashings ( #3075 )
2019-07-25 14:42:13 -07:00
terence tsao
b80d9f4f7f
Implement GetValidatorParticipation RPC function ( #3069 )
2019-07-25 14:01:18 -07:00
terence tsao
c1eeeef853
Implement ListValidatorAssignments RPC function ( #3067 )
...
* Need to sync latest ethereum API, will do it in master
* Added pagination wrapper
* Implemented ListValidatorAssignments
* Finished tests
* Fixed tests
* Raul's feedback
* Fmt
* Pagination test
* Removed extra loggings
2019-07-25 15:45:31 -04:00