Bharath Vedartham
33abe6eb90
add metric to check if validator is in next sync commitee ( #12650 )
...
* add metric to check if validator is in next sync commitee
* Update validator/client/validator.go
* Update validator/client/metrics.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com>
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com>
2023-08-01 08:25:10 +00:00
terencechain
c342c9a14e
fix: update nil check for new validator ( #12677 )
2023-08-01 04:13:57 +00:00
Radosław Kapka
a9b003e1fe
HTTP Beacon API: /eth/v1/validator/contribution_and_proofs
( #12660 )
...
* HTTP Beacon API: `/eth/v1/validator/contribution_and_proofs`
* add comment to invalid test case
* fix validation and test
* review
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-07-31 17:32:39 +00:00
Radosław Kapka
955175b7eb
Update server-side events dependency ( #12676 )
...
* Update server-side events dependency
* go sum
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-31 15:51:19 +00:00
Potuz
c17682940e
only handle epoch boundary on canonical blocks ( #12666 )
...
* only handle epoch boundary on canonical blocks
* do not fetch headstate
2023-07-31 12:07:09 -03:00
Nishant Das
db450f53a4
Fix Update Of Committee Cache ( #12668 )
...
* fix it
* sammy's comment
* fix tests
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-28 13:34:03 +00:00
terencechain
493905ee9e
feat: add state regren duration metric ( #12672 )
2023-07-27 19:33:25 +00:00
james-prysm
e449724034
Bugfix: proposer-settings edge case for activating validators ( #12671 )
2023-07-27 16:45:16 +00:00
terencechain
a44c209be0
feat: add metric for block gossip time ( #12670 )
2023-07-27 15:17:24 +00:00
terencechain
183e72b194
fix: update epoch + 1 ( #12667 )
2023-07-27 18:53:36 +08:00
Potuz
337c254161
update shuffling caches at epoch boundary ( #12661 )
...
* update shuffling caches at epoch boundary
* move span
* do not advance to a past slot
2023-07-26 18:46:18 +00:00
james-prysm
ec60cab2bf
Bugfix: Metrics adding fix pending validators balance ( #12665 )
2023-07-26 16:09:24 +00:00
Potuz
ded00495e7
Parallelize cl el validation ( #12590 )
...
* Parallelize EL and CL block validation
* fix by Nishant
2023-07-26 12:23:51 -03:00
Nishant Das
113172d8aa
Exit Initial Sync Early ( #12659 )
...
* add check
* fix test
2023-07-26 00:38:25 +00:00
Radosław Kapka
2b40c44879
Use the correct root in consensus validation ( #12657 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-07-25 12:04:08 +02:00
Radosław Kapka
fc193b09bf
HTTP Beacon API: /eth/v1/validator/aggregate_attestation
( #12643 )
...
* initial implementation
* it works
* tests
* extracted helper functions
* fix code
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-24 22:16:45 +00:00
Radosław Kapka
a0d53f5155
Register GetValidatorPerformance
as POST ( #12658 )
2023-07-24 21:17:08 +00:00
terencechain
ff3d2bc69f
fix: add mainnet withdrawals and bls spec tests ( #12655 )
2023-07-24 14:13:02 +00:00
Nishant Das
dd403f830c
clean up logging ( #12653 )
2023-07-24 20:29:50 +08:00
Raul Jordan
e9c8e84618
Integrate Read-Only-Lock-on-Get LRU Cache for Public Keys ( #12646 )
...
* use new lru cache
* update build
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-22 04:37:53 +00:00
james-prysm
9c250dd4c2
Builder gas limit fix default to 0 in some cases ( #12647 )
...
* adding fix for nethermind's findings on gaslimit =0 on some default setups
* adding in default gaslimit check
* fixing linting on complexity
* fixing cognitive complexity linting marker
* fixing unit test and bug with referencing
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-07-22 03:44:50 +00:00
Potuz
f97db3b738
Different parallel hashing ( #12639 )
...
* Paralellize hashing of large lists
* add unit test
* add file
* do not parallelize on low processor count
* revert minimal proc count
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-07-21 20:36:20 -04:00
Radosław Kapka
43378ae8d5
Use BlockProcessed
event in Beacon API ( #12625 )
...
* Use `BlockProcessed` event in Beacon API
* log error
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-20 17:26:34 +00:00
Radosław Kapka
2217b45e16
Return historical roots in Capella state ( #12642 )
...
* Return historical roots in Capella state
* test fix
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-20 17:00:05 +00:00
james-prysm
405cd6ed86
Publish blockv2 ssz ( #12636 )
...
* wip produce block v2 ssz
* adding functions for ssz processing
* fixing linting
* Update beacon-chain/rpc/eth/beacon/handlers.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* addressing review feedback
* fixing linting
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-07-20 16:26:40 +00:00
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 6a6df3cc5fd0c269e7917bc2b96f304498d6959e.
* Revert "fix it"
This reverts commit 73dc617bb0b653f882c79cd09c1c9df9af1e5453.
* Revert "fix"
This reverts commit 3aecdaac6d21cd43ae0db5f17a71f07bf1a5f928.
* Revert "temp debugging"
This reverts commit ffcd2c61a0dd38667e9555d284a9dd8f87972bfc.
* Revert "add better debugging info"
This reverts commit 96184e8567bdcf82b40c55838660443233105865.
* 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 )
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