terencechain
cbf6a2752d
Reject Blob Sidecar Incorrect Index ( #13094 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-25 01:57:54 +00:00
Nishant Das
642458f037
Fix Pending Queue Expiration Bug ( #13104 )
...
* fix bug
* make test better
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-24 20:28:57 +00:00
james-prysm
2a067d5d03
HTTP Validator API: /eth/v1/validator/{pubkey}/feerecipient
( #13085 )
...
* migrating fee recipient endpoints to pure http implementation
* fixing linting
* fixing type name
* fixing after merging develop
* fixing linting and tests
* Update validator/rpc/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/rpc/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/rpc/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-10-24 16:55:45 +00:00
terencechain
a2f60364ae
Check return and request lengths for blob sidecar by root ( #13106 )
2023-10-24 15:02:44 +00:00
Justin Traglia
45f68fa8d5
Replace MAX_BLOB_EPOCHS usages with more accurate terms ( #13098 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-10-24 03:28:50 +00:00
terencechain
f55708b995
Fix blob sidecar subnet check ( #13102 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-23 23:08:25 +00:00
Delweng
00826e8858
beacon-chain/blockchain: fix some datarace in go test ( #13036 )
...
* beacon-chain/blockchain: mockBeaconNode with mutex
Signed-off-by: jsvisa <delweng@gmail.com>
* beacon-node/forkchoice: bool -> atomic.Bool
Signed-off-by: jsvisa <delweng@gmail.com>
* beacon-chain/blockchain: datarace in concurrent postBlock
Signed-off-by: jsvisa <delweng@gmail.com>
* Revert "beacon-node/forkchoice: bool -> atomic.Bool"
This reverts commit 4aad095b0fc52bd707cc0d042fc0728f1cb2ce4c.
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-23 21:55:47 +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
james-prysm
9c938d354d
HTTP Validator API: /eth/v1/validator/{pubkey}/gas_limit
( #13082 )
...
* WIP
* more WIP
* fixing unit tests
* gaz
* gofmt
* adding routes
* adding tests for validator routes
* adding in missed comment
* 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>
* 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>
* Update validator/rpc/handlers_keymanager.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com>
* adding log and removing unneeded type
* fixing casing on tests
* adding more tests
* Update server.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/rpc/handlers_keymanager.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* addressing radek's comments
* handling error
* fixing naming on validator struct for mock
---------
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-10-23 15:49:28 +00:00
terencechain
83932d8e05
Refactor Error String Formatting According to Go Best Practices ( #13092 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-23 07:57:25 +00:00
Nishant Das
beebb56c8e
Fix Builder Testing For Multiclient Runs ( #13091 )
2023-10-23 06:33:46 +00:00
Potuz
0920fb1f61
Return early from ReceiveBlock if already sycned ( #13089 )
...
* Return early from ReceiveBlock if already sycned
* Fix bad setup test
2023-10-22 18:31:50 -03: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
Nishant Das
f91efafe24
Fix Multivalue Slice Deadlock ( #13087 )
...
* fix deadlock
* gofmt
* lint
2023-10-21 17:08:52 +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
Potuz
65ce27292c
sync only up to previous epoch on phase 1 ( #13083 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-10-21 00:05:14 +08: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
vuittont60
88e1b9edb3
docs: fix typo ( #13023 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-10-20 14:55:16 +00:00
Nishant Das
c7e28908f5
Add Clarification To Sync Committee Cache ( #13067 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-20 13:57:07 +00:00
james-prysm
7143fe80bc
HTTP VALIDATOR API: remote keymanager api /eth/v1/remotekeys
( #13059 )
...
* WIP migrating keymanager api changes
* gaz
* fixing more tests
* fixing unit tests
* fixing deepsource
* fixing visibility of package
* fixing more package visability issues
* gaz
* fixing test
* moving routes to proper location
* removing whitespae for linting
* Update validator/rpc/handlers_keymanager.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* radek's comments
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-10-19 16:17:42 +00:00
Potuz
e231d88ca0
Remove sidecars with invalid proofs ( #13070 )
...
* Remove sidecars with invalid proofs
* unhandled error
* Add missing delete
2023-10-19 12:33:19 -03:00
Nishant Das
0486b64dcc
Set Better Slice Capacities in the State ( #13068 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-19 14:45:39 +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
Nishant Das
bcc23d2ded
Fix Withdrawals Marshalling ( #13066 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-18 17:34:12 +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
james-prysm
71fa70ce40
CLEANUP: validator exit prompt ( #13057 )
...
* removing check special phrase in url from validator exit
* fixing missed tests
* fixing unit test and addressing preston/sammy's comments
* fixing test
* sammy's comments
* deepsource recommendation
* Update validator/accounts/accounts_helper.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com>
* sammy's review
---------
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-18 14:00:25 +00:00
terencechain
4809da62cc
Passing block as arugment for sidecar validation ( #13062 )
2023-10-18 13:42:15 +00:00
terencechain
e10dbaa8b4
Use correct context for sendBatchRootRequest ( #13061 )
2023-10-18 05:58:44 -07:00
Delweng
71b08a50b7
beacon-chain/sync: fix some datarace in go test ( #13039 )
...
* beacon-chain/sync: adjust dataflow incase of datarace
Signed-off-by: jsvisa <delweng@gmail.com>
* beacon-chain/p2p: use atomic..Bool instead of bool
Signed-off-by: jsvisa <delweng@gmail.com>
* beacon-chain/sync: use channel to control concurrent
Signed-off-by: jsvisa <delweng@gmail.com>
* Revert "beacon-chain/sync: use channel to control concurrent"
This reverts commit 500d5b1ecdeef175e3a5970867d8176abd0763d7.
Signed-off-by: jsvisa <delweng@gmail.com>
* Revert "beacon-chain/sync: adjust dataflow incase of datarace"
This reverts commit 0c819e96cafb89ccba314ca98a8a0fdfcbb70b8c.
Signed-off-by: jsvisa <delweng@gmail.com>
* beacon-chain/sync: waitForChain is invoked inside registerHandlers
Signed-off-by: jsvisa <delweng@gmail.com>
* beacon-chain/sync: no need to registerHandler for waitForChainStart testcase
Signed-off-by: jsvisa <delweng@gmail.com>
* beacon-chain/sync: set p2p.Digest before goroutine
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-17 17:30:10 +00:00
terencechain
cb5ce74a23
Add pending blobs queue for missing parent block ( #13005 )
...
* Add pending blobs queue for missing parent block
* Prune sidecars older than previous slot
* Prune sidecar based on time
* Tests
* Fix state notifier
* Wait for chain to start
* Remove logs
* Remove bad logs
* James feedback
* Fix conflict
* Rm outdated check
* Potuz's feedback
* Kasey's feedback
* Use 11s mark
* Use secs
* Add pending blobs queue for missing parent block
* Prune sidecars older than previous slot
* Prune sidecar based on time
* Tests
* Fix state notifier
* Wait for chain to start
* Remove logs
* Remove bad logs
* James feedback
* Fix conflict
* Rm outdated check
* Potuz's feedback
* Kasey's feedback
* Use 11s mark
* Use secs
* Add test case for duplicates
* Radek's feedback
* Fix test
2023-10-17 14:42:15 +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
james-prysm
493a7179d7
Deneb - web3signer ( #12767 )
...
* wip
* adding deneb block
* adding in support for blobs and fixing unit tests for deneb
* fixing linting
* gaz
* adding support for new web3signer version
* fixing tag name
* addressing feedback
* fixing tests
* adding unit test for review
* updating test name
* updating unit tests and length logic
* adding in lengthfor root
* adjusting max blob length
* fixing mock
* fixing another mock
* gaz
* adding network configs
* removing duplicate
* changing based on nishant's feedback
* Update validator/keymanager/remote-web3signer/v1/requests.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com>
* Update validator/keymanager/remote-web3signer/metrics.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com>
* sammy's suggestions
* removing temp file
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com>
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 18:06:36 +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
terencechain
58cdb29ef3
Verify blobs that arrived from by root request ( #13044 )
...
* Verify blobs that arrived from by root request
* Add tests
* Add tests
* Fix test
* Fix lint
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-16 05:30:33 +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
Potuz
806a394c89
Reject blobs with invalid parent ( #13047 )
...
* Reject blobs with invalid parent
* remove unused comment
2023-10-13 13:15:40 +00:00
Potuz
97a99874e8
Remove confusing comment ( #13045 )
2023-10-13 00:36:03 +00:00
terencechain
945b087ca9
Add more blob and block checks for by range ( #13043 )
...
* Add more blob and block checks for by range
* Update beacon-chain/sync/initial-sync/blocks_fetcher.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
* Update beacon-chain/sync/initial-sync/blocks_fetcher.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
* Update beacon-chain/sync/initial-sync/blocks_fetcher_test.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
2023-10-12 19:35:32 +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
terencechain
867db1aeee
Exit early if blob by root request is empty ( #13038 )
2023-10-12 02:27:26 +00:00
terencechain
99843688cd
Request missing blobs while processing pending queue ( #13015 )
...
* Request missing blobs while processing pending queue
* Fix build
* Lower complexity
* Fix conflict
* Clean up per James's comment
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-11 22:07:11 +00:00
Radosław Kapka
a536612c39
HTTP Beacon APIs for node ( #13010 )
2023-10-11 22:18:49 +02:00
terencechain
c5501f8775
Refactor Pending Block Queue Logic in Sync Package ( #13026 )
...
* Clean up pending block queue
* Kasey's feedback
* Kasey's feedback on validateBeaconBlock err handling
* Clean up handleBlockProcessingError
* Clean up old comments
* James feedback
* has peer helper
* Reuse parent reoot
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-11 14:41:24 +00: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