Victor Farazdagi
a8e501b3cf
ETH2 Types: Epoch ( #8373 )
...
* update deps
* update deps
* update protos/*
* update deps
* reset protos
* update protos
* update shared/params/config
* update protos
* update /shared
* update shared/slotutil and shared/testutil
* update beacon-chain/core/helpers
* updates beacon-chain/state
* update beacon-chain/forkchoice
* update beacon-chain/blockchain
* update beacon-chain/cache
* update beacon-chain/core
* update beacon-chain/db
* update beacon-chain/node
* update beacon-chain/p2p
* update beacon-chain/rpc
* update beacon-chain/sync
* go mod tidy
* make sure that beacon-chain build suceeds
* go fmt
* update e2e tests
* update slasher
* remove redundant alias
* update validator
* gazelle
* fix build errors in unit tests
* go fmt
* update deps
* update fuzz/BUILD.bazel
* fix unit tests
* more unit test fixes
* fix blockchain UTs
* more unit test fixes
2021-02-09 10:05:22 +00:00
Preston Van Loon
5727d4eb8a
Update Herumi with a fix for older intel chips ( #8413 )
...
* Update Herumi with a fix for older intel chips. #8410
* Use the correct version of bls-eth-go-binary
2021-02-09 01:44:27 +00:00
terence tsao
fed65122fe
Use EnableNextSlotStateCache
few more places ( #8398 )
2021-02-08 13:11:21 -08:00
Radosław Kapka
86a9d4c6a4
Configurable testutil's BeaconState ( #8407 )
...
* Configurable testutil's BeaconState
* fix shared and fuzz tests
* return state copy
* use mainnet config values for default state
* handle error in block fuzz
* goimports
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-02-08 20:00:09 +00:00
Panagiotis Georgiadis
0a180dc662
Make a const instead of 3 'abc' occurences ( #8406 )
2021-02-08 17:08:29 +01:00
terence tsao
f9303ca2e4
Clean up unused functions ( #8403 )
...
* Clean ups
* Gazelle
2021-02-05 18:39:15 +00:00
terence tsao
4c25fe978a
Update span names ( #8394 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-02-04 20:23:50 +00:00
terence tsao
cf88afb287
Block validator buckets ( #8395 )
...
* Block validator buckets
* add more buckets to blocked collector list
Co-authored-by: rauljordan <raul@prysmaticlabs.com>
2021-02-04 03:30:09 +00:00
Victor Farazdagi
c97ea766ca
Attestation aggregation: optimizations and benchmarks ( #7938 )
...
* profitablity tests
* cleanup benchmark
* fix deduplication function
* dedup: move method to atts list
* proper substring handling
* refactor validate method
* update benchmarks
* prepare proposer test
* remove redundant code
* reset test
* remove dedup from maxcover - moved to proposer
* remove redundant test
* remove lower level check for bit length
* optimize candidate validation on att aggregation
* restore test
* fix test
* fix test
* remove dedup functionality
* add benchmark
* optimize list usage
* Attestation aggregration: remove redundant dedup routine
* fix func call
* experiment with bitset based cover
* add benchmark
* samplem implementation using Bilist64
* add tests
* remove redundant code
* remove tmp comments
* unskip test
* update benchmarks
* gazelle
* process err
* optimized max-cover
* Max-cover: optimized implementation based on Bitlist64
* gazelle
* re-arrange overlaps check
* minor comments
* add Bitlists64WithMultipleBitSet
* update benchmarks
* gazelle
* add TestAggregateAttestations_rearrangeProcessedAttestations
* minor updates to rearrange method
* add link to design doc
* remove redundant methods
* simplify test
* add TestAggregateAttestations_aggregateAttestations
* fix issues
* fix assignment
* use ToBitlist(), ToBitlist64()
* fixes test
* benchmarks
* fix typo
* allow opt_max_cover opt-int flag
* update benchmarks
* reset e2e
* fix test
* enable opt_max_cover in e2e tests
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-04 00:58:33 +00:00
Preston Van Loon
e52a821f73
Validator testing library should be marked as testonly ( #8392 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-03 23:16:41 +00:00
Nishant Das
d4f241d875
Add Custom Deadline for Slot Progression ( #8388 )
...
* use custom deadline
* revert
* preston's comment
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-03 21:39:54 +00:00
Preston Van Loon
48ae49765e
Revert "Change sszutil DeepEqual to ignore unexported fields" ( #8391 )
...
* Revert "Change sszutil DeepEqual to ignore unexported (#8336 )"
This reverts commit 8d986bd414
.
* Add back tests, make tests have equal and non equal check
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-03 20:39:07 +00:00
Raul Jordan
afa5b5e790
Add Spans for Validator DB Methods ( #8390 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-03 19:29:20 +00:00
Preston Van Loon
c5551ebebb
Revert DEPENDENCIES.md change from #8257 ( #8389 )
2021-02-03 18:46:46 +00:00
terence tsao
616081fbdd
Ran code inspect ( #8387 )
2021-02-03 10:59:17 -06:00
Victor Farazdagi
842bafb002
Update bitfield dependency ( #8385 )
2021-02-02 21:33:48 +00:00
Raul Jordan
953cc9733c
Update Ethdo Keystore Deps ( #8382 )
...
* update ethdo deps
* revert workspace
* tidy
2021-02-02 19:05:47 +00:00
Raul Jordan
caac08df33
Add Batch Method for Reading Validator Proposing Histories ( #8378 )
...
* add in batch method
* add in new proposal history methods for efficiency and progress bars
* tests fixed to use the new methods
* add back get slot proposing history method
* add gaz
2021-02-02 15:53:12 +00:00
Radosław Kapka
3fd8c4c046
Implement GetGenesis in the beacon API ( #8380 )
...
* span
* initial implementation
* test wip
* set nanos to zero
* more testing
* gzl
2021-02-02 08:44:28 -06:00
Radosław Kapka
b5a82b9075
Display URLs for tracking exited validators ( #8361 )
...
* Display URLs for tracking exited validators
* extract displaying info to separate function
* fix URL comment
* extract config names
* gzl
* lowercase config names
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-01 19:00:06 +00:00
Nishant Das
c6e96204e8
Update Herumi BLS Library ( #8377 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-01 18:31:48 +00:00
terence tsao
2456e6f34d
Add missed feature flag usage ( #8376 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-01 17:42:50 +00:00
Radosław Kapka
48ed506487
Ajust constructor names of nodes ( #8362 )
...
* clean up constructors for nodes
* resurrect validator client
* fix small naming issues
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-01 17:12:52 +00:00
Shay Zluf
4595789ac8
Make validator stable when beacon node goes offline ( #8278 )
...
* Make validator stable POC
* fix feedback raul and nishant
* fix wait till first iteration
* fix imports
* retry tests
* fix init
* test retry receive blocks
* remove redundant return statement
* terence feedback
* terence feedback
* remove log
* to check for context after fist call
* remove fatal
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-02-01 16:29:54 +00:00
Victor Farazdagi
d53fdcf781
Simplify expressions ( #8370 )
...
* Simplify expressions
* avoid escaping
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-01 15:14:36 +00:00
Victor Farazdagi
372dc47b64
Deprecate enableSyncBacktracking flag ( #8371 )
...
* Deprecate enableSyncBacktracking flag
* keep deprecated flags
2021-02-01 11:18:24 +00:00
pinglamb
82426abf5f
Add canonical flag to ListBlocks API response ( #8287 )
...
* Add canonical flag to ListBlocks response
* Genesis is always canonical
2021-02-01 04:33:17 +00:00
terence tsao
f5f1284cef
Remove unused feature flag config fields ( #8363 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-01-30 15:16:31 +00:00
terence tsao
609418ecd3
Update README.md ( #8366 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-01-30 14:28:27 +00:00
Radosław Kapka
f20c9122e8
Remove unused channel from Powchain Service ( #8368 )
...
* Remove unused header channel
* test fix
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-01-30 13:33:52 +00:00
Ivan Martinez
afc3b3168a
Add Back Accounts Backup Validator RPC Functionality ( #8367 )
...
* Add Back Accounts Backup Validator RPC Functionality
This reverts commit a39db494eb
.
* Fix
2021-01-29 18:30:44 -06:00
Victor Farazdagi
902c30e389
Update bitfield dependency ( #8364 )
2021-01-29 19:58:26 +00:00
terence tsao
3aaa98decf
Next slot state caching ( #8357 )
...
* Add and use trailing slot state cache
* Remove comment
* Update comments
* Update comments
* Move it to background
* Warn is more appropiate
* Raul's comment
* Same strategy for proposer
* Own helper
* Minor touchups
* Tests
* Feature flag
* Gaz
2021-01-29 16:52:43 +00:00
Ivan Martinez
e592cd7a80
Add wallet file flag to edit-config command ( #8360 )
2021-01-29 09:32:15 +00:00
Nishant Das
b74dd967af
Bind Discovery Using Neutral Network Version ( #8359 )
...
* fix it
* terence's review
2021-01-29 15:07:32 +08:00
Victor Farazdagi
d254f24a23
Update bitfield dependency ( #8356 )
2021-01-29 00:39:29 +00:00
Radosław Kapka
8d505e06bd
Implement GetForkSchedule in the config API ( #8345 )
...
* span
* update ethereumapis
* implementation + tests
* typo
* fix variable shadowing
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-01-28 13:44:23 -06:00
Victor Farazdagi
09b1e06885
Max-cover: optimized implementation based on Bitlist64 ( #8352 )
...
* Max-cover: optimized implementation based on Bitlist64
* gazelle
* re-arrange overlaps check
* minor comments
* add Bitlists64WithMultipleBitSet
* update benchmarks
* gazelle
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-01-28 15:55:02 +00:00
Radosław Kapka
d9c451d547
Introduce helper function for adding context metadata from gRPC headers ( #8354 )
...
* implement helper
* use helper function everywhere
* add unit tests
* small cleanup of the helper
* small fixes
* gazellelelele
* fix helper tests
2021-01-28 08:58:32 -06:00
Radosław Kapka
e677b19d31
Implement GetSpec in the config API ( #8328 )
...
* Implement GetSpec in the config API
* extract map creation
* fix deepsource compliant
* Revert "fix deepsource compliant"
This reverts commit 0c99310cc95c82400370d64a2b95879e9d2cae02.
* use struct tags for api map keys
* remove log
* use spec tag
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-01-28 00:30:48 +00:00
terence tsao
2bf03d5cba
Use strings builder for attester lock key ( #8349 )
...
* Use strings builder
* Handle error
2021-01-27 22:33:28 +00:00
terence tsao
0753636159
Add role based lock for validator ( #8347 )
2021-01-27 20:59:21 +00:00
terence tsao
b8037b0b50
Wait for one third before grabbing the lock ( #8348 )
2021-01-27 12:06:18 -06:00
Tushar Shah
2f063d0ddc
process grpc header flag for exit ( #8334 )
...
* process grpc header flag for exit
* ran bazel //:gazelle
* Add regression test
* Re-run "bazel run //:gazelle"
* whitespace
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* gofmt
Co-authored-by: Danny Joyce <djoyce@bisontrails.co>
Co-authored-by: Danny Joyce <djoyahoy@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-01-27 13:12:48 +00:00
terence tsao
1cfae7e098
More blockchain pkg tests ( #8343 )
...
* Add more blockchain pkg tests
* Deepsource feedback
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-01-26 20:27:34 -06:00
terence tsao
91fe32a3d1
Handle subscriber error ( #8341 )
2021-01-26 13:56:24 -06:00
terence tsao
c0fda583e7
Update seen att slashing cache to use map ( #8332 )
...
* Hide beacon operation field if it's 0
* Use map as seen slashing cache
* Revert "Hide beacon operation field if it's 0"
This reverts commit 896fa11a0bb605212293d6fff02a8974c54710ab.
* Rm unused code
* Gaz
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-01-26 17:24:34 +00:00
Nishant Das
9f62405a81
Update Prombolt Collector ( #8339 )
...
* update
* block big buckets
* add more buckets
* patch go.mod
* clean up
* Update beacon-chain/db/kv/kv.go
Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-01-26 15:32:46 +00:00
terence tsao
d121b19145
Rename NewService
to New
( #8337 )
...
* Hide beacon operation field if it's 0
* Rename NewSerivce to New
* Revert "Hide beacon operation field if it's 0"
This reverts commit 896fa11a0bb605212293d6fff02a8974c54710ab.
* Fix NewServiceRegistry
* Update slasher/detection/service.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-01-26 10:26:57 +00:00
Radosław Kapka
a7345c1094
Implement GetDepositContract in the config API ( #8316 )
...
* Add funnction to retrieve deposit contract's address from powchain
* change bytes.Equal to assert.DeepEqual
* add DepositContractAddress to mocks
* Extract powchain info to a separate struct
* span
* Revert "Extract powchain info to a separate struct"
This reverts commit e01dd5222b2ddc92607391f4b927b099100e03dd.
* implementation + test
* use the correct hexutil library
* read contract address from configuration
* return ETH1 chain ID instead of fork version
* gzl (I hate you)
* remove unused ChainInfoFetcher
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-01-26 09:37:22 +00:00