Radosław Kapka
58f23d2302
Handle hex in Blocker
, Stater
and optimistic mode checker ( #12979 )
...
* Handle hex in `Blocker`
* hex in stater
* ineff fix
* optimistic mode
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-10-03 05:52:29 +00:00
Radosław Kapka
049e608c75
HTTP Beacon API: /eth/v1/validator/sync_committee_subscriptions
( #12689 )
...
* HTTP Beacon API: `/eth/v1/validator/contribution_and_proofs`
* add comment to invalid test case
* fix validation and test
* review
* in progress
* implementation
* remove test file
* remove duplicate
* tests
* HTTP Beacon API: `/eth/v1/validator/sync_committee_subscriptions`
* pointers, pointers everywhere
* fix
* fix after merge
* review
* James' review
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-08-08 22:54:04 +00:00
Radosław Kapka
c32b581e8e
Add broadcast_validation
to block publishing ( #12432 )
...
* day 1
* day 2
* day 2+
* day 3
* day 4
* making bazel happy
* PublishBlindedBlockV2
* remove file
* use lock in insertSeenProposerIndex
* remove EquivocationChecker interface
* update deps.bzl
* remove middleware json tags
* go mod tidy
* remove redundant return statements
* validate in handler
* improvements
* extract common code
* remove import
* sync test fix
* Update beacon-chain/rpc/eth/beacon/handlers.go
Co-authored-by: terencechain <terence@prysmaticlabs.com>
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com>
2023-06-01 11:22:49 +00:00
Nishant Das
5ecebbe15a
Recover State Summary Correctly ( #12214 )
...
* fix it
* add zerohash checks
* preston's review
2023-03-30 09:09:36 -05:00
Radosław Kapka
98949d8075
Block rewards API endpoint ( #12020 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-28 18:44:41 +02:00
Radosław Kapka
0cb46eb29a
Do not HTR the state when checking for optimistic mode ( #12143 )
...
* initial impl
* review feedback
* fix tests
* review feedback
* some improvements
* tests and small improvements
* gzl
* one more review
* fix test
* fix other test
* get the roots instead of hashing them
* fix comment
* fix justified case
* fix all tests
* misc
* gzl
* fix broken tests
* use isOptimisticForRoot once we have the blockroot
* Fix is_not_finalized_when_head_is_optimistic but reviewing the logic first
* Fix is_not_finalized_when_head_is_optimistic
* better root tests
* move optimistic check before parsing root
* check for last validated checkpoint
* add right check for finalized
* fix finalized tests
* removed impossible condition
* fix TestGetSyncCommitteeDuties
* Use Ancestor from chaininfo
* fix test
---------
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: rauljordan <raul@prysmaticlabs.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2023-03-20 17:04:40 -03:00
terencechain
d17996f8b0
Update to V4
🚀 ( #12134 )
...
* Update V3 from V4
* Fix build v3 -> v4
* Update ssz
* Update beacon_chain.pb.go
* Fix formatter import
* Update update-mockgen.sh comment to v4
* Fix conflicts. Pass build and tests
* Fix test
2023-03-17 18:52:56 +00:00
Radosław Kapka
75e8f85ba5
Handle EL offline/unavailable in getSyncingStatus
( #12031 )
...
* Handle EL offline/unavailable in `getSyncingStatus`
* fix type
* better name
* test fix
2023-02-23 12:09:56 +00:00
Raul Jordan
d077483577
Add V3 Suffix to All Prysm Packages ( #11083 )
...
* v3 import renamings
* tidy
* fmt
* rev
* Update beacon-chain/core/epoch/precompute/reward_penalty_test.go
* Update beacon-chain/core/helpers/validators_test.go
* Update beacon-chain/db/alias.go
* Update beacon-chain/db/alias.go
* Update beacon-chain/db/alias.go
* Update beacon-chain/db/iface/BUILD.bazel
* Update beacon-chain/db/kv/kv.go
* Update beacon-chain/db/kv/state.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go
* Update beacon-chain/sync/initial-sync/service.go
* fix deps
* fix bad replacements
* fix bad replacements
* change back
* gohashtree version
* fix deps
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-08-16 12:20:13 +00:00
Potuz
a2e834a683
Fix optimistic sync status during init sync ( #11074 )
...
Co-authored-by: rkapka <rkapka@wp.pl>
2022-07-21 17:59:51 +02:00
mick
1faa292615
Add is_optimistic to SyncDetails, hydrate via ValidateSync ( #10692 )
...
* cache test
* oh
* syntax fix
* error fix
* tinker
* tinker
* newlines?
* no-whitespace?
* feedback
* fix
* comment
* comments
* need to figure out how to lint locally...
* feedback
* fixes
* progress
* progress
* dedupe
* s
* working
* remove empty lines
* update test
* return errors properly
* make helpers publicly visible
* fix tests
Co-authored-by: rkapka <rkapka@wp.pl>
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2022-06-14 17:47:09 +00:00
Radosław Kapka
578fea73d7
API's IsOptimistic
- update header.StateRoot
only when block is not missing ( #10852 )
...
* bug fix
* tests
* comment
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-09 19:35:35 +00:00
Radosław Kapka
98622a052f
Extract OptimisticSyncFetcher
interface ( #10654 )
...
* Extract `OptimisticSyncFetcher` interface
* extract IsOptimistic
* fix tests
* more test fixes
* even more test fixes
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-12 17:23:45 +00:00
Radosław Kapka
ed07f4bd77
Add execution_optimistic
field to API responses ( #10389 )
...
* protos
* grpc
* middleware
* event protos
* event backend
* event middleware
* fix tests
* use `IsOptimisticForRoot` with proper block instead of header
* better algorithm
* return proper error
* review
* optimistic return on bellatrix proposal
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-25 16:31:50 +00:00
kasey
acd7e62cfb
fix issue #10420 ( #10421 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
2022-03-24 18:32:39 +00:00
Radosław Kapka
b5f0bd88b0
Add sync details to error messages ( #9750 )
2021-10-07 20:50:03 +02:00