terence tsao
66471c2f13
Beacon API: update GetStateRoot ( #8437 )
...
* Address various feedbacks
* Gaz
* More nil check
* Update beacon-chain/rpc/beaconv1/state_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/beaconv1/state_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/beaconv1/state_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/beaconv1/state_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/beaconv1/state_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2021-02-12 15:38:36 +00:00
Nishant Das
7f6b15271a
On Block Cleanup ( #8438 )
2021-02-12 11:36:53 +00:00
Radosław Kapka
cbb0f1e11d
Implement GetStateRoot in the beacon API ( #8402 )
...
* update ethereumapis dependency
* span
* initial implementation
* introduce stategen Service interface and MockService
* Include AddStateForSlot function in the mock service
* return states from mock
* add GenesisState to POWChain mock
* populate roots in helper state
* initialize Slot when creating helper state
* tests
* code refactor - extract helper functions
* gzl
* use SetSlot in tests
* handle SetSlot error
* use new testutil's NewBeaconState
* gzl
* go mod tidy
* rename Service to StateManager
* move regex check to helper
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-11 21:08:36 +00:00
Raul Jordan
25caa6d1be
Add Mutex and Block Profiling ( #8435 )
2021-02-11 20:20:19 +00:00
Nishant Das
2fd2bafdfa
Increase Validation Queue ( #8431 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-11 17:35:52 +00:00
terence tsao
de15d6d2c1
Some improvements to proposer cache ( #8424 )
...
* Revert to use input epoch
* Revert back to process epoch
* Use processed state
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-10 22:07:12 +00:00
Nishant Das
143cb142bc
Make Individual Validators Immutable ( #8397 )
...
* initial POC
* clean up
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-10 20:52:45 +00:00
terence tsao
d3e93dd106
Process attestation: reduce checkpoint copies ( #8409 )
...
* Clean up process attestation
* Add matching getters
* Fix tests
* Update tests
* Fix test
* Remove read locks
* Typo
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-10 19:30:11 +00:00
terence tsao
56c5938898
Send feed faster with UpdateHeadTimely feature flag ( #8422 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-10 18:26:23 +00:00
terence tsao
d44ab1ace5
Add timeSinceSlotStart field to "Synced new block..." log ( #8420 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-02-10 17:24:40 +00:00
Nishant Das
ae028d9c1d
Insert Finalized Deposits In Another Routine ( #8405 )
...
* chk
* terence's review
* add test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-02-10 10:35:44 -06:00
Preston Van Loon
cbd01d4ff4
Provide TLS certificate to gRPC gateway ( #8418 )
...
* Provide TLS certificate to gRPC gateway
* Provide TLS certificate to gRPC gateway
* Provide TLS certificate to gRPC gateway
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-10 04:23:12 +00:00
Ivan Martinez
cd3851c3d5
Add DeepSSZEqual and DeepNotSSZEqual ( #8421 )
2021-02-09 20:57:22 +00:00
terence tsao
2f98e6aaaf
Update head per slot ( #8381 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-02-09 17:24:48 +00:00
terence tsao
9afc9d92d9
Feature flag: update head timely ( #8412 )
...
* Feature flag: update head timely
* Move finalized imply justified up
* Fix resolve error
* Use invert feature flag
* Make diff easier to review
* Line
* Typo
* Fix condition
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-02-09 15:35:14 +00:00
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
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
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
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
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
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
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
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
Nishant Das
b74dd967af
Bind Discovery Using Neutral Network Version ( #8359 )
...
* fix it
* terence's review
2021-01-29 15:07:32 +08: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
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 0c99310cc9 .
* 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
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
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 896fa11a0b .
* 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 896fa11a0b .
* 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 e01dd5222b .
* 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
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
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
terence tsao
229abed848
Test for processAttestations ( #8312 )
...
* Add a test for processAttestations
* Log should not contrain could not process attestation...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-01-22 18:08:16 +00:00
terence tsao
c5e9b1ec9e
Refactor verifyAttestationIndices method ( #8309 )
...
* Refactor verifyAttestationIndices
* Conflict
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-01-22 17:15:49 +00:00
Radosław Kapka
7842fd9da6
Replace bytes.Equal with assert.DeepEqual in tests ( #8318 )
...
* beacon chain
* format imports
* Update beacon-chain/db/kv/migration_archived_index_test.go
Co-authored-by: Victor Farazdagi <simple.square@gmail.com >
* Update beacon-chain/db/kv/migration_block_slot_index_test.go
Co-authored-by: Victor Farazdagi <simple.square@gmail.com >
* remove unused imports
* Update beacon-chain/core/state/skip_slot_cache_test.go
Co-authored-by: Victor Farazdagi <simple.square@gmail.com >
* Update beacon-chain/core/state/skip_slot_cache_test.go
Co-authored-by: Victor Farazdagi <simple.square@gmail.com >
* Update beacon-chain/core/state/skip_slot_cache_test.go
Co-authored-by: Victor Farazdagi <simple.square@gmail.com >
* Update beacon-chain/core/state/skip_slot_cache_test.go
Co-authored-by: Victor Farazdagi <simple.square@gmail.com >
* Update beacon-chain/db/kv/migration_archived_index_test.go
Co-authored-by: Victor Farazdagi <simple.square@gmail.com >
* Update beacon-chain/db/kv/migration_block_slot_index_test.go
Co-authored-by: Victor Farazdagi <simple.square@gmail.com >
Co-authored-by: Victor Farazdagi <simple.square@gmail.com >
2021-01-22 15:15:40 +00:00
Nishant Das
50e5b1b4f5
fix deposit index metrics ( #8315 )
2021-01-22 19:11:02 +08:00
Preston Van Loon
33e266388f
GetDuties: Refactor assignment status to deduplicate status computation ( #8313 )
2021-01-21 14:22:05 -08:00
terence tsao
2586be29ac
Refactor on_attestation return signature ( #8310 )
...
* Update func on_attestation's return signature
* Add return
2021-01-21 18:38:51 +00:00
Radosław Kapka
9cc1438ea9
Peer count node api ( #8306 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-01-21 16:16:56 +00:00