Radosław Kapka
d1dd8471a3
Debug HTTP endpoints ( #13164 )
...
* Debug HTTP endpoints
* register endpoints
* tests
* small fixes
* config test fix
2023-11-03 15:33:46 +00:00
Terence
57eda1de63
Add RO blob sidecar ( #13144 )
2023-11-01 10:03:49 -07:00
Justin Traglia
159a5dd69d
Check that blobs count is correct when unblinding ( #13118 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-10-30 16:49:32 +01:00
Preston Van Loon
82640b3d88
Enable profile guided optimization for beacon-chain ( #13035 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-30 05:52:36 +00:00
Radosław Kapka
022ee17af9
Better Beacon API evaluator part 1 ( #13084 )
...
* Better Beacon API evaluator part 1
* rename package
* more endpoints
* rename package back
* more endpoints
* small improvements
* remove the need for `params`
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-10-27 11:57:49 +00:00
Radosław Kapka
3d78a52980
Fill state attestations ( #13121 )
2023-10-26 15:35:01 +00:00
Preston Van Loon
7e88eefc60
Add zero length check on indices during NextSyncCommitteeIndices ( #13117 )
...
* Add zero length check on indices during NextSyncCommitteeIndices computation. Fixes #13051
* Move the error further up the stack
* Fix TestSubmitAggregateAndProof_IsAggregatorAndNoAtts
* Delete TestServer_ListAssignments_NoResults. That is an impossible scenario that now returns an error
2023-10-25 21:42:17 +00:00
Radosław Kapka
5a01eecc50
HTTP state endpoints ( #13099 )
...
* slowly plowing through
* implementation ready
* wrong epoch particip
* fix epoch participation
* tests
* fix e2e
* error handling in tests
* review from James
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-10-25 18:12:58 +00:00
Justin Traglia
671bf00c98
Fix bug in Beacon API getBlobs ( #13100 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-10-25 03:33:59 +00:00
terencechain
76fec1799e
Replace Empty Slice Literals with Nil Slices ( #13093 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-23 16:36:11 +00:00
Delweng
29f8880638
beacon-node/rpc: fix go test datarace ( #13018 )
...
* beacon-chain/p2p: ust atomic.Bool instead of bool
Signed-off-by: jsvisa <delweng@gmail.com>
* beacon-chain/p2p,rpc: read mock.BroadcastMessages with lock
Signed-off-by: jsvisa <delweng@gmail.com>
* beacon-chain/p2p,rpc: read attestation with lock
Signed-off-by: jsvisa <delweng@gmail.com>
* beacon-chain/rpc: fix typo
Signed-off-by: jsvisa <delweng@gmail.com>
* beacon-chain/p2p: typo
Signed-off-by: jsvisa <delweng@gmail.com>
---------
Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-10-22 15:12:55 +00:00
terencechain
9387a36b66
Refactor Exported Names to Follow Golang Best Practices ( #13075 )
...
* Fix exported names that start with a package name
* A few more renames
* Fix exported names that start with a package name
* A few more renames
* Radek's feedback
* Fix conflict
* fix keymanager test
* Fix comments
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-20 16:45:33 +00:00
terencechain
823f8ee3a2
Fix redundant type converstion ( #13076 )
...
* Fix redundant type converstion
* Revert generated changes
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-20 15:07:10 +00:00
shuoer86
b4847ac9ad
Fix typos ( #13053 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-10-19 12:23:11 +00:00
Nishant Das
bc125a95ae
Set Verbosity of Goodbye Logs to Trace ( #13077 )
2023-10-19 03:49:34 +00:00
Preston Van Loon
f592bf7f07
rpc/apimiddleware: Test all paths can be created ( #13073 )
2023-10-18 21:12:45 +00:00
Radosław Kapka
6e0715e92a
HTTP Beacon APIs for blocks ( #13048 )
...
* handlers
* blinded block handlers and protos
* revert SSZ and register endpoints
* remove vars
* e2e
* handler for v1 endpoint
* tests
* register GetBlock
* disable security linter
* remove unused structs
* more review comments
2023-10-18 15:09:38 +00:00
Andrew Davis
cc81444e13
Fix blob_sidecar SSE payload ( #13050 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-10-17 11:07:03 +00:00
james-prysm
bfae7f3c9f
HTTP VALIDATOR API: /eth/v1/validator/{pubkey}/voluntary_exit
( #13032 )
...
* migrating set validator exit to http only and removing from api middleware
* fixing ineffassign error
* cleaning up middleware
* fixing linting
* Update validator/rpc/handlers_keymanager.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com>
* Update validator/rpc/handlers_keymanager.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com>
* Update validator/rpc/handlers_keymanager.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com>
* adding more tests based on sammy's comments
* radek's feedback
* adjusting error codes
* one more status change
* fixing unit test
---------
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-16 22:16:20 +00:00
Potuz
2fc5011091
remove bad comment ( #13056 )
...
* remove bad comment
* rename function
* rename function
2023-10-16 19:40:51 +00:00
Radosław Kapka
b52baba2f1
Register sync subnet when fetching sync committee duties through Beacon API ( #12972 )
...
* Register sync subnet when fetching sync committee duties through Beacon API
* review
* oops
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-16 17:20:27 +00:00
terencechain
2f378a045a
Proposer: better handling of blobs bundle ( #12956 )
...
* Proposer better handling of blobs bundle
* Reset bundles after conversion
* Reset earlier
* Proposer better handling of blobs bundle
* Reset bundles after conversion
* Reset earlier
* Fix conflict
* use correct blindBlobsBundle
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-10-16 16:41:24 +00:00
hyunchel
cc2b4db582
Add state not found test case ( #13034 )
...
* beacon-chain:rpc/eth/shared: prevent mutiple error messages
This commit prevents the error writing function from writing multiple
JSON objects. An error message with more than one JSON object will not
unmarshal into the default error response.
* beacon-chain/rpc/eth/beacon: add a test case for missing state
This commit adds a test on beacon states finality checkpoints endpoint
to cover a case when state is not found.
* beacon-chain/rpc/eth: update error response to meet the spec
This commit updates error message on beacon states finality
checkpoints endpoint to ensure that the response complies to
Ethereum Beacon-API specification.
* beacon-chain/rpc/eth/shared: add build dependency
* beacon-chain/rpc/eth/shared: update test on state not found
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-10-13 17:21:38 +00:00
Andrew Davis
be9b6ea837
fix(beacon-chain/rpc): blob_sidecar event stream handler ( #12999 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com>
2023-10-13 13:51:16 +00:00
Radosław Kapka
b57effd096
HTTP Beacon APIs: 3 state endpoints ( #13001 )
...
* HTTP Beacon APIs: 3 state endpoints
* remove API middleware e2e evaluator
* remove evaluator registrations
* review feedback
* compilation fix
2023-10-12 17:53:33 +00:00
Radosław Kapka
a536612c39
HTTP Beacon APIs for node ( #13010 )
2023-10-11 22:18:49 +02:00
james-prysm
55e4c6e1db
HTTP API: /eth/v1/beacon/pool/bls_to_execution_changes
( #12963 )
...
* wip
* wip changes for beacon handlers
* wip
* updating protos
* fixing conflict
* fixing protos
* fixing more tests
* migrating tests and removing one that is irrelevant
* fixing e2e
* fixing unit tests
* missed adding routes
* gaz
* fixing more tests
* Update beacon-chain/rpc/eth/beacon/handlers_pool.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/rpc/eth/shared/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/rpc/eth/shared/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/rpc/eth/shared/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/rpc/eth/shared/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* radek's comments
* fixing protos after conflict
* accidently removed a proto type
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-10-11 14:08:06 +00:00
Dhruv Bodani
2806326155
integrate validator count endpoint in validator client ( #12912 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-10-11 15:23:02 +02:00
Radosław Kapka
e183d1dff4
Improvements to produceBlockV3
( #13027 )
2023-10-10 18:06:57 +00:00
james-prysm
af70677778
Deneb: Produce Block V3 - adding consensus block value ( #12948 )
...
* adding in block rewards to represent consensus payload
* Update beacon-chain/rpc/eth/validator/handlers_block.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* radek's comments
* more review changes
* adding more tests for forks
* gaz
* updating names
* gaz
* fixing imports
* fixing variable name
* gaz
* fixing test
* renaming variables to match data
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-10-10 15:12:20 +00:00
Preston Van Loon
8eb82dd378
Update rules_go and gazelle to 0.42 & 0.33 (latest releases) ( #13021 )
...
* Provide @go_googleapis, update gazelle
* fix pb build failures
Fix build issues with grpc-gateway
2023-10-10 12:50:29 +08:00
Radosław Kapka
44973b0bb3
Using the multi value slice for the beacon state ( #12549 )
...
* in progress...
* in progress...
* remove log
* log root
* Revert "Auxiliary commit to revert individual files from f12a609ea2a2f1e87e97321f3a717cd324b5ae97"
This reverts commit 5ae35edb6477d8d0ea4e94b273efc6590484da85.
* cleanup
* remove log
* remove whitespace
* remove logs
* more stuff
* copy
* always rebuild trie
* revert
* add state
* init state
* fix all
* uintptr
* move slice to new package
* lock in `Detach`
* remove constraint
* reorder
* blockroots and stateroots
* fill roots in empty()
* fix hasher
* implement slice for balances and inactivity scores
* detach in setters
* Revert "implement slice for balances and inactivity scores"
This reverts commit 59eb9df8d766cb1c44a7eb5b3f5e3c042249943d.
# Conflicts:
# beacon-chain/state/state-native/setters_validator.go
* use counter to track states
* typos
* rename interface
* balances
* gauge
* some improvements
* first try with map
* fix
* inactivity scores in progress
* fix test
# Conflicts:
# beacon-chain/state/state-native/helpers_test.go
* test fixes
* ToProto fix
* copy roots
* validators
* build fixes
* fix bug in `ToProto`
* fix fuzz test
* fix bug in slice getters
* fix state equality checks
* make tests pass
* make tests pass
* more test updates
* Revert "Auxiliary commit to revert individual files from 34e7344bff08a589e6341bb1829e3cb74159e878"
This reverts commit ecd64efa8917f37ca41460e0356ff007fe55dd9d.
* Revert "make tests pass"
This reverts commit 0cf00f19eecf4678cd2b866dd107f3179d0426ef.
* Revert "make tests pass"
This reverts commit 521b65e1d2e13be3d720f333008b6838a8e78878.
* pass tests
* deepequal identifiable types
* Deflake `cloners_test.go`
* feature flag for block roots
* feature flag
* remove recursive locks
* reduce complexity of rootSelector
* fix randao mixes root
* some fixes
* revisit tests
* revert change to field trie helpers
* initialize field map for tests
* remove whitespace
* initialize roots with proper length
* more fixes
* out of bounds message fix
* optimize length calculation
* remove call to Len in PubkeyAtIndex
* don't log deposits
* unit tests
* unit tests
* fix
* comments
* test fixes
* id
* remove Enumerator interface
* review feedback
* simplify field trie
* bring back fieldtrie package
* fix bazel file
* use handle32ByteArrays for root computation
* fix locks
* metrics
* bzl
* simplify some things
* use htr in state test
* remove code from require package
* gzl
* more htr
* Fuzzing of the multi-value slice
* assert values
* getter optimizations
* use At when reading from validators
* Nishant's review
* restore safe copy
* remove empty line
* build fix
* restore how we get root at index for deafult mode
* more review comments
* optimize default behavior
* simplify Slice calls
* test fix
* remove unnecessary package
* remove unused setter
* make fieldMap unexported
* some improvements in state package
* call `Slice` instead of manually copying
* unlock in ReadFromEveryValidator
* Potuz's comments
* lock the state when reading from all validators
# Conflicts:
# beacon-chain/state/state-native/getters_validator.go
* add back preston's changes
* add index
---------
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: nisdas <nishdas93@gmail.com>
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
2023-10-06 01:10:05 +00:00
Nishant Das
ffaef83634
Build Blocks in Parallel Permanently ( #13008 )
2023-10-05 06:45:11 -07:00
Radosław Kapka
7454041356
Use middleware to handle comma-separated query params ( #12995 )
2023-10-04 15:49:42 +02:00
Radosław Kapka
f37301c0c0
Remove remote slashing protection feature ( #12989 )
...
* Remove remote slashing protection feature
* test fix
* remove mock from tests
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-04 04:15:06 +00:00
Potuz
9d8dd5c9ad
Don't prune proposer ID cache in a loop ( #12996 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-03 23:25:53 +00:00
terencechain
4628c19f51
Refactor churn limit helpers ( #12971 )
2023-10-03 14:14:41 +00:00
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
Potuz
9e33723b26
Revert "Do not cache proposer ID on GetProposerDuties ( #12939 )" ( #12986 )
...
This reverts commit e2591f7c5b
.
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-03 04:04:17 +00:00
Nicolás Pernas Maradei
70380660b3
[1/5] Light client sync protocol ( #12853 )
...
* generate SyncCommittee SSZ
* refactor error handling
* rewards: use http2.HandleError
* add light client protobuf files
* add light client helpers
2023-10-02 15:34:34 +00:00
Radosław Kapka
ecd55e5462
Remove go-playground/validator from Beacon API ( #12973 )
...
* Remove go-playground/validator from Beacon API
* gzl
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-02 13:21:59 +00:00
Radosław Kapka
d8b2d9060f
Return RpcError from core service's SubmitSyncMessage
( #12974 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-30 14:19:09 +00:00
terencechain
51b8075474
Use skip mev-boost flag for GetBlock
RPC ( #12969 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-09-29 16:48:40 +08:00
Radosław Kapka
367504f403
Support comma-separated query params in Beacon API ( #12966 )
2023-09-29 15:40:23 +08:00
Potuz
b4e72f1e19
Deneb spectests release v1.4.0-beta.2-hotfix ( #12959 )
...
* Update and use max per epoch churn limit
* Update spec tests
* Fix e2e test
* deneb fork epoch condition
* Fix lint and better casting
* fix ordering
* fix check
* gaz
* Fix more tests
* Apply proposer boost to first block in equivocation
* Increase timeout
* Don't increase timeout, it's not the reason
* implement deneb forkchoice spectests
expose ReceiveBlob from the blockchain package
* spin_off_helper
* remove minimal tests
* Terence's review
* Add process register test for Deneb
* Terence's suggestion
Co-authored-by: terencechain <terence@prysmaticlabs.com>
* fix forkchoice minimal
* fix minimal sha
* general sha
* different repos
* different repos
---------
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: nisdas <nishdas93@gmail.com>
2023-09-28 21:05:23 +00:00
james-prysm
c8b39e08ef
cleanup on api types ( #12961 )
...
* removing code duplication using shared types
* gaz
* fixing test
* fixing tests
2023-09-27 09:26:32 -05:00
Sammy Rosso
b0b4e42436
HTTP Beacon API: /eth/v1/beacon/blocks
and /eth/v1/beacon/blinded_blocks
( #12827 )
...
* Add PublishBlock
* Add endpoints
* Cleanup
* Modify publishBlock to work for v1 and v2
* Remove v2 + add server receiver
* Cleanup remaining endpoints
* Remove error from SszRequested
* Remove unused functions
2023-09-27 12:51:37 +00:00
terencechain
b0caea3fae
Refactor getLocalPayloadAndBlobs
with New Helper getParentBlockHash
( #12951 )
...
* Implement getParentBlockHash helper
* Specify errors
2023-09-27 03:08:17 +00:00
terencechain
942d63fcc1
Refactor construct generic beacon block for proposer ( #12943 )
2023-09-25 07:07:04 -07:00
Sammy Rosso
90fb2325db
/eth/v1/config/deposit_contract
return string instead of uint (#12952 )
...
* Convert uint to string
* Add test
* Rename test
2023-09-25 13:02:47 +00:00
james-prysm
723f73795f
Deneb: blob sidecar events ( #12928 )
...
* adding in deneb blob event triggers
* fixing linting
* kasey's feedback
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-22 21:54:10 +00:00
Potuz
489b34a01f
Use headstate when requesting current epochs ( #12940 )
...
* Use headstate when requesting current epochs
* gazelle
* review requests
2023-09-22 19:48:24 +00:00
Radosław Kapka
e22258caa9
HTTP validator APIs ( #12887 )
...
* GetValidators in progress
* in progress
* completed implementation of GetValidators + some tests
* typo
* completed tests for GetValidators
* GetValidator
* GetValidatorBalances
* register
* more tests and e2e fix
* middleware cleanup
* remove struct
* handle all ignored
* test fixes
* more test fixes
* even more test fixes
* remove unused structs
* docs
* fix validator count test
* build fix
* add length checks
* lint fix
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-09-21 18:16:59 +00:00
Potuz
e2591f7c5b
Do not cache proposer ID on GetProposerDuties ( #12939 )
2023-09-21 15:22:41 +00:00
Radosław Kapka
b40729f6c0
Return correct root from GetBlockHeader
( #12935 )
...
* Return correct root from `GetBlockHeader`
* variable rename
2023-09-21 12:02:14 +00:00
Radosław Kapka
e76aedf1ae
HTTP API: GetLiveness and GetBlockHeader ( #12916 )
...
* GetLiveness
* GetBlockHeader
* simplify request objects
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-20 19:06:11 +00:00
Radosław Kapka
14f040de48
GetFinalityCheckpoints
and GetGenesis
HTTP endpoints (#12902 )
...
* GetFinalityCheckpoints and GetGenesis
* bzl
* remove unused func
* use const as base path
* bring back headers
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-19 17:53:45 +00:00
terencechain
f59307358e
Copy kzg commitments when using builder block ( #12923 )
2023-09-18 23:54:20 +00:00
james-prysm
14ce051668
Deneb builder fix ( #12921 )
...
* fixing conversion for deneb
* updating unit test to catch this in the future
* gaz
2023-09-18 20:34:28 +00:00
terencechain
998a493ee2
Fix builder blind block namings ( #12910 )
...
* Fix builder blind block namings
* Fix
* Fix tests
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-09-18 15:32:10 +00:00
Nishant Das
4098b3a1d2
fix it ( #12915 )
2023-09-18 21:42:54 +08:00
Radosław Kapka
d8e6d2cb2e
Fix proposer duties sorting ( #12909 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-16 14:11:57 +00:00
anukul
4d120b53ae
HTTP Beacon API: /eth/v1/beacon/headers
( #12817 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-09-15 12:05:35 +02:00
Sammy Rosso
8c39c55f05
HTTP Beacon API: /eth/v1/beacon/states/{state_id}/committees
( #12879 )
...
* Initial setup
* Gaz
* Remove original implementation
* Fix protos
* Cleanup + tests
* Cleanup
* Radek' review + fixes
* Fix merge errors
* Fix imports
* Rename error handling
* Fix broken e2e
* Gaz
* Update comment
2023-09-13 17:29:32 +00:00
james-prysm
9ecf4d34f5
Deneb api cleanup ( #12852 )
...
* cleanup wip
* updating tests, and updating logs
* fixing unit tests
* address radek's comments
* fixing bad alias name
2023-09-12 16:22:20 +00:00
Radosław Kapka
79445d2bf6
HTTP Beacon API: /eth/v1/validator/duties
( #12810 )
...
* impl
* protos
* remove apimiddleware from e2e
* register endpoint
* get epoch from vars
* tests
* test fixes
* remove unused function
* GetProposerDuties
* proto
* fix compilation
* register
* tests
* GetSyncCommitteeDuties
* protos
* register
* tests in progress
* complete tests
* check altair epoch
* more testing
* create variable
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-09-12 13:57:04 +00:00
terencechain
35fc1c976f
Improved Logging for Blob Sidecar ( #12883 )
...
* feat: improve blob sidecar logs
* Kasey's feedback
2023-09-11 20:46:06 +00:00
james-prysm
b0423a94af
REST implementation of /eth/v1/beacon/states/{state_id}/fork
( #12835 )
...
* fork state endpoint
* removing generated files
* fixing linting
* fixing tests using old type
* moving the response object to a new file under shared
* fixing test
* gaz
* fixing generated code
* gaz
* fixing linting
* rolling back some changes
* reverting generated changes
* fixing spacing
* linting
* updating protos after develop merged
* addressing radek's comments
* addressing more radek comments
2023-09-11 18:57:17 +00:00
james-prysm
6c16e90fe9
deneb - validator beacon rest apis ( #12871 )
...
* wip
* adding tests for deneb
* adding deneb to get block
* Update validator/client/beacon-api/get_beacon_block.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/client/beacon-api/propose_beacon_block.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/client/beacon-api/propose_beacon_block.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/client/beacon-api/propose_beacon_block.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/client/beacon-api/propose_beacon_block.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-09-11 16:50:55 +00:00
Sammy Rosso
7781a3186b
HTTP implementation of /eth/v1/config/deposit_contract
( #12872 )
...
* Add endpoint
* Protos
* Forgot to add endpoint
* fix proto double import
* Remove old test
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-09-08 17:05:29 +00:00
terencechain
13c69af717
fix: use correct blob root in blobs sidecar ( #12866 )
...
Co-authored-by: kasey <489222+kasey@users.noreply.github.com>
2023-09-08 14:58:33 +00:00
Sammy Rosso
d55757500f
Integrate EIP-4881 Deposit Tree Into Prysm via a Feature Flag ( #11942 )
...
* Initial spec rewrite
* Finish adding merkle tree implementation
* Last bits
* Move reverse function
* Add comments
* Add deposit tree snapshot
* Add deposit tree
* Add comments + cleanup
* Fixes
* Add missing errors
* Small fixes
* Add unhandled error
* Cleanup
* Fix unsafe file.Close
* Add missing comments
* Small fixes
* Address some of deepSource' compaints
* Add depositCount check
* Add finalizedDeposit check
* Replace pointer magic with copy()
* Add test for slice reversal
* add back bytes method
* Add package level description
* Remove zerohash gen and add additional checks
* Add additional comments
* Small lint fixes
* Forgot an error
* Small fixes
* Move Uint64ToBytesLittleEndian32 + test
* Fix uint subtraction issue
* Move mixInLength below error handling
* Fix
* Fix deposit root
* integrate 4881
* edits
* added in deposit tree fetcher
* add file
* Add remaining fetcher functions
* Add new file for inserter functions
* Fixes and additional funcs
* Cleanup
* Add
* Graph
* pushed up edits
* fix up
* Updates
* Add EIP4881 toggle flag
* Add interfaces
* Fix tests
* More changes
* Fix
* Remove generated graph
* Fix spacing
* Changes
* Fixes
* Changes
* Test Fix
* gaz
* Fix a couple tests
* Fix last tests
* define protos
* proto methods
* pushed
* regen
* Add proto funcs
* builds
* pushin up
* Fix and cleanup
* Fix spectest
* General cleanup
* add 4881 to e2e
* Remove debug statements + remove test skip
* Implement first set of missing methods
* Replace Zerohashes + cleanup
* gazelle
* fmt
* Put back defensive check
* Add error logs
* InsertFinalizedDeposits: return an error
* Remove logging
* Radek' Review
* Lint fixes
* build
* Remove cancel
* Update beacon-chain/deterministic-genesis/service.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update beacon-chain/cache/depositsnapshot/deposit_inserter.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Cleanup
* Fix panic when DepositSnapshot is nil on init
* Gofmt
* Fix RootEquivalence test
* Gofmt
* Add missing comments
* Nishant' review
* Add Insert benchmarks
* fix up copy method
* Fix deep copy
* Fix conflicts
* Return error
* Fix linter issues
* add in migration logic
* Cleanup + tests
* fix
* Fix incorrect index in test
* Fix linter
* Gofmt
* fix it
* fixes for off by 1
* gaz
* fix cast
* fix it
* remove ErrZeroIndex
* Fix merkle_tree_test
* add fallback
* add fix for insertion bug
* add many fixes
* fix empty snapshot
* clean up
* use feature
* remove check
* fix failing tests
* skip it
* fix test
* fix test again
* fix for the last time
* Apply suggestions from code review
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* fix it
* remove cancel
* fix for voting
* addressing more comments
* fix err
* potuz's review
* one more test
* fix bad test
* make 4881 part of dev mode
* add workaround for new trie
* comment
* preston's review
* james's review
* add comment
* james review
* preston's review
* remove skipped test
* gaz
---------
Co-authored-by: rauljordan <raul@prysmaticlabs.com>
Co-authored-by: nisdas <nishdas93@gmail.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-07 03:19:32 +00:00
james-prysm
41dff74e90
fix phase0 block parsing on submitblock ( #12857 )
...
* adding fixes to address new changes in deneb
* removing logs
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-09-07 01:49:18 +00:00
terencechain
2f6dcb34b6
fix(builder): handle no blob bundle ( #12838 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-06 20:59:42 +00:00
Radosław Kapka
34f507f4b2
HTTP implementation of /eth/v1/beacon/pool/sync_committees
( #12782 )
...
* impl
* protos
* tests
* register endpoint
* test fix
* test fix
* remove path
* more test fixes
* cleanup
* bzl
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-09-01 17:58:50 +00:00
james-prysm
9a7393a2e3
Deneb produce blockv3 ( #12708 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-09-01 12:51:27 +02:00
james-prysm
bfecbf97db
REST implementation of /eth/v1/validator/prepare_beacon_proposer
( #12781 )
...
* implementing prepare beacon proposer endpoint in full rest
* fixing type naming on validator client
* fixing linting
* Update beacon-chain/rpc/eth/shared/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/rpc/eth/validator/handlers.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/rpc/eth/validator/handlers.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* addressing feedback
* fixing unit tests
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-08-31 17:02:39 +00:00
terencechain
3d74ecb6d4
fix: add back non parallel proposer ( #12811 )
2023-08-31 08:41:57 -05:00
james-prysm
726601221e
fixing route handler and small cleanup items ( #12726 )
2023-08-31 08:41:57 -05:00
terencechain
d210a2368f
feat: implement eip4788 ( #12570 )
2023-08-31 08:41:57 -05:00
james-prysm
70997e2489
renaming data to blobs in execution payload ( #12664 )
2023-08-31 08:41:57 -05:00
james-prysm
f602a44bee
implementing publishblockv2 for deneb ( #12662 )
...
fixing broken test (#12673 )
2023-08-31 08:41:57 -05:00
Preston Van Loon
48f1f69695
Deneb: Implement EIP-7044 ( #12577 )
2023-08-31 08:41:57 -05:00
terencechain
f3ca945bb4
feat: add builder override ( #12601 )
2023-08-31 08:41:57 -05:00
james-prysm
4c1f398a96
adding ssz handling to produce block endpoint for deneb ( #12632 )
2023-08-31 08:41:57 -05:00
james-prysm
5a62aa4c07
adding ssz capabilities for deneb publish block v1 ( #12622 )
2023-08-31 08:41:57 -05:00
james-prysm
a41c01cb5e
migrating get blob from eip4844 and deneb-integration ( #12603 )
2023-08-31 08:41:57 -05:00
james-prysm
6050501eb1
migrating Beacon API code from eip4844 to deneb-integration ( #12568 )
2023-08-31 08:41:57 -05:00
terencechain
590309e3fc
feat(deneb): proposer rpc to handle builder flow ( #12554 )
2023-08-31 08:41:57 -05:00
james-prysm
8a67f616f0
introducing deneb changes and blobs to builder ( #12477 )
2023-08-31 08:41:57 -05:00
terencechain
bcdf1c92a7
feat(config): update max blobs per block to 6 ( #12512 )
2023-08-31 08:41:57 -05:00
terencechain
ff6b670d95
feat(blockchain): update payload attribute for deneb ( #12509 )
2023-08-31 08:41:57 -05:00
terencechain
2be87f623b
feat(rpc/validator): stream and use deneb block ( #12510 )
2023-08-31 08:41:57 -05:00
terencechain
5b1634b335
Update ProposeBeaconBlock
Prysm RPC for Deneb (Non builder) ( #12495 )
2023-08-31 08:41:57 -05:00
terencechain
2dadf36fa9
Add data gas used field to execution payload ( #12488 )
2023-08-31 08:41:57 -05:00
terencechain
c10e56513d
Proposer RPC: GetBlock for Deneb ( #12481 )
2023-08-31 08:41:57 -05:00
terencechain
7670fe7d6f
Update block's commitment size ( #12470 )
2023-08-31 08:41:57 -05:00
terencechain
5deb1f755b
Deneb: implements engine API end points ( #12384 )
2023-08-31 08:41:57 -05:00
Radosław Kapka
319daa7f6c
Deneb integration: Beacon API getStateV2
( #12424 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Fix Migration Of State (#12423 )
2023-08-31 08:41:57 -05:00
terencechain
43e8ae4dca
Deneb DB methods ( #12379 )
2023-08-31 08:41:57 -05:00
Dhruv Bodani
30eaddf48f
Add support for validator count endpoint ( #12752 )
2023-08-24 23:11:41 +02:00
Preston Van Loon
5433502055
Add deneb config/params from deneb-integration ( #12783 )
...
Co-authored-by: Terence Tsao <terence@prysmaticlabs.com>
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
2023-08-23 20:07:25 +00:00
Radosław Kapka
f0d54254ed
HTTP implementation of voluntary exit pool endpoints ( #12777 )
...
* impl
* protos
* tests
* review
* test fix
2023-08-23 07:51:03 +00:00
james-prysm
da244c9e9a
adding register validator route ( #12776 )
2023-08-22 15:44:00 +00:00
Sammy Rosso
e49f1321b7
HTTP Beacon API: /eth/v1/beacon/blocks/{block_id}/root
( #12716 )
...
* Initial setup
* Fix all tests and handler func
* Cleanup
* Fix the tests
* Remove middleware endpoint
* Add endpoint
* Switch query param to path
* Fix e2e test
* Update beacon-chain/rpc/eth/beacon/handlers.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/rpc/eth/beacon/handlers.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Radek & James Reviews
* Check blockId length
* Add length check
* Fix
* Revert "Fix e2e test"
This reverts commit 6289c1de5c569daef6e6bda3600c2e5561a168d9.
* use v1alpha1 server to get root
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-08-22 06:18:02 +00:00
james-prysm
4d520460e0
REST implementation of /eth/v1/validator/register_validator
( #12758 )
...
* migrating v2 to http native url
* removing old code
* gaz
* updating beacon api validator client code
* fixing tests
2023-08-21 15:42:43 +00:00
Radosław Kapka
0452fd02e8
HTTP Beacon API: /pool/attestations
( #12735 )
...
* attestations
* post
* tests
* Revert "Auxiliary commit to revert individual files from afede4d949a7519902be2f1e0c485306c4ccdea7"
This reverts commit 9de74879e0c41e43183da2fa7e63094cac030abe.
* remove test
* remove redundant return
* Update beacon-chain/rpc/eth/beacon/handlers_pool.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com>
* review
* include index in broadcast log
---------
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com>
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-08-18 14:29:40 +00:00
terencechain
09d761e1ab
fix(proposer): verify attestations without mutating state ( #12704 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-08-17 16:37:19 +00:00
Sammy Rosso
baed8da9c0
HTTP Beacon API: /eth/v1/validator/sync_committee_contribution
( #12698 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2023-08-17 12:01:24 +02:00
anukul
46c72798c7
HTTP Beacon API: /eth/v1/validator/attestation_data
( #12634 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-08-14 17:56:36 +03:00
Radosław Kapka
e952fd802b
HTTP Beacon API: /eth/v1/validator/beacon_committee_subscriptions
( #12700 )
...
* 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
* implementation
* tests
* test fixes
* review
* clear cache in validator tests
* add missing stuff
* compilation fix
* remove `required` from bool
* remove time fetcher from tests
* no need to convert
* add conversion
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-08-10 18:00:19 +00:00
Radosław Kapka
36be057a11
HTTP Beacon API: /eth/v1/node/syncing
( #12706 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-08-09 17:23:59 +02: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
anukul
56a0315dde
fix: set CoreService in beaconv1alpha1.Server ( #12702 )
2023-08-06 18:16:54 -07:00
anukul
634133fedc
use struct in beacon-chain/rpc/core
to store dependencies ( #12701 )
2023-08-05 22:54:12 +02:00
Radosław Kapka
3a09405bb7
HTTP Beacon API: /eth/v1/validator/aggregate_and_proofs
( #12686 )
...
* 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
* review
* test fixes
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-08-03 22:24:23 +00:00
Radosław Kapka
a9b003e1fe
HTTP Beacon API: /eth/v1/validator/contribution_and_proofs
( #12660 )
...
* HTTP Beacon API: `/eth/v1/validator/contribution_and_proofs`
* add comment to invalid test case
* fix validation and test
* review
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-07-31 17:32:39 +00:00
Radosław Kapka
955175b7eb
Update server-side events dependency ( #12676 )
...
* Update server-side events dependency
* go sum
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-31 15:51:19 +00:00
Radosław Kapka
2b40c44879
Use the correct root in consensus validation ( #12657 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-07-25 12:04:08 +02:00
Radosław Kapka
fc193b09bf
HTTP Beacon API: /eth/v1/validator/aggregate_attestation
( #12643 )
...
* initial implementation
* it works
* tests
* extracted helper functions
* fix code
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-24 22:16:45 +00:00
Radosław Kapka
a0d53f5155
Register GetValidatorPerformance
as POST ( #12658 )
2023-07-24 21:17:08 +00:00
Radosław Kapka
43378ae8d5
Use BlockProcessed
event in Beacon API ( #12625 )
...
* Use `BlockProcessed` event in Beacon API
* log error
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-20 17:26:34 +00:00
james-prysm
405cd6ed86
Publish blockv2 ssz ( #12636 )
...
* wip produce block v2 ssz
* adding functions for ssz processing
* fixing linting
* Update beacon-chain/rpc/eth/beacon/handlers.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* addressing review feedback
* fixing linting
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-07-20 16:26:40 +00:00
Radosław Kapka
ec2fda7ad9
getSyncCommitteeRewards
API endpoint (#12633 )
2023-07-18 10:31:15 +02:00
Kaushal Kumar Singh
1894a124ea
Fix: Size of SyncCommitteeBits should be 64 bytes (512 bits) instead of 512 bytes ( #12586 )
...
* Fix: Size of SyncCommitteeBits should be 64 bytes (512 bits) instead of 512 bytes
* Updated unit test
2023-07-13 10:43:17 +00:00
james-prysm
0266609bf6
bugfix : Eth-Consensus-Version header on response header ( #12600 )
...
* adding in custom header
* adding in parsing for middleware
* fixing casing
* add handling on error as well
* changing how error is handled for header
* changing how error is handled
* fixing casing
* Update beacon-chain/rpc/eth/beacon/blocks.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/rpc/eth/beacon/blinded_blocks.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/rpc/eth/beacon/blinded_blocks.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/rpc/eth/beacon/blocks.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* fixing unit tests and review comment
* making some constants consistent in 1 file
* fixing missed blinded blocks
* fixing constants in custom handler tests
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2023-07-11 13:27:23 -05:00
Simon
cec32cb996
Append Dynamic Addinng Trusted Peer Apis ( #12531 )
...
* Append Dynamic Addinng Trusted Peer Apis
* Append unit tests for Dynamic Addinng Trusted Peer Apis
* Update beacon-chain/p2p/peers/peerdata/store.go
* Update beacon-chain/p2p/peers/peerdata/store_test.go
* Update beacon-chain/p2p/peers/peerdata/store_test.go
* Update beacon-chain/p2p/peers/peerdata/store_test.go
* Update beacon-chain/p2p/peers/status.go
* Update beacon-chain/p2p/peers/status_test.go
* Update beacon-chain/p2p/peers/status_test.go
* Update beacon-chain/rpc/eth/node/handlers.go
* Update beacon-chain/rpc/eth/node/handlers.go
* Update beacon-chain/rpc/eth/node/handlers.go
* Update beacon-chain/rpc/eth/node/handlers.go
* Move trusted peer apis from rpc/eth/v1/node to rpc/prysm/node; move peersToWatch into ensurePeerConnections function;
* Update beacon-chain/rpc/prysm/node/server.go
* Update beacon-chain/rpc/prysm/node/server.go
* fix go lint problem
* p2p/watch_peers.go: trusted peer makes AddrInfo structure by itself instead of using MakePeer().
p2p/service.go: add connectWithAllTrustedPeers function, before connectWithPeer, add trusted peer info into peer status.
p2p/peers/status.go: trusted peers are not included, when pruning outdated and disconnected peers.
* use readlock for GetTrustedPeers and IsTrustedPeers
---------
Co-authored-by: simon <sunminghui2@huawei.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-07-11 09:26:08 +00:00
Sammy Rosso
6a0db800b3
GetValidatorPerformance http endpoint ( #12557 )
...
* Add http endpoint for GetValidatorPerformance
* Add tests
* fix up client usage
* Revert changes
* refactor to reuse code
* Move endpoint + move ComputeValidatorPerformance
* Radek's comment change
* Add Bazel file
* Change endpoint path
* Add server for http endpoints
* Fix server
* Create core package
* Gaz
* Add correct error code
* Fix error code in test
* Adding errors
* Fix errors
* Fix default GRPC error
* Change http errors to core ones
* Use error status without helper
* Fix
* Capitalize GRPC error messages
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2023-07-07 14:49:44 +00:00
terencechain
75e94120b4
fix(aggregator): remove single bit aggregation ( #12555 )
2023-06-22 09:34:25 -07:00
Bryce T
c018981951
Add expected withdrawals API ( #12519 )
...
* add structs for expected-withdrawals-api
* add server handler
* add tests
* add bazel file
* register api in service
* remove get prefix for endpoint
* fix review comments
* Update beacon-chain/rpc/eth/builder/handlers.go
* use goimports sorting type
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-06-21 14:36:47 +00:00
Radosław Kapka
b92226bedb
getAttestationRewards
API endpoint (#12480 )
...
* handler
* very much work in progress
* remove Polish
* thinking
* working but differs from LH
* remove old stuff
* review from Potuz
* validator performance beacon server
* Revert "validator performance beacon server"
This reverts commit 42464cc6d375d7d27a4a781644c27f8b057212a5.
* reuse precompute calculations
* todos
* production quality
* add json tags to AttestationRewards
* Potuz's review
* extract vars
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2023-06-21 13:16:53 +00:00
Nishant Das
63d81144e9
Fix Uint256 Json Parsing ( #12540 )
...
* add stronger checks
* radek's review
2023-06-16 09:43:20 +00:00
james-prysm
6edbfa3128
multiple validator status - optimization ( #12487 )
...
* adding optmization
* addressing comments
* adding a test and fixing change in assignments.go
* making some changes based on review of the code
* removing irrelevant test
* changing formatting
2023-06-15 17:20:00 -05:00
Nishant Das
c7b2c011d8
fix parsing ( #12534 )
2023-06-15 11:12:39 -04:00
Nishant Das
1862422db9
Remove Defer In ProposeGenericBlock ( #12524 )
2023-06-14 05:25:52 +00:00
terencechain
6896b41963
optimization(proposer rpc): move htr to after broadcast ( #12504 )
2023-06-09 06:32:29 -07:00
zghh
ceff0c2024
Fix the bug that return 500 in /eth/v1/node/peers interface ( #12483 )
...
* Fix the bug that return 500 in /eth/v1/node/peers interface
* Update node.go
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-06-02 03:27:17 +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
terencechain
cb65d8af96
Proposer RPC: make setExecutionData
better ( #12466 )
2023-05-31 06:06:32 -07:00
terencechain
f4d3939b62
Add logs for build block times ( #12452 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-05-24 13:37:26 +00:00
Radosław Kapka
abc81e6dde
Merge all block unblinding code into a single unblinder
struct ( #12240 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-05-23 11:38:52 +02:00
terencechain
6b26183e73
Add missing config yamls for domains ( #12442 )
...
* Add missing config yamls for domains
* Fix GetSpec test
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-05-22 18:02:41 +00:00
Potuz
e0e7c71eb5
Fix sandwich attack on honest reorgs ( #12418 )
...
* Fix sandwich attack on honest reorgs
* fix test
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-05-22 17:23:20 +00:00
Potuz
be23773924
Don't use max cover on unaggregated atts nor check subgroup of validated signatures ( #12350 )
...
* Don't use max cover on unnaggregated atts
* Do not validate signature on the attestation package
* separate nil error checks
* fix unit tests
2023-05-16 17:06:26 +00:00
Nick Sullivan
5c00fcb84f
Fix numerous spelling error and typos in the log messages, comments, and documentation. ( #12385 )
...
* Minor typos and spelling fixes (comments, logs, & docs only, no code changes)
* Fix seplling in log message
* Additional spelling tweaks based on review from @prestonvanloon
2023-05-11 20:45:43 +00:00
Nishant Das
aef22bf54e
Add In Support For Builder in E2E ( #12343 )
...
* fix it up
* add gaz
* add changes in
* finally runs
* fix it
* add progress
* add capella support
* save progress
* remove debug logs
* cleanup
* remove log
* fix flag
* remove unused lock
* gaz
* change
* fix
* lint
* james review
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-05-11 11:10:29 -05:00
james-prysm
98f8ca4e34
reverting version check on bid header ( #12376 )
...
* adding reverting change
* adding additional tests and checks
* removing comment
* updating based on review suggestions
* fixing deepsource issues
* attempting to resolve dependencies
* removing dependency
* accidently flipped if statement with deepsource fix
* fixing unit test
2023-05-10 08:45:09 +08:00
Radosław Kapka
bd833e1c12
Use v1alpha1 server in block production ( #12336 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2023-05-04 19:52:41 +02:00
kasey
918129cf36
Replace statefeed Initialize ( #12285 )
...
* refactor initialization to blocking startup method
* require genesisSetter in blockchain, fix tests
* work-around gazelle weirdness
* fix dep gazelle ignores
* only call SetGenesis once
* fix typo
* validator test setup and fix to return right error
* move waitForChainStart to Start
* wire up sync Service.genesisWaiter
* fix p2p genesisWaiter plumbing
* remove extra clock type, integrate into genesis
and rename
* use time.Now when no Nower is specified
* remove unused ClockSetter
* simplify rpc context checking
* fix typo
* use clock everywhere in sync; [32]byte val root
* don't use DeepEqual to compare [32]byte and []byte
* don't use clock in init sync, not wired up yet
* use clock waiter in blockchain as well
* use cancelable contexts in tests with goroutines
* missed a reference to WithClockSetter
* Update beacon-chain/startup/genesis.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/blockchain/service_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* more clear docs
* doc for NewClock
* move clock typedef to more logical file name
* adding documentation
* gaz
* fixes for capella
* reducing test raciness
* fix races in committee cache tests
* lint
* add tests on Duration slot math helper
* startup package test coverage
* fix bad merge
* set non-zero genesis time in tests that call Start
* happy deepsource, happy me-epsource
* replace Synced event with channel
* remove unused error
* remove accidental wip commit
* gaz!
* remove unused event constants
* remove sync statefeed subscription to fix deadlock
* remove state notifier
* fix build
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: nisdas <nishdas93@gmail.com>
2023-05-03 04:34:01 +00:00
terencechain
5b8084b829
Proposer builds block in parallel. (Consensus vs Execution) ( #12297 )
...
* Proposer builds block in parallel. Cosensus vs Execution
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Use feature flag
---------
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2023-05-01 14:37:26 +00:00