terencechain
ba9bbdd6b9
Style: minor cleanups to blockchain pkg ( #12640 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-20 10:17:35 +00:00
Nishant Das
945c76132c
Add Allocation Data To Benchmark ( #12641 )
...
* add more data
* terence's review
2023-07-20 08:49:17 +00:00
Radosław Kapka
056d3ff0cc
Fix GetValidatorPerformance endpoint ( #12638 )
2023-07-19 15:29:07 +00:00
Nishant Das
d4fd3c34de
Use GetPayloadBodies in our Engine Client ( #12630 )
...
* add it to our engine client
* lint
* add better debugging info
* temp debugging
* fix
* fix it
* pretty
* dumb bug
* Revert "pretty"
This reverts commit 6a6df3cc5f .
* Revert "fix it"
This reverts commit 73dc617bb0 .
* Revert "fix"
This reverts commit 3aecdaac6d .
* Revert "temp debugging"
This reverts commit ffcd2c61a0 .
* Revert "add better debugging info"
This reverts commit 96184e8567 .
* raul's comment
* regression test
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-07-18 15:46:23 +00:00
Sammy Rosso
4ac4d00377
Implement GetValidatorPerformance beacon chain client ( #12581 )
...
* Add http endpoint for GetValidatorPerformance
* Add tests
* fix up client usage
* Revert changes
* Implement GetValidatorPerformance
* refactor to reuse code
* Move endpoint + move ComputeValidatorPerformance
* Radek's comment change
* Add Bazel file
* Change endpoint path
* Add server for http endpoints
* Fix server
* Create core package
* Gaz
* Update + add broken test
* Gaz
* fix
* Fix test
* Create const for endpoint
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-18 08:57:54 +00:00
Radosław Kapka
ec2fda7ad9
getSyncCommitteeRewards API endpoint (#12633 )
2023-07-18 10:31:15 +02:00
Preston Van Loon
292f4de099
Update hermetic_cc_toolchain ( #12631 )
2023-07-17 14:50:45 +00:00
terencechain
145a485b75
fix(pcli): use state trie for HTR duration ( #12629 )
2023-07-15 20:39:58 -07:00
terencechain
7e474b7a30
fix: benchmark deserialize without clone and init trie ( #12626 )
...
* fix: benchmark deserialize without clone
* remove tree initialization
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-15 12:35:58 +00:00
Nishant Das
af0ee9bd16
use read-only validators ( #12628 )
2023-07-15 00:34:45 -07:00
Radosław Kapka
456ba7c498
Fix comments when receiving block ( #12624 )
2023-07-14 10:30:02 +00:00
Potuz
cd8847c53b
Add deserialization time in pcli benchmark ( #12620 )
2023-07-13 12:19:10 +00:00
Kaushal Kumar Singh
1894a124ea
Fix: Size of SyncCommitteeBits should be 64 bytes (512 bits) instead of 512 bytes ( #12586 )
...
* Fix: Size of SyncCommitteeBits should be 64 bytes (512 bits) instead of 512 bytes
* Updated unit test
2023-07-13 10:43:17 +00:00
Preston Van Loon
490bd22b97
Update go version to 1.20.6 ( #12617 )
2023-07-12 19:55:33 +00:00
terencechain
f23e720a16
fix: add local boost flag to main/usage ( #12615 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-12 12:15:25 +00:00
Raul Jordan
402799a584
Threadsafe LRU With Non-Blocking Reads for Concurrent Readers ( #12476 )
...
* add nonblocking simple lru
* method
* add in missing tests, fix panic
2023-07-12 17:57:52 +08:00
james-prysm
0266609bf6
bugfix : Eth-Consensus-Version header on response header ( #12600 )
...
* adding in custom header
* adding in parsing for middleware
* fixing casing
* add handling on error as well
* changing how error is handled for header
* changing how error is handled
* fixing casing
* Update beacon-chain/rpc/eth/beacon/blocks.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/beacon/blinded_blocks.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/beacon/blinded_blocks.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/beacon/blocks.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* fixing unit tests and review comment
* making some constants consistent in 1 file
* fixing missed blinded blocks
* fixing constants in custom handler tests
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-07-11 13:27:23 -05:00
Potuz
58df1f1ba5
lock before saving the poststate to db ( #12612 )
v4.0.7
2023-07-11 16:10:32 +00:00
Simon
cec32cb996
Append Dynamic Addinng Trusted Peer Apis ( #12531 )
...
* Append Dynamic Addinng Trusted Peer Apis
* Append unit tests for Dynamic Addinng Trusted Peer Apis
* Update beacon-chain/p2p/peers/peerdata/store.go
* Update beacon-chain/p2p/peers/peerdata/store_test.go
* Update beacon-chain/p2p/peers/peerdata/store_test.go
* Update beacon-chain/p2p/peers/peerdata/store_test.go
* Update beacon-chain/p2p/peers/status.go
* Update beacon-chain/p2p/peers/status_test.go
* Update beacon-chain/p2p/peers/status_test.go
* Update beacon-chain/rpc/eth/node/handlers.go
* Update beacon-chain/rpc/eth/node/handlers.go
* Update beacon-chain/rpc/eth/node/handlers.go
* Update beacon-chain/rpc/eth/node/handlers.go
* Move trusted peer apis from rpc/eth/v1/node to rpc/prysm/node; move peersToWatch into ensurePeerConnections function;
* Update beacon-chain/rpc/prysm/node/server.go
* Update beacon-chain/rpc/prysm/node/server.go
* fix go lint problem
* p2p/watch_peers.go: trusted peer makes AddrInfo structure by itself instead of using MakePeer().
p2p/service.go: add connectWithAllTrustedPeers function, before connectWithPeer, add trusted peer info into peer status.
p2p/peers/status.go: trusted peers are not included, when pruning outdated and disconnected peers.
* use readlock for GetTrustedPeers and IsTrustedPeers
---------
Co-authored-by: simon <sunminghui2@huawei.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-07-11 09:26:08 +00:00
Nishant Das
d56a530c86
Copy Bytes Alternatively ( #12608 )
...
* copy bytes alternatively
* test
2023-07-10 19:47:29 +08:00
Nishant Das
0a68d2d302
Fix Context Cancellation ( #12604 )
2023-07-08 08:50:04 +00:00
minh-bq
25ebd335cb
Fix bls signature batch unit test ( #12602 )
...
We randomly observe this failure when running unit test
go test -test.v -run=^TestSignatureBatch_AggregateBatch/common_and_uncommon_messages_in_batch_with_multiple_messages
=== RUN TestSignatureBatch_AggregateBatch
=== RUN TestSignatureBatch_AggregateBatch/common_and_uncommon_messages_in_batch_with_multiple_messages
signature_batch_test.go:643: AggregateBatch() Descriptions got = [test signature bls aggregated signature test signature bls aggregated signature test signature bls aggregated signature], want [bls aggregated signature test signature bls aggregated signature test signature bls aggregated signature test signature]
--- FAIL: TestSignatureBatch_AggregateBatch (0.02s)
--- FAIL: TestSignatureBatch_AggregateBatch/common_and_uncommon_messages_in_batch_with_multiple_messages (0.02s)
The problem is that the signature sort forgets to swap the description when a
swap occurs. This commit adds the description swap when swap occurs.
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-07-07 14:26:02 -05:00
Sammy Rosso
6a0db800b3
GetValidatorPerformance http endpoint ( #12557 )
...
* Add http endpoint for GetValidatorPerformance
* Add tests
* fix up client usage
* Revert changes
* refactor to reuse code
* Move endpoint + move ComputeValidatorPerformance
* Radek's comment change
* Add Bazel file
* Change endpoint path
* Add server for http endpoints
* Fix server
* Create core package
* Gaz
* Add correct error code
* Fix error code in test
* Adding errors
* Fix errors
* Fix default GRPC error
* Change http errors to core ones
* Use error status without helper
* Fix
* Capitalize GRPC error messages
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-07-07 14:49:44 +00:00
Nishant Das
085f90a4f1
Prune Pending Deposits on Finalization ( #12598 )
...
* prune them
* Update beacon-chain/blockchain/process_block_helpers.go
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-07-07 11:20:14 +08:00
dependabot[bot]
ecb26e9885
Bump google.golang.org/grpc from 1.40.0 to 1.53.0 ( #12595 )
...
* Bump google.golang.org/grpc from 1.40.0 to 1.53.0
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.40.0 to 1.53.0.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.40.0...v1.53.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
* Run gazelle and fix new gRPC API
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-07-06 20:11:43 +00:00
james-prysm
7eb0091936
Checkpoint sync ux ( #12584 )
...
* small ux improvement for checkpoint sync
* adding small log for ux update
* gaz
2023-07-06 16:46:55 +00:00
terencechain
f8408b9ec1
feat: add metric for ReceiveBlock ( #12597 )
2023-07-06 02:57:55 -07:00
Preston Van Loon
d6d5139d68
Clarify sync committee message validation ( #12594 )
...
* Clarify sync committee validation and error message
* fix test
2023-07-05 19:20:21 +00:00
terencechain
2e0e29ecbe
fix: prune invalid blocks during initial sync ( #12591 )
2023-07-05 08:33:33 -07:00
Potuz
e9b5e52ee2
Move consensus and execution validation outside of onBlock ( #12589 )
...
* Move consensus and execution validation outside of onBlock
* reviews
* fix unit test
* revert version change
* fix tests
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-07-05 21:12:21 +08:00
Nishant Das
2a4441762e
Handle Epoch Boundary Misses ( #12579 )
...
* add changes
* fix tests
* fix edge case
* fix logging
2023-07-05 09:23:51 +00:00
Nishant Das
401fccc723
Log Finalized Deposit Insertion ( #12593 )
...
* add log
* update key
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-07-05 08:07:38 +00:00
Radosław Kapka
c80f88fc07
Rename payloadHash to lastValidHash in setOptimisticToInvalid ( #12592 )
2023-07-04 17:03:45 +00:00
Kevin Wood
faa0a2c4cf
Correct log level for 'Could not send a chunked response' ( #12562 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-07-02 22:58:12 +00:00
Nishant Das
c45cb7e188
Optimize Validator Roots Computation ( #12585 )
...
* add changes
* change it
2023-07-01 02:23:25 +00:00
0xalex88
0b10263dd5
Increase validator client startup proposer settings deadline ( #12533 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-06-30 21:37:39 +00:00
Anukul Sangwan
3bc808352f
run ineffassign for all code ( #12578 )
...
* run `ineffassign` for all code
* fix reported ineffassign errors
* remove redundant changes
* fix remaining ineffassign errors
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-06-29 15:38:26 +00:00
james-prysm
d0c740f477
Registration Cache used by default and other UX changes for Proposer settings ( #12456 )
...
* WIP
* WIP
* adding in migration function
* updating mock validator and gaz
* adding descriptive logs
* fixing mocking
* fixing tests
* fixing mock
* adding changes to handle enable builder settings
* fixing tests and edge case
* reduce cognative complexity of function
* further reducing cognative complexity on function
* WIP
* fixing unit test on migration
* adding more tests
* gaz and fix unit test
* fixing deepsource issues
* fixing more deesource issues missed previously
* removing unused reciever name
* WIP fix to migration logic
* fixing loging info
* reverting migration logic, converting logic to address issues discussed on slack, adding unit tests
* adding test for builder setting only not saved to db
* addressing comment
* fixing flag
* removing accidently missed deprecated flags
* rolling back mock on pr
* fixing fmt linting
* updating comments based on feedback
* Update config/features/flags.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* fixing based on feedback on PR
* Update config/validator/service/proposer_settings.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* Update validator/client/runner.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* Update validator/db/kv/proposer_settings.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* adding additional logs to clear up some steps based on feedback
* fixing log
* deepsource
* adding comments based on review feedback
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-06-29 02:49:21 +00:00
Preston Van Loon
cbe67f1970
Update protobuf and protobuf deps ( #12569 )
...
* Update protobuf and protobuf deps
* gazelle
* enforce c++14
* bump to c++17 since practically all modern compilers support it
* update protobuf again to resolve mac issues, bump c++20
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-28 14:50:43 +00:00
Potuz
5bb482e5d6
Remove forkchoice call from notify new payload ( #12560 )
...
* Remove forkchoice call from notify new payload
* add unit test
2023-06-28 13:38:24 +00:00
terencechain
83494c5b23
fix: use diff context to update proposer cache background ( #12571 )
2023-06-27 20:31:54 +00:00
terencechain
a10ffa9c0e
Cache next epoch proposers at epoch boundary ( #12484 )
...
* Cache next epoch proposers at epoch boundary
* Fix new lines
* Use UpdateProposerIndicesInCache
* dont set state slot
* Update beacon_committee.go
* dont set state slot
* genesis epoch check
* Rm check
* fix: rm logging ctx
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* feat: move update to background
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-06-27 14:41:24 +00:00
Radosław Kapka
e545b57f26
Deflake cloners_test.go ( #12566 )
2023-06-26 15:43:00 +00:00
Preston Van Loon
c026b9e897
Set blst_modern=true to be the bazel default build ( #12564 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-26 15:06:33 +00:00
Preston Van Loon
a19044051f
Add hermetic_cc_toolchain for a hermetic cc toolchain ( #12135 )
...
* Add bazel-zig-cc for a hermetic cc toolchain
* gazelle
* Remove llvm
* remove wl
* Add new URLs for renamed repo
* gazelle
* Update to v2.0.0-rc1
* bump to rc2
* Some PR feedback
* use v2.0.0 from rc2
* Disable hermetic builds for mac and windows.
* bump bazel version, add darwin hack
* fix
* Add the no-op emtpy cc toolchain code
* typo and additional copy
* update protobuf and fix vaticle warning
* Revert "update protobuf and fix vaticle warning"
This reverts commit 7bb4b6b564 .
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-26 14:31:40 +00:00
Potuz
1ebef16196
use the incoming payload status instead of calling forkchoice ( #12559 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-22 18:09:02 +00:00
terencechain
8af634a6a0
feat: aggregate atts using fixed pool of go routines ( #12553 )
...
* feat: aggregate atts using fixed pool of go routines
* fix: deepsrc complains
* style: comment
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* feat: aggregate atts using fixed pool of go routines
* fix: deepsrc complains
* style: comment
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-06-22 17:48:42 +00:00
Potuz
884ba4959a
Remove unneded helper ( #12558 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-22 16:54:52 +00:00
terencechain
75e94120b4
fix(aggregator): remove single bit aggregation ( #12555 )
2023-06-22 09:34:25 -07:00
Sammy Rosso
20f4d21b83
Keymanager API: Add validator voluntary exit endpoint ( #12299 )
...
* Initial setup
* Fix + Cleanup
* Add query
* Fix
* Add epoch
* James' review part 1
* James' review part 2
* James' review part 3
* Radek' review
* Gazelle
* Fix cycle
* Start unit test
* fixing part of the test
* Mostly fix test
* Fix tests
* Cleanup
* Handle error
* Remove times
* Fix all tests
* Fix accidental deletion
* Unmarshal epoch
* Add custom_type
* Small fix
* Fix epoch
* Lint fix
* Add test + fix empty query panic
* Add comment
* Fix regex
* Add correct error message
* Change current epoch to use slot
* Return error if incorrect epoch passed
* Remove redundant type conversion
* Fix tests
* gaz
* Remove nodeClient + pass slot
* Remove slot from parameters
* Fix tests
* Fix test attempt 2
* Fix test attempt 2
* Remove nodeClient from ProposeExit
* Fix
* Fix tests
---------
Co-authored-by: james-prysm <james@prysmaticlabs.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-06-21 14:06:16 -05:00