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
Victor Farazdagi
db79481c21
Update bitfield dependency ( #8338 )
2021-01-26 08:35:16 +00:00
Ivan Martinez
8d986bd414
Change sszutil DeepEqual to ignore unexported ( #8336 )
2021-01-25 17:52:41 -06:00
Radosław Kapka
c827672a30
Rename non-generated files ending with '_mock' ( #8317 )
...
* rename *_mock files
* bzl
* rename faulty_mock_powchain
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-01-25 22:30:55 +00:00
terence tsao
d5ec248691
Rename getter functions to be idiomatic ( #8320 )
...
* Rename getter functions
* Rename new
* Radek's feedback
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-01-25 21:27:30 +00:00
Nishant Das
b2d6012371
Fix IPV6 binding for Beacon Node ( #8326 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-01-25 20:10:41 +00:00
Radosław Kapka
d21365b882
Remove test assertion that reads a package-level variable ( #8329 )
...
* remove checking value of shared variable
* fix deepsource compliant
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-01-25 18:27:59 +00:00
Nishant Das
1c43ea9e69
Update the Toolchain Registration ( #8322 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-01-25 16:46:27 +00:00
Radosław Kapka
fc8dc21aa2
Cancel node context after StopAll ( #8289 )
...
* cancel node context after StopAll
* build fix
* cancel in validator
Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-01-25 09:57:21 -06:00
Nishant Das
7f5ffb7dd1
Fix Deadlock in Runtime ( #8321 )
...
* fix deadlock
* fix
* Satisfy Deepsource
* fmt
2021-01-25 11:01:55 +08:00