Nishant Das
1eb29a2394
Clean Up In Memory Deposits in DB ( #3065 )
...
* lint
* clean up deposits in db
* fix all references
* fixed tests
* lint
* bring it into a separate package
* fix lint
* move test
* fix ref
* fix test
* fix test
* fix test
2019-08-13 19:13:47 -04:00
terence tsao
27319a8990
Implement State DB Methods ( #3193 )
...
* Added state implementation
* Gaze
* Fixed test
* Fixed build file
* Fixed all tests
* Merged with master
* Added comments to save and get from roots
* Make it explicit signing root
* s/./,
* s/marshalled/marshaled
2019-08-13 18:33:31 -04:00
Preston Van Loon
d2186726a3
New p2p package ( #3196 )
2019-08-13 14:12:00 -07:00
Preston Van Loon
82efca9b6f
Move p2p to deprecated-p2p ( #3191 )
...
* move to deprecated-p2p
* fix lint
* lint?
* fix lint
* lint
* lint
* lint
* lint
2019-08-13 14:52:04 -04:00
Preston Van Loon
e31792f999
deprecate node p2p config ( #3192 )
2019-08-13 14:24:09 -04:00
skillful-alex
4e886a84f9
Added roughtime to IsSlotValid and fixed test TestIsValidBlock_InvalidSlot ( #3186 )
...
* add roughtime to IsSlotValid
* gazelle
* gofmt -s
2019-08-13 13:59:11 -04:00
Raul Jordan
655f5830f4
Implement Blocks DB Methods ( #3195 )
2019-08-13 09:49:27 -07:00
Preston Van Loon
856dde497b
Move sync to deprecated- prefix ( #3190 )
...
* Move sync to deprecated_ prefix
* do not use underscore
* fix
2019-08-13 12:35:34 -04:00
Raul Jordan
8d8849feed
Implement Attestations DB Methods ( #3183 )
...
* 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
* add schema
* implementation simplicity
* has validator latest vote func impl
* retrieve validator latest vote
* has idx
* implement missing validator methods
* missing validator methods and test helpers
* validator index crud tests
* validator tests
* save attestation implementation
* attestation basic methods
* batch save
* all buckets
* refactor with ok bool
* retrieval by root working
* todo for has attestations
* all tests passing, fmt, imports
* generate key use helper
* most att methods complete
* crud tests passing
* closer and closer to filtering all atts
* default no filter
* filter criteria functioning
* simplified conditional
* filter criteria func
* filter criteria
* filter criteria for atts there
* query filter map strategy
* internal filter api complete
* comments
* complete the passing of all other tests using criteria met
* imports
* fix broken build:
* breaking arg
* import sort groups
* keygen outside tx
* address feedback
2019-08-13 11:04:33 -05:00
Raul Jordan
551ed1d335
Internal Filter Criteria Builder API ( #3185 )
...
* query filter map strategy
* internal filter api complete
* comments
* terence feedback
2019-08-12 20:55:28 -05:00
Raul Jordan
6bd8ae8f67
Implement Validator DB Methods ( #3172 )
...
* 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
* add schema
* implementation simplicity
* has validator latest vote func impl
* retrieve validator latest vote
* has idx
* implement missing validator methods
* missing validator methods and test helpers
* validator index crud tests
* validator tests
* all buckets
* refactor with ok bool
* all tests passing, fmt, imports
2019-08-12 14:33:07 -05:00
terence tsao
715b9cd5ba
Save head block root for new DB refactor ( #3182 )
...
* Save head block root instead of save head state
* Revert state
2019-08-12 12:13:30 -04:00
Nishant Das
22df351e89
Request Missing Logs ( #3173 )
...
* add request for missing logs
* fix formatting
* add metric
* add test
* fix test
2019-08-12 06:59:57 -04:00
Preston Van Loon
4c62b0410f
Filter deposits by index and block number ( #3171 )
...
* filter deposits by index and block number
* fix test and inverted logic
* nishant feedback
* -1
* Update beacon-chain/db/deposits_test.go
Co-Authored-By: Raul Jordan <raul@prysmaticlabs.com>
* raul feedback: explicit variables
* revert everything :(
* a better fix
* fix +1
* fix test
2019-08-11 15:54:39 -04:00
Preston Van Loon
a938274d57
Return errors in log processing ( #3170 )
...
* Return errors in log processing
* error formatting
2019-08-11 10:39:22 -04:00
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
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
Raul Jordan
4e041c852b
utilize newest ssz and fix build ( #3155 )
2019-08-07 20:24:04 -05: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
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
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
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
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