Potuz
31c72672d7
Remove the getPayloadAttribute call from updateForkchoiceWithExecution ( #13402 )
...
* Remove the getPayloadAttribute call from updateForkchoiceWithExecution
* Move log
2024-01-03 12:43:40 +00:00
Potuz
8c1e180dd1
Simplify fcu 2 ( #13400 )
...
* change getPayloadAttribute signature
* Unify different FCU arguments
2024-01-02 22:45:55 +00:00
Potuz
a602acf492
Remove getPayloadAttributes from FCU call ( #13399 )
2024-01-02 17:37:18 +00:00
Potuz
9809f5ac77
Simplify fcu 1 ( #13387 )
...
* Remove unsafe proposer indices cache
* Simplify FCU #1
This PR starts the process of gradually simplifying FCU
It removes the responsibility of getting the state and block from this
function and informing if head has changed. It is only called when the
imported block has actually become head.
* Add a call to FCU in edge cases
2023-12-30 12:20:20 +00:00
Potuz
cff5e2b5fe
Remove unsafe proposer indices cache ( #13385 )
2023-12-30 12:20:02 +00:00
terence
dd15f9e0cc
Rewrite ProposeBlock
endpoint ( #13380 )
...
* Init
* Tests
* Init
* Tests
* Radek's feedback
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* More Radek's feedback
* Potuz feedback
* Use inline copy
* Fix conflict
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-12-29 23:32:58 +00:00
terence
1c9ded4684
Remove blind field from block type ( #13389 )
...
* Init
* Init
* Fix tests
2023-12-29 21:28:19 +00:00
Potuz
d4cc6fcf4a
update shuffling caches before calling FCU on epoch boundaries ( #13383 )
...
* update shuffling caches before calling FCU on epoch boundaries
* Terence's review
2023-12-28 15:19:09 +00:00
terence
e70b606e78
Replace validator count with validator indices in update fee recipient log ( #13384 )
...
* Add validator count to updated fee recipient address log
* Add validator count to updated fee recipient address log
* Replace
2023-12-27 16:46:15 +00:00
Potuz
0e8b37c317
Log value of local payload when proposing ( #13381 )
2023-12-27 14:43:32 +00:00
Potuz
e80db9554d
Use advanced epoch cache when preparing proposals ( #13377 )
2023-12-27 12:42:51 +00:00
Potuz
b7e0819f00
refactor Payload Id caches ( #12987 )
...
* init
- getLocalPayload does not use the proposer ID from the cache but takes
it from the block
- Fixed tests in blockchain package
- Fixed tests in the RPC package
- Fixed spectests
EpochProposers takes 256 bytes that can be avoided to be copied, but
this optimization is not clear to be worth it.
assginmentStatus can be optimized to use the cached version from the
TrackedValidatorsCache
We shouldn't cache the proposer duties when calling getDuties but when
we update the epoch boundary instead
* track validators on prepare proposers
* more rpc tests
* more rpc tests
* initialize grpc caches
* Add back fcu log
Also fix two existing bugs wrong parent hash on pre Capella and wrong
blockhashes on altair
* use beacon default fee recipient if there is none in the vc
* fix validator test
* radek's review
* push always proposer settings even if no flag is specified in the VC
* Only register with the builder if the VC flag is set
Great find by @terencechain
* add regression test
* Radek's review
* change signature of registration builder
2023-12-22 18:47:51 +00:00
Radosław Kapka
7d64104003
block publishing ( #13376 )
2023-12-22 18:15:00 +00:00
Nishant Das
b1e8a9ea3d
fix it with regression ( #13375 )
2023-12-22 12:33:23 +00:00
Radosław Kapka
cc1028ca3c
Use deneb key for deneb state in saveStatesEfficientInternal ( #13374 )
...
* Use deneb key for deneb state in saveStatesEfficientInternal
* move reset out of inner loop
2023-12-21 18:14:04 +00:00
Nishant Das
233f4d99a2
Update Libp2p To v0.32.1 and Go to v1.21.5 ( #13304 )
...
* update libp2p
* fix tests
* fix tests
* fix build
* update to go v1.21
* workflow
* workflow again
* update ci
* update golangci
* disable quic
2023-12-21 16:09:54 +00:00
james-prysm
856907d760
Small encoding fixes on logs and http error code change ( #13345 )
...
* fixing some bad encodings
* changing http error to align with other clients
* fixing unit test
2023-12-20 18:18:55 +00:00
Sammy Rosso
c6801df05a
Fix total pruned metric + add to logging ( #13367 )
2023-12-19 16:15:01 +00:00
SQL TRIGGER
bc7b15b04e
typo fix ( #13357 )
2023-12-19 16:03:40 +00:00
Nishant Das
eb713d1177
Refactor Network Config Into Main Config ( #13364 )
...
* change parameters to main config
* add more changes
* change to accepted format
* fix changes in config
* gaz
* fix test
* fix test again
2023-12-19 14:59:30 +00:00
Preston Van Loon
844b2c6602
Add error wrapping to blob initialization errors ( #13366 )
2023-12-19 14:55:26 +00:00
Potuz
9efaa832cd
use different keys for the proposer indices cache ( #13272 )
...
* use different keys for the proposer indices cache
* Add a way to get the proposer indices from a checkpoint
* fix fuzzing tests
* use htr instead of body root
* move comment
2023-12-19 13:14:55 +00:00
Radosław Kapka
e9d26c61d7
Do not skip mev boost in v3
block production endpoint ( #13365 )
2023-12-19 12:46:17 +00:00
Sammy Rosso
374d77f437
Blob filesystem metrics ( #13316 )
...
* Add metrics
* Replace counter with gauge
* Preston's comments
* Remove hardcoded number
* Count blob files
* Fix count order
* Fixes
* Cleanup
* Add blob bucket
* Update beacon-chain/node/node.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
* Rename
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
2023-12-18 18:24:07 +00:00
terence
0eff83cb9d
Use a cache of one entry to build attestation ( #13300 )
...
* Use a cache of one entry to build attestation
* Gazelle
* Enforce on RPC side
* Rm unused var
* Potuz feedback, dont use pointer
* Fix tests
* Init fetcher
* Add in-progress
* Add back missing lock
* Potuz feedback
* Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
---------
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2023-12-18 16:12:43 +00:00
terence
d57bca97a5
Check builder header kzg commitment ( #13358 )
2023-12-18 06:14:59 +00:00
Nishant Das
b45a6664be
Enable Deneb For E2E Scenario Tests ( #13317 )
...
* fix all cases
* update web3signer
* current progress
* fix it finally
* push it back to capella
* remove hard-coded forks
* fix failing tests
* gaz
* fix dumb bug
* fix bad test setup
* change back
2023-12-16 11:37:44 +00:00
Preston Van Loon
db096488b0
fixing sa4006 ( #13350 )
2023-12-15 16:49:27 +00:00
Radosław Kapka
344e68b81b
Use SkipMevBoost
properly during block production ( #13352 )
...
* fix bugs
* tests
* name fix
2023-12-15 16:14:42 +00:00
Justin Traglia
1962cca69e
Fix error string generation for missing commitments ( #13338 )
2023-12-15 04:03:45 +00:00
Justin Traglia
4a374435c0
Enable errname linter and fix findings ( #13341 )
2023-12-15 03:26:48 +00:00
David Theodore
0fde4a22e1
reordered blob validation ( #13347 )
2023-12-15 02:46:12 +00:00
terence
62ecc0d177
Add more color to sending blob by range req log ( #13349 )
2023-12-15 02:43:16 +00:00
Justin Traglia
97dfec84f6
Handle potential error from newBlockRangeBatcher ( #13344 )
2023-12-15 02:28:07 +00:00
terence
53bc96844e
Move pruning log to after retention check ( #13348 )
2023-12-15 00:49:29 +00:00
terence
ddcf0c18dc
Excluse DA wait time for chain processing time ( #13335 )
...
* Excluse DA wait time for chain processing time
* Rename
2023-12-14 22:46:48 +00:00
Potuz
96df81d5c5
Hook to slot stream instead of block stream on the VC ( #13327 )
...
* Hook to slot stream instead of block stream on the VC
* Implement StreamSlots in the BN
* mock update
* fix tests
* don't return from stream
* Terence's review
* deepsource second complain
---------
Co-authored-by: rkapka <rkapka@wp.pl>
2023-12-13 23:13:56 +00:00
terence
c47c52152b
Enhance Pruning Logs ( #13331 )
...
* Log prunning info
* Added start log
* Log prunning info
* Added start log
2023-12-13 19:24:47 +00:00
Justin Traglia
52b9b65adb
Add sanity checks for bundle from builder ( #13319 )
...
* Add sanity checks for bundle from builder
* Add more checks to BlobsBundle.ToProto()
* Fix minor typo
* Fix tests & add new ones
* Add tests for ToProto
* Add "not" to error message
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-12-13 15:54:00 +00:00
Radosław Kapka
ea59b1ec71
Increase buffer of events channel ( #13329 )
2023-12-13 15:37:45 +00:00
Nishant Das
8aaab86987
fix it ( #13325 )
2023-12-13 11:01:01 +00:00
Sammy Rosso
3d61fd0436
Blob filesystem add pruning during blob write ( #13275 )
...
* Add prune during write
* Fix merge errors
* Add test
* Add test timeout
* Gaz
* Check prune at midpoint
* Fix slot number
* More checks
2023-12-12 21:27:15 +00:00
james-prysm
b19d24c581
Remove signed block requirement from no-verify functions ( #13314 )
...
* removing fake wrappers
* fixing conficts and missed tests
* fixing more conflicts
* addressing missed unit test
* fixing nogo error
* fixing more unit tests
* fixing more tests
2023-12-12 20:18:40 +00:00
Potuz
ce7452c97a
update spectests to 1.4.0-beta.5 ( #13318 )
...
* update spectests to 1.4.0-beta.5
* add spec config
2023-12-12 18:27:48 +00:00
james-prysm
5e56b5fdd7
Beacon APIs: re enabling blob events ( #13315 )
...
* re enabling blob events
* terence's comments
* Update beacon-chain/rpc/eth/events/events_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-12-12 15:58:11 +00:00
Sammy Rosso
3bd116db16
Blob filesystem add pruning at startup ( #13253 )
...
* Add Save blob and tests
* Remove locks
* Remove test cleanup
* Fix go mod
* Cleanup
* Add checksum
* Add file hashing to fileutil
* Move test
* Check data when exists
* Add one more test
* Rename
* Gaz
* Add packaged level comment
* Fix block proposals in the REST validator client (#13116 )
* Fix block proposals in the REST validator client
* fix graffiti test
* return empty graffiti
* fallback to old endpoints
* logs
* handle 404
* everything passes
* review from James
* log undecoded value
* test fixes and additions
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
* fix head slot in log (#13139 )
* zig: Update zig to recent main branch commit (#13142 )
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
* Fix Pending Queue Deadline Bug (#13145 )
* rearrange deadline
* naming
* Add pruning
* Gaz
* Gaz
* Update pruning
* Cleanup
* Making a mess
* Benchmarking
* Forgot to add the file + fixes
* Fixes
* Pruning from DB fixed
* Add prune by file data
* Fix pruning
* Prune fixes
* Cleanup db blockRoot filter
* Handle file close error
* Fix deletion
* Change read at + remove retentionEpich from bs
* Gaz
* Seperate logic + add detailed comments
* Add tests
* Add retention slot when creating blobStorage
* Fix tests
* Gaz
* Fix testonly import
* Add pruning at startup
* Add nil check
* Fix merge errors
* Fix test
* Fix test
---------
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: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-12-11 17:08:52 +00:00
terence
7d2ddaee43
Test improvement TestValidateVoluntaryExit_ValidExit ( #13313 )
2023-12-11 08:01:56 +00:00
terence
122a7782ff
Initialize blob storage for initial sync service ( #13312 )
2023-12-11 07:52:07 +00:00
terence
9b1b6f9be6
Use verified blob for gossip checks ( #13294 )
...
* Use blob verifier for gossip rules
* Fixing tests
* Fix lint
* Mocks
* Trying Kasey's rec
* mock verifier init workaround
* Add more tests
* Reset deneb epoch for exit test
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
2023-12-11 00:37:45 +00:00
Delweng
0eb08a4f96
beacon-chain/rpc: use BalanceAtIndex instead of Balances to reduce memory copy ( #13279 )
...
* beacon-chain/rpc: use BalanceAtIndex instead of Balances
Signed-off-by: jsvisa <delweng@gmail.com>
* beacon-chain/rpc: stream use BalanceAtIndex is sufficient
Signed-off-by: jsvisa <delweng@gmail.com>
* beacon-chain/rpc: fix commit review
Signed-off-by: jsvisa <delweng@gmail.com>
* beacon-chain/rpc: http2 -> httputil
Signed-off-by: jsvisa <delweng@gmail.com>
---------
Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-12-10 00:04:45 +00:00
Radosław Kapka
4c47756aed
HTTP endpoints cleanup ( #13251 )
...
* remove validation package
* structs cleanup
* merge with apimiddleware removal
* more validation and Bls capitalization
* builder test fix
* use strconv for uint->str conversions
* use DecodeHexWithLength
* use exact param names
* rename http package to httputil
* change conversions to fmt.Sprintf
* handle query paramsd and route variables
* spans and receiver name
* split structs, move bytes helper
* missing ok check
* fix reference to indexed failure
* errors fixup
* add godoc to helper
* fix BLS casing and chainhead ref
* review
* fix import in tests
* gzl
2023-12-08 20:37:20 +00:00
Preston Van Loon
ff99616833
Fix staticcheck violations ( #13301 )
...
* Fix violations of sa2002
* Fix violations of sa4005
* Fix violations of sa4010
* Fix violations for sa4023
* Comment on commented static checks
2023-12-08 13:07:52 +00:00
james-prysm
481d77bfde
APIs: reusing grpc cors middleware for rest ( #13284 )
...
* reusing grpc cors middleware for rest
* addressing radek's comments
* Update api/server/middleware.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com>
* fixing to recommended name
* fixing naming
* fixing rename on 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-12-08 04:24:18 +00:00
Nishant Das
590317553c
Support New Subnet Backbone ( #13179 )
...
* add in changes
* fix it up
* fix test
* gaz
* lint
* add back
* fix tests
* fix it
* fix tests
* add lib
* fix it
2023-12-08 04:07:48 +00:00
james-prysm
b5b8825cc8
Beacon API: fix get blob returns 500 instead of empty ( #13297 )
...
* fix blob api, should return empty if no indicies were found
* fixing small bug with slice
2023-12-07 22:33:26 +00:00
Justin Traglia
382b8b23c2
Ensure partial blob is deleted if there's an error ( #13292 )
...
* Ensure partial blob is deleted if there's an error
* Add debug log if file is removed
2023-12-07 20:52:16 +00:00
kasey
40a3ebab91
initialize sig cache for verification.Initializer ( #13295 )
...
* initialize sig cache for verification.Initializer
* gaz
* lint
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
2023-12-07 20:14:01 +00:00
james-prysm
83af9a5694
Beacon API: update Deneb endpoints after removing blob signing ( #13235 )
...
* making needed changes to beacon API based on removal of blobsidecar from block contents
* fixing tests and reverting some changes to be addressed later
* fixing generated code from protos
* gaz
* fixing get blob handler and adding blob storage to the blob service
* updating unit tests
* WIP
* wip tests
* got tests passing but needs cleanup
* removing gomod and gosum changes
* fixing more tests
* fixing more tests
* fixing more tests
* gaz
* moving some proto types around
* removing unneeded unit test
* fixing proposer paths
* adding more tests
* fixing more tests
* improving more unit tests
* updating one blob only unit test
* changing arguments of buildBlobSidecar
* reverting a change based on feedback
* terence's review items
* fixing test based on new develop changes
* radek's comments
* addressed more comments from radek
* adding in blobs to test data
* fixing casing in test
* removing extra line
* fixing issue from bad merge
* Update beacon-chain/rpc/eth/beacon/handlers_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/rpc/eth/beacon/handlers_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/rpc/eth/beacon/handlers_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/rpc/eth/blob/handlers.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* moving core getblob business logic to blocker based on radek's comment
* fixing mock blocker
* gaz
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-12-07 17:37:11 +00:00
Nishant Das
6a45323ab7
only run metrics for canonical blocks ( #13289 )
2023-12-07 11:03:23 +00:00
kasey
4008ea736f
Verify roblobs ( #13245 )
...
* scaffolding for verification package
* WIP blob verification methods
* lock wrapper for safer forkchoice sharing
* more solid cache and verification designs; adding tests
* more test coverage, adding missing cache files
* clearer func name
* remove forkchoice borrower (it's in another PR)
* revert temporary interface experiment
* lint
* nishant feedback
* add comments with spec text to all verifications
* some comments on public methods
* invert confusing verification name
* deep source
* remove cache from ProposerCache + gaz
* more consistently early return on error paths
* messed up the test with the wrong config value
* terence naming feedback
* tests on BeginsAt
* lint
* deep source...
* name errors after failure, not expectation
* deep sooource
* check len()==0 instead of nil so empty lists work
* update test for EIP-7044
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
2023-12-07 02:36:25 +00:00
Justin Traglia
4e4fb9ad52
Split blob pruning into two funcs ( #13285 )
2023-12-06 23:39:02 +00:00
kasey
737e0e0d3a
Use functional options for --blob-retention-epochs
( #13283 )
...
* blob retention period functional opts
* missed unstaged change
* missed other init after cleardb
* fix ineffassign
* fix dup import
* config failsafe for tests
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
2023-12-06 20:20:34 +00:00
Potuz
604c82626f
Allow requests for old target roots ( #13281 )
2023-12-06 17:11:34 +00:00
Nishant Das
e1a3852f08
push up the defaults ( #13278 )
2023-12-06 16:46:46 +00:00
james-prysm
0e3c1d42f6
Beacon API: routes unit test ( #13276 )
...
* refactoring to add a routes unit test for rest handlers
* gaz
* updating names for functions
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-12-06 15:17:13 +00:00
Preston Van Loon
b84b795f23
Relax file permissions check on existing directories ( #13274 )
2023-12-05 19:39:45 -06:00
Sammy Rosso
f40b8583f7
Blob filesystem: prune blobs ( #13147 )
...
* Add Save blob and tests
* Remove locks
* Remove test cleanup
* Fix go mod
* Cleanup
* Add checksum
* Add file hashing to fileutil
* Move test
* Check data when exists
* Add one more test
* Rename
* Gaz
* Add packaged level comment
* Fix block proposals in the REST validator client (#13116 )
* Fix block proposals in the REST validator client
* fix graffiti test
* return empty graffiti
* fallback to old endpoints
* logs
* handle 404
* everything passes
* review from James
* log undecoded value
* test fixes and additions
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
* fix head slot in log (#13139 )
* zig: Update zig to recent main branch commit (#13142 )
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
* Fix Pending Queue Deadline Bug (#13145 )
* rearrange deadline
* naming
* Add pruning
* Gaz
* Gaz
* Update pruning
* Cleanup
* Making a mess
* Benchmarking
* Forgot to add the file + fixes
* Fixes
* Pruning from DB fixed
* Add prune by file data
* Fix pruning
* Prune fixes
* Cleanup db blockRoot filter
* Handle file close error
* Fix deletion
* Change read at + remove retentionEpich from bs
* Gaz
* Seperate logic + add detailed comments
* Add tests
* Add retention slot when creating blobStorage
* Fix tests
* Gaz
* Fix testonly import
* Fix linter errors
* Fix retentionSlot calculation
* Move + use MaxEpochsToPersistBlobs
* Remove unused ctx
* Prestons suggestion
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
* Rename
---------
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: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-12-05 21:07:34 +00:00
Preston Van Loon
a6b6a938de
blobstorage: Improve mkdirall error ( #13271 )
2023-12-05 19:57:08 +00:00
Brandon Liu
c78d698d89
Add --jwt-id
flag ( #13218 )
...
* add jwt-id flag
* optimize unit test for jwt-id
* Add jwt-id to help text
* gofmt
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
2023-12-05 19:02:25 +00:00
Nishant Das
705e98e3c3
no need to hash it again ( #13261 )
2023-12-05 07:59:01 -03:00
kasey
ce2344301c
forkchoice.Getter wrapper with locking wrappers ( #13244 )
...
* forkchoice.Getter wrapper with locking wrappers
* comments
* lint
* only expose fast fc getters
* potuz feedback re rlock
* update mocks for new fc method
* appease deepsource
* add missing exported func comment
* yeet errors to make the linter happy
* even more devious _discard
* rm TargetRoot
* derp
* handle nil error in _discard
* deep source
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-12-04 21:01:39 +00:00
terence
243bcb03ce
Fix FFG LMD Consistency Check (Option 2) ( #13258 )
...
* Fix FFG LMD Consistency Check with TargetRootForSlot
* Add test, removed implementation
* convert to epoch and fix self target
---------
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2023-12-04 15:31:18 +00:00
Radosław Kapka
a0ca4a67b0
Remove API Middleware ( #13243 )
...
* remove api/gateway/apimiddleware
* fix errors in api/gateway
* remove beacon-chain/rpc/apimiddleware
* fix errors in api/client/beacon
* fix errors in validator/client/beacon-api
* fix errors in beacon-chain/node
* fix errors in validator/node
* fix errors in cmd/prysmctl/validator
* fix errors in testing/endtoend
* fix all other code
* remove comment
* fix tests
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-12-04 11:55:21 +00:00
Preston Van Loon
b68a4e12aa
Update bazel and other CI improvements ( #13246 )
...
* Update bazel to 6.4.0, review flags
* Remove problematic/slow targets
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-12-01 22:20:54 +00:00
kasey
c010601f3b
Initialize cancellable root context in main.go ( #13252 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-12-01 21:16:06 +00:00
james-prysm
394bd1786a
HTTP validator API: beacon and account endpoints ( #13191 )
...
* fixing squashing changes, migrates beacon , account, and auth endpoints on validator client
* adding accounts endpoints
* fixing tests and query endpoints
* adding auth endpoint and fixing unit tests
* removing unused files and updating node file to skip gRPC
* ineffectual assignment fix
* rolling back a change to fix e2e
* fixing issues with ui
* updating with webui version 2.0.5
* updating package name flag in readme
* removing restore assets functions
* adding nomemcopy flag to see if vulenerability scan passes
* making data non compressed to avoid copy vulnerability
* Update beacon-chain/rpc/eth/shared/structs_validator.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* updating site_data, and skipping static analysis on file
* adding back deprecation comment notice
* updating workflows to ignore generated
* addressing radek comments
* missed a conversion
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2023-12-01 20:40:09 +00:00
Potuz
461af4baa6
Add test helpers to produce commitments and proofs ( #13242 )
...
* Add test helpers to produce commitments and proofs
* go mod tidy
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-12-01 19:51:19 +00:00
Sammy Rosso
7a70305935
Blob filesystem: delete blobs ( #13233 )
...
* Add deletion
* Gaz
* Return on removal
* Test cleanup
* Simply blob deletion
* Add test case to prove that deleting a root that doesn't exist will not return an error
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
2023-12-01 19:03:47 +00:00
Potuz
83ce7e3607
Verify lmd without ancestor ( #13250 )
2023-12-01 17:31:27 +00:00
Potuz
cf8e554981
track target in forkchoice ( #13249 )
2023-12-01 16:30:34 +00:00
Nishant Das
59aa978223
Optimize Multivalue Slice For Trie Recomputation ( #13238 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-12-01 12:01:28 +01:00
Nishant Das
ca36634de6
Improve Gossipsub Rejection Metric ( #13236 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-11-30 10:16:26 +00:00
Nishant Das
1c35b66132
Add Gossipsub Queue Flag ( #13237 )
...
* add it
* remove var
* fix tests
* terence's comments
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-11-30 14:22:59 +08:00
terence
56c1f9aab5
Update Prysm Proposer end points for Builder API ( #13240 )
2023-11-29 13:07:57 -08:00
james-prysm
bc107a61e3
builder API: remove blinded blob sidecar ( #13202 )
2023-11-29 06:28:37 -08:00
Nishant Das
9f41375550
remove subscriber checker ( #13234 )
2023-11-29 10:11:10 +08:00
Radosław Kapka
6a638bd148
HTTP handler for Beacon API events ( #13207 )
...
* in progress
* implementation done
* bzl
* fixes
* tests in progress
* tests
* go mod tidy
* Update beacon-chain/rpc/eth/events/events.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com>
* fix config test
* fix unreachable code issue
* remove proto service dir
* test fix
---------
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com>
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-11-28 23:20:02 +00:00
Nishant Das
52f1b3f958
add in changes ( #13226 )
2023-11-28 22:12:13 +08:00
Nishant Das
80526a1899
Verify Block Signatures On Insertion Into Pending Queue ( #13183 )
...
* add check for bad signatures via gossip
* edge case handled
2023-11-28 03:13:59 +00:00
terence
7cc05401ca
Update proposer RPC to new blob sidecar format ( #13189 )
2023-11-27 15:44:52 -08:00
Radosław Kapka
cd8d499198
Move weak subjectivity endpoint to HTTP ( #13220 )
...
* Move weak subjectivity endpoint to HTTP
* remove server test file
* remove deprecation
2023-11-27 14:44:26 +00:00
Potuz
67d0b26a21
Accept block when error is only in logging ( #13223 )
...
* Accept block when error is only in logging
* linter shutup
* ignore nilerr on the linter
2023-11-24 19:00:53 +00:00
terence
6c85587d14
Update broadcast method to use BlobSidecar
instead of SingedBlobSidecar
( #13221 )
...
* Update broadcast method to use BlobSidecar instead of SingedBlobSidecar
* Fix test
2023-11-24 07:18:00 +00:00
terence
6daa72634d
Fix forkchoice pkg's comments grammar ( #13217 )
2023-11-22 17:27:42 -08:00
Potuz
07ee42660a
lock RecentBlockSlot ( #13212 )
...
* lock RecentBlockSlot
* Kasey's fix
2023-11-22 16:58:00 -03:00
hzysvilla
4b5db8003b
Comment typo ( #13209 )
...
* Update config.go
* Update flags.go
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-11-22 18:54:19 +00:00
Radosław Kapka
4b3c511a26
POST version of GetValidators and GetValidatorBalances ( #13199 )
...
* POST versions of GetValidators and GetValidatorBalances
* post statuses
* balances test
* group params
* test error cases
2023-11-22 17:30:52 +00:00
terence
8902ad3a20
Implement Slot-Dependent Caching for Blobs Bundle ( #13205 )
2023-11-22 07:23:50 -08:00
kasey
1123df7432
Verified roblobs ( #13190 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-11-21 18:44:38 +00:00
Nicolás Pernas Maradei
10ccf1840f
[2/5] light client http api ( #12984 )
...
Co-authored-by: Lizhang <lizhang@polymerlabs.org>
2023-11-21 13:26:39 +01:00
terence
d035be29cd
Optimize ReplayBlocks
for Zero Diff ( #13198 )
...
* Stategen: replay block return early when zero diff
* Fix test setup
2023-11-17 18:19:05 +00:00
terence
8f5ae760ee
Add concurrency test for getting attestation state ( #13196 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-11-16 17:52:59 +00:00
terence
5ba91a5216
Add construct_generic_block_test
to build file ( #13195 )
...
* Add construct_generic_block_test test to build file
* Use the right require library
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-11-15 20:33:56 +00:00
terence
4e3419e870
Enhance Validation for Block by Root RPC Requests ( #13184 )
...
* blk-by-root-check-root
* Account for gap
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-11-14 17:13:01 +00:00
terence
ac06362baf
Add a helper for max request block ( #13173 )
...
* Add a helper for max request block
* Add test
* Use deneb fork epoch from config
* Fix comment
2023-11-14 05:50:51 +00:00
Radosław Kapka
28aa11c976
Config HTTP endpoints ( #13168 )
...
* Config HTTP endpoints
* error on unsupported type
* type assertion
2023-11-13 23:38:23 +00:00
Radosław Kapka
9b97f3fd92
Return 404 from eth/v1/beacon/headers
when there are no blocks ( #13185 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-11-13 18:06:26 +00:00
Radosław Kapka
0946b5853f
Pool slashings HTTP endpoints ( #13148 )
...
* Pool slashings HTTP endpoints
* e2e fix
* commit
* remove pb files
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-11-13 17:22:39 +00:00
Radosław Kapka
1f250f7e89
Validator HTTP endpoints ( #13167 )
...
* HTTP validator endpoints
* Sammy's review
* capitalize errors
* test fix
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-11-03 16:59:04 +00:00
Sammy Rosso
0f65e51d1e
Blob filesystem: Save Blobs ( #13129 )
...
* Add Save blob and tests
* Remove locks
* Remove test cleanup
* Fix go mod
* Cleanup
* Add checksum
* Add file hashing to fileutil
* Move test
* Check data when exists
* Add one more test
* Rename
* Gaz
* Add packaged level comment
* Save full sidecar + reviews
* Use path builder in test
* Use other BlobSidecar
* Cleanup
* Fix gosec
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-11-03 16:24:30 +00:00
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
7a6487b746
Remove pending blobs queue ( #13166 )
2023-11-03 07:07:43 -07:00
Terence
57eda1de63
Add RO blob sidecar ( #13144 )
2023-11-01 10:03:49 -07:00
Nishant Das
b56bf00682
Fix Pending Queue Deadline Bug ( #13145 )
...
* rearrange deadline
* naming
2023-10-31 06:40:41 +00:00
Potuz
dc9d34b41b
fix head slot in log ( #13139 )
2023-10-30 16:56:20 -03:00
Sammy Rosso
047613069e
Rename Blob retention epoch flag ( #13124 )
...
* Rename flag and add alias
* Update cmd/beacon-chain/flags/base.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
* Fix sentence
* Fix TestConfigureBlobRetentionEpoch
* Fix silly mistake
* Reviews
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
2023-10-30 17:35:31 +00: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
Potuz
2ea5bff9c0
Log when sending FCU with payload attributes ( #13137 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-30 12:30:20 +00:00
terencechain
c2433ff854
Update spectest and changed minimal preset for field elements ( #13090 )
...
* update trusted setup
* update dependencies
* Update workspace
---------
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-30 11:41:58 +00: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
james-prysm
10a89fef13
DEPRECTATION: Remove exchange transition configuration call ( #13127 )
...
* wip removing call to execution client for transition configuration
* updating bazel and execution engine proto
* removing more spots where the call was added
* removing unused metric
2023-10-27 15:43:00 +00:00
Nishant Das
56c65b8527
Return Error Gracefully When Removing 4881 Flag ( #13096 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-27 13:24:43 +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
terencechain
203dc5f63b
Check blob index duplication for blob notifier ( #13123 )
...
* Check blob index duplication for blob notifier
* Better locks and test
* Better locks and test
* Kasey's feedback
* Fix init
2023-10-27 03:26:34 +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
terencechain
cabf3476e7
Add context deadline for pending queue's receive block ( #13114 )
...
* Add context dead like for pending queue's receive block
* Use timeout
2023-10-25 19:40: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
terencechain
b608c9f711
Log blob's kzg commmitment at sync ( #13111 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-25 16:27:19 +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
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
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
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
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
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
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
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
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
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
Delweng
d7318ea485
beacon-chain/execution: fix a data race in testcase ( #13016 )
...
Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-10-11 03:37:25 +00:00
Radosław Kapka
e183d1dff4
Improvements to produceBlockV3
( #13027 )
2023-10-10 18:06:57 +00:00
Radosław Kapka
a3868e7fc6
Fix comment of BlobSidecarsBySlot
( #13019 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-10 15:54:29 +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
terencechain
39072e1b74
Check block exists in pending queue before requesting from peer ( #13013 )
2023-10-09 10:35:15 -07:00
terencechain
66011d5d9c
Check blob exists before requesting from peer ( #13012 )
...
* Check blob exists before requesting from peer
* Potuz's feedback
* Fix err
* Add index check
2023-10-09 22:55:24 +08:00
Delweng
419dbd57f7
beacon-chain/execution: no need to reread and unmarshal the eth1Data twice ( #12826 )
...
* beacon-chain/execution: no need to reread and unmarshal the eth1Data multitimes
Signed-off-by: jsvisa <delweng@gmail.com>
* beacon-chain/execution: rename to validPowchainData
Signed-off-by: jsvisa <delweng@gmail.com>
* beacon-chain/execution: no return eth1Data if error
Signed-off-by: jsvisa <delweng@gmail.com>
* beacon-chain/execution: return eth1data even if genstate is nil
Signed-off-by: jsvisa <delweng@gmail.com>
---------
Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-10-09 13:51:52 +08:00
Nishant Das
da6ae3c204
use read only head state ( #13014 )
2023-10-07 14:44:52 -05: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
c1c0cd040c
Fix Initial Sync PreProcessing ( #13007 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-05 15:18:53 +00:00
Nishant Das
ffaef83634
Build Blocks in Parallel Permanently ( #13008 )
2023-10-05 06:45:11 -07:00
terencechain
f9a40ef111
Handle wrapped invalid block error ( #12982 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-04 18:16:35 +00: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
Delweng
f812bdcf60
beacon-node/state: alloc 1more item for append case ( #12832 )
...
* beacon-chain/state/attenstation: alloc +1 items for append
Signed-off-by: jsvisa <delweng@gmail.com>
* beacon-chain/state/eth1: alloc +1 items for append
Signed-off-by: jsvisa <delweng@gmail.com>
* beacon-chain/state/misc: alloc +1 items for append
Signed-off-by: jsvisa <delweng@gmail.com>
* beacon-chain/state/participation: alloc +1 items for append
Signed-off-by: jsvisa <delweng@gmail.com>
* beacon-chain/state/validator: alloc +1 items for append
Signed-off-by: jsvisa <delweng@gmail.com>
* Add some benchmarks
* Evaluate append vs copy. Apply results
* fix copy issue
* revert copy changes from a5ba8d4352f647ad384981264cb6e0553481f23b
---------
Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
2023-10-03 20:41:55 +00:00
terencechain
58c0899676
Don't mark block as bad in validateBeaconBlock
for pending queue ( #12983 )
...
* Don't mark block as bad in validateBeaconBlock for pending queue
* Fix tests
2023-10-03 16:36:23 +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
Potuz
2c32a87d17
Tweak LastRoot to return head root ( #12985 )
2023-10-03 02:22:52 +00:00
Potuz
56f3dafb54
Lock forkchoice on late block tasks ( #12978 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-10-02 17:07:03 +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
Nishant Das
46b2442127
Do Not Calculate Churn With 0 Exits ( #12976 )
2023-10-02 01:46:58 +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
terencechain
5870536dca
Add a flag to configure blob retention epoch period ( #12941 )
...
* Add a flag to configure blob retention epoch period
* Add test
* Kasey's feedback
* More Kasey's feedback
* Fix lint and tests
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-27 14:59:52 +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
Roberto Bayardo
a46370f5bf
clean up code around setting geth client headers ( #11748 )
2023-09-26 15:15:28 +00:00
Nishant Das
42c192d97d
Fix More Racy Tests in Blockchain ( #12957 )
2023-09-26 09:17:11 +00:00
Potuz
3394bbe359
forkchoice return last canonical root of epoch ( #12954 )
...
* forkchoice return last canonical root of epoch
* move inside loop
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-25 16:36:43 +00:00
Nishant Das
70225186ff
Fix TestService_ReceiveBlock ( #12953 )
...
* fix tests
* radek's review
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-25 15:24:32 +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
Preston Van Loon
9a2c2470c6
db: Log a warning if the genesis state is smaller than 1Kb ( #12897 )
...
* Add warning with a small genesis state
* 1<<10 is 1Kb
* Add genesis state loading with hash information
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-23 15:29:15 +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
Nishant Das
7247b8bd3c
Fix Unhandled Error ( #12938 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-21 16:23:56 +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
terencechain
0e5d299d02
Remove unused pending blobs queue ( #12913 )
...
* Remove pending blobs queue
* Fix tests
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-09-20 17:00:01 +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
1a1a30591e
Handle Specific Blob Retrieval Error in DB ( #12889 )
...
* log db blob by root error
* Add comments
2023-09-19 15:29:13 +00:00
terencechain
f59307358e
Copy kzg commitments when using builder block ( #12923 )
2023-09-18 23:54:20 +00:00
Potuz
ef1f5e6dbe
remove unused function ( #12920 )
...
* remove unused function
* remove the actual method
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-18 21:30:30 +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
398f44bb53
fix it ( #12917 )
2023-09-18 22:30:34 +08: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
Potuz
6b915bab26
Dont process blocks twice ( #12905 )
...
* keep track of block being synced
* gazelle
* use maps
* shutup deepsource
* change godoc
* Radek's review
* Do not process block twice if it's already being processed
* add unit test
2023-09-15 20:11:02 +00:00
Potuz
dd73f762ec
keep track of block being synced ( #12903 )
...
* keep track of block being synced
* gazelle
* use maps
* shutup deepsource
* change godoc
* Radek's review
2023-09-15 17:13:13 +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
terencechain
9bb81537c8
feat: add blob arrival gossip metric ( #12888 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-14 21:35:18 +00:00
terencechain
1e29877406
don't save blob sidecar syncing to head if 0 ( #12892 )
2023-09-14 13:17:49 +00: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
kasey
a8793c9f21
Simplify DA check to avoid blob/block timing inconsistencies ( #12882 )
...
* collect unique idxs and avoid races
* fix init
* remove unused type (lint error)
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-12 15:32:21 +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
kasey
c0a01bb859
Allow equivocating blobs ( #12880 )
...
* add eq test
* allow blob at diff roots; defer pruning
* avoid deferred pruning controversy
* lint: already a slice
---------
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
2023-09-10 02:23:37 +00:00
kasey
ec954ec9a6
function to merge and validate saved/new blobs ( #12868 )
...
* function to merge and validate saved/new blobs
* Make it an error to call save with an empty slice
* rename func to match type, undo var rename
* satisfy deepsource; cheap len check before compare
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-08 18:33:51 +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
440cf32966
fix: correct blob sidecar count ( #12865 )
...
* fix: update blob sidecar count
* fix: use beacon config instead of network config
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-08 15:37:53 +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
kasey
ca88e59ee3
Tests for init-sync DA ( #12873 )
...
* test coverage for commitmentsToCheck
* test for WithinDAPeriod
* gaz
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
2023-09-08 10:47:34 +00:00
kasey
809a67ebcc
reject blocks with more commitments than spec ( #12863 )
...
* reject blocks with more commitments than spec
* add details of excess commitments to error
* good catch, linter
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
2023-09-07 20:21:03 +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