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
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
Simon
cec32cb996
Append Dynamic Addinng Trusted Peer Apis ( #12531 )
...
* Append Dynamic Addinng Trusted Peer Apis
* Append unit tests for Dynamic Addinng Trusted Peer Apis
* Update beacon-chain/p2p/peers/peerdata/store.go
* Update beacon-chain/p2p/peers/peerdata/store_test.go
* Update beacon-chain/p2p/peers/peerdata/store_test.go
* Update beacon-chain/p2p/peers/peerdata/store_test.go
* Update beacon-chain/p2p/peers/status.go
* Update beacon-chain/p2p/peers/status_test.go
* Update beacon-chain/p2p/peers/status_test.go
* Update beacon-chain/rpc/eth/node/handlers.go
* Update beacon-chain/rpc/eth/node/handlers.go
* Update beacon-chain/rpc/eth/node/handlers.go
* Update beacon-chain/rpc/eth/node/handlers.go
* Move trusted peer apis from rpc/eth/v1/node to rpc/prysm/node; move peersToWatch into ensurePeerConnections function;
* Update beacon-chain/rpc/prysm/node/server.go
* Update beacon-chain/rpc/prysm/node/server.go
* fix go lint problem
* p2p/watch_peers.go: trusted peer makes AddrInfo structure by itself instead of using MakePeer().
p2p/service.go: add connectWithAllTrustedPeers function, before connectWithPeer, add trusted peer info into peer status.
p2p/peers/status.go: trusted peers are not included, when pruning outdated and disconnected peers.
* use readlock for GetTrustedPeers and IsTrustedPeers
---------
Co-authored-by: simon <sunminghui2@huawei.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-07-11 09:26:08 +00:00
Sammy Rosso
6a0db800b3
GetValidatorPerformance http endpoint ( #12557 )
...
* Add http endpoint for GetValidatorPerformance
* Add tests
* fix up client usage
* Revert changes
* refactor to reuse code
* Move endpoint + move ComputeValidatorPerformance
* Radek's comment change
* Add Bazel file
* Change endpoint path
* Add server for http endpoints
* Fix server
* Create core package
* Gaz
* Add correct error code
* Fix error code in test
* Adding errors
* Fix errors
* Fix default GRPC error
* Change http errors to core ones
* Use error status without helper
* Fix
* Capitalize GRPC error messages
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2023-07-07 14:49:44 +00:00
terencechain
75e94120b4
fix(aggregator): remove single bit aggregation ( #12555 )
2023-06-22 09:34:25 -07:00
james-prysm
6edbfa3128
multiple validator status - optimization ( #12487 )
...
* adding optmization
* addressing comments
* adding a test and fixing change in assignments.go
* making some changes based on review of the code
* removing irrelevant test
* changing formatting
2023-06-15 17:20:00 -05:00
Nishant Das
1862422db9
Remove Defer In ProposeGenericBlock ( #12524 )
2023-06-14 05:25:52 +00:00
terencechain
6896b41963
optimization(proposer rpc): move htr to after broadcast ( #12504 )
2023-06-09 06:32:29 -07:00
terencechain
cb65d8af96
Proposer RPC: make setExecutionData
better ( #12466 )
2023-05-31 06:06:32 -07:00
terencechain
f4d3939b62
Add logs for build block times ( #12452 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-05-24 13:37:26 +00:00
Radosław Kapka
abc81e6dde
Merge all block unblinding code into a single unblinder
struct ( #12240 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-05-23 11:38:52 +02:00
Nick Sullivan
5c00fcb84f
Fix numerous spelling error and typos in the log messages, comments, and documentation. ( #12385 )
...
* Minor typos and spelling fixes (comments, logs, & docs only, no code changes)
* Fix seplling in log message
* Additional spelling tweaks based on review from @prestonvanloon
2023-05-11 20:45:43 +00:00
Nishant Das
aef22bf54e
Add In Support For Builder in E2E ( #12343 )
...
* fix it up
* add gaz
* add changes in
* finally runs
* fix it
* add progress
* add capella support
* save progress
* remove debug logs
* cleanup
* remove log
* fix flag
* remove unused lock
* gaz
* change
* fix
* lint
* james review
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-05-11 11:10:29 -05:00
james-prysm
98f8ca4e34
reverting version check on bid header ( #12376 )
...
* adding reverting change
* adding additional tests and checks
* removing comment
* updating based on review suggestions
* fixing deepsource issues
* attempting to resolve dependencies
* removing dependency
* accidently flipped if statement with deepsource fix
* fixing unit test
2023-05-10 08:45:09 +08:00
Radosław Kapka
bd833e1c12
Use v1alpha1 server in block production ( #12336 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2023-05-04 19:52:41 +02:00
kasey
918129cf36
Replace statefeed Initialize ( #12285 )
...
* refactor initialization to blocking startup method
* require genesisSetter in blockchain, fix tests
* work-around gazelle weirdness
* fix dep gazelle ignores
* only call SetGenesis once
* fix typo
* validator test setup and fix to return right error
* move waitForChainStart to Start
* wire up sync Service.genesisWaiter
* fix p2p genesisWaiter plumbing
* remove extra clock type, integrate into genesis
and rename
* use time.Now when no Nower is specified
* remove unused ClockSetter
* simplify rpc context checking
* fix typo
* use clock everywhere in sync; [32]byte val root
* don't use DeepEqual to compare [32]byte and []byte
* don't use clock in init sync, not wired up yet
* use clock waiter in blockchain as well
* use cancelable contexts in tests with goroutines
* missed a reference to WithClockSetter
* Update beacon-chain/startup/genesis.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/blockchain/service_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* more clear docs
* doc for NewClock
* move clock typedef to more logical file name
* adding documentation
* gaz
* fixes for capella
* reducing test raciness
* fix races in committee cache tests
* lint
* add tests on Duration slot math helper
* startup package test coverage
* fix bad merge
* set non-zero genesis time in tests that call Start
* happy deepsource, happy me-epsource
* replace Synced event with channel
* remove unused error
* remove accidental wip commit
* gaz!
* remove unused event constants
* remove sync statefeed subscription to fix deadlock
* remove state notifier
* fix build
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: nisdas <nishdas93@gmail.com>
2023-05-03 04:34:01 +00:00
terencechain
5b8084b829
Proposer builds block in parallel. (Consensus vs Execution) ( #12297 )
...
* Proposer builds block in parallel. Cosensus vs Execution
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Use feature flag
---------
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2023-05-01 14:37:26 +00:00
james-prysm
83416f31a5
Unregister validator - fix behind feature flag ( #12316 )
...
* adding changes to blocks
* trying out expiration
* adding implementation, have WIP for tests
* adding unit tests for cache
* fixing bazel complaints
* fix linting
* adding safe check for unint type
* changing approach to safety check
* adding cache to bazel to test fixing build
* reverting bazel change and adding flag to usage
* implementing interface on mock to fix build error
* fixing unit tests
* fixing unit test
* fixing unit tests
* fixing linting
* fixing more unit tests
* fixing produce blinded block tests
* Update beacon-chain/cache/registration.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* resolving review comments
* fixing cache
* Update beacon-chain/cache/registration.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update beacon-chain/cache/registration.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* fixing time logic
* adding context to trace
* fix bazel lint
* fixing context dependency
* fix linting
* Update cmd/beacon-chain/flags/base.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* addressing review comments
* fixing deepsource issues
* improving the default settings
* fixing bazel
* removing irrelevant unit test
* updating name
---------
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2023-04-28 21:27:47 +00:00
Sammy Rosso
d382abe198
InsertFinalizedDeposits: return an error ( #12342 )
...
* InsertFinalizedDeposits: return an error
* Remove logging
* Radek' Review
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2023-04-28 20:59:09 +00:00
Radosław Kapka
34b6c8f333
Use mock v1alpha1 server in Beacon API's validator functions ( #12319 )
2023-04-26 18:59:29 +02:00
terencechain
08d6eccfb3
Change native execution value to Gwei Uint64 ( #12291 )
...
* Default value to uint64
* Fix spectest
* Fix tests
* Fix tests
* Fix tests
* Fix test
* Fix test
* Fix build
* Potuz feedback
* Add test
* Fix test
* Fix test
2023-04-22 00:44:28 +00:00
Nishant Das
97a32e1b72
Fix Status Checks For Double Deposits ( #12318 )
...
* fix status
* fix test
---------
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2023-04-21 12:08:55 +00:00
Potuz
300a827027
Use same signature for unrealized justified hash and justified hash ( #12314 )
...
* Use same signature for unrealized justified hash and justified hash
* fix build
2023-04-20 15:59:12 +00:00
Justin Traglia
4c916403e9
Enable dupword linter & fix findings ( #12271 )
...
* Enable dupword linter & fix findings
* Correct an incorrect fix
* Add nolint comment
* Add another nolint comment
* Revert unintended change to bazel version
---------
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-04-18 22:01:27 +00:00
Preston Van Loon
00001c8628
builder: add more tracing data for builder code paths ( #12302 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-18 19:20:42 +00:00
Justin Traglia
8428a79971
Enable whitespace linter & fix findings ( #12273 )
...
* Enable whitespace linter & fix findings
* Fix new finding
* fix new violation
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
2023-04-18 18:58:27 +00:00
Potuz
191b0c4652
Correctly use Gwei to compare builder bid value ( #12290 )
...
* Correctly use Gwei to compare builder bid value
* Minimal 1gwei for TestProduceBlindedBlock
---------
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2023-04-16 16:47:51 +08:00
Nishant Das
52d72c989e
Check that Builder Is Configured ( #12279 )
...
* add configured check
* tests
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-14 10:21:46 +00:00
Justin Traglia
9f7711e74a
Enable misspell linter & fix findings ( #12272 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-04-14 10:03:11 +00:00
terencechain
99eebe9bac
Fix capella unblind block with bls field ( #12263 )
2023-04-12 18:47:34 -07:00
Nishant Das
37182168e3
Fix Deadlock in StreamChainHead ( #12250 )
...
* fix it possibly
* buffer it more
* fix test
2023-04-07 15:41:31 -05:00
james-prysm
d257ef1742
Builder: fix nil panic edgecase ( #12236 )
...
* adding fix for buildervalue nil
* fixing linting
* changing based on review comment
* editing based on suggestions
* fixing unit test
* fixing linting
* fall back to local
* fix linting
* updating based on slack feedback
2023-04-06 14:19:51 -05:00
terencechain
2eb2f87913
Default to local payload should set block to not blind ( #12243 )
2023-04-05 23:29:41 +00:00
terencechain
35e3eeddf9
Add flag to boost local block value ( #12227 )
...
* Add builder bid fraction to compare with local block value and use builder bid if (bid * fraction) > local block value
* Prioritize local block construction over relay/builder block construction using a boost value for local block construction
* Refactor builder and local block value calculation to use percentage comparison
* Add a test for local with boost
* Use uint64
* Fix log
2023-04-04 14:58:56 +00:00
terencechain
17488028a6
Use justified hash as safe block hash when passing attribute ( #12196 )
...
* With attribute, use justified hash as safe block hash
* Use UnrealizedJustifiedPayloadBlockHash
* Cleanups
* Add test to forkchoice
* Block proposal
* Fix mock
* Fix test
* Fix rest of the tests
* Potuz feedback
* Fix test
* Use unrealized justified hash for regular fcu
2023-03-29 23:38:36 +00:00
Potuz
797cc360c7
Isolate forkchoice to blockchain package ( #12174 )
...
* Isolate Forkchoice to blockchain package
* Nishant's feedback
* Terence's feedback
* Nishant saving the day
2023-03-22 09:12:54 +08:00
terencechain
d17996f8b0
Update to V4
🚀 ( #12134 )
...
* Update V3 from V4
* Fix build v3 -> v4
* Update ssz
* Update beacon_chain.pb.go
* Fix formatter import
* Update update-mockgen.sh comment to v4
* Fix conflicts. Pass build and tests
* Fix test
2023-03-17 18:52:56 +00:00
Nishant Das
e58b66f76d
Fully Deprecate Vectorized HTR Flag ( #12148 )
...
* cleanup
* gaz
* fix tests
* remove unused hasher
* gaz
* fix last one
* fix tests
* fmt
2023-03-17 11:41:02 +00:00
terencechain
5c234c8c68
Mark GetChainHead deprecated ( #12128 )
...
* Mark GetChainHead deprecated
* Add deprecation notice to protobuf definition
* Update proto/prysm/v1alpha1/beacon_chain.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update beacon_chain.pb.go
---------
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-14 21:06:34 +00:00
Potuz
6d3ff65635
increase attempted reorgs at the right spot ( #12106 )
2023-03-09 15:06:46 +00:00
Nishant Das
4f38ba38b7
Update Libp2p ( #12096 )
...
* update deps
* add preston's fix
* fix build
* gaz
* test fixes
2023-03-08 23:52:51 +08:00
terencechain
b8a1bcdfe3
Circuit breaker: lower max builder epoch missed slots to 5 ( #12076 )
...
* Circuit breaker: lower max builder epoch missed slots to 5
* Change equality to >=
* Fix tests
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-05 19:10:41 +00:00
Potuz
93514de00f
Proposer head v5 ( #12075 )
...
* Use ShouldOverrideFCU in regular sync
* fix build
* fix tests
* add feature flag gate in updatehead
* fix rpc tests
* fix grcp tests
* deepsource
* add locks and reuse isNewProposer
* flip flag
* Fix ticker for late blocks
* implement get_proposer_head in GetBeaconBlock
* fix unit tests
2023-03-04 20:19:23 -03:00
Potuz
0a87210514
Forkchoice external locks v2 ( #12036 )
...
* write locks
* fix forkchoice tests
* blockchain locks
* lock on IsOptimistic
* use forkchoice instead of chaininfo within savehead
* Use forkchoice HasNode to check if a block is consistent with finality
* interface fix
* Use forkchoice HasNode to check if a block is consistent with finality
* interface fix
* fix tests
* remove VerifyFinalizedBlkDescendant
* don't write lock wrappers
* fix validateBeaconBlock
* Terence's review and more missing locks
* add lock for InForkChoice
* lock head on fillMissingBlockPayload
* fix lock on IsOptimisticForRoot
* fix lock in fillMissingBlockPayloadId
* extra comments
* lock proposerBoost on spectests
* nishant's review
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-03-02 09:10:52 -03:00
Radosław Kapka
ac4483417d
Redesign voluntary exits pool ( #11898 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-03-01 17:44:00 +01:00
Raul Jordan
11b90e1f63
Store Blinded Beacon Blocks by Default for New Prysm Databases ( #11591 )
...
* fresh database checks
* gaz
* fix up tests
* fix test
* build
* bellatrix pass tests
* fix flags
* gaz
* fix up rpc test
* gaz
* building
* refactor, remove boolean blindness
* kv blocks
* fix up ensure coverage
* e2e default
* add missing case
* nishant feedback:
* log
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-03-01 00:07:23 +00:00
james-prysm
7c3027801b
Prysm v4 - mark old endpoints for deprecation ( #11997 )
...
* updating some protos
* updating proto endpoints
* updating generated code
* fixing linting
* updating protos
* updating based on feedback. also removing unused storage protos
* adding in deprecation notice on the server functions
* Update proto/prysm/v1alpha1/beacon_chain.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update proto/prysm/v1alpha1/beacon_chain.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update proto/prysm/v1alpha1/health.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update proto/prysm/v1alpha1/validator.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update proto/prysm/v1alpha1/debug.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update proto/eth/v1/beacon_chain.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update proto/prysm/v1alpha1/health.proto
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update proto/eth/service/beacon_chain_service.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update proto/eth/service/beacon_chain_service.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update proto/eth/service/beacon_chain_service.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* addressing feedback
* rewording comment
* updating comments
---------
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.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-02-23 16:32:03 +00:00
terencechain
9ccfe17227
Check unblinded payload root before proposal ( #12026 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-22 02:28:59 +00:00
terencechain
da69af9b6e
Fix first bellatrix block when using mev-boost ( #12019 )
...
* Update head before block proposal
* Fix first bellatrix block when using mev-boost
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-22 00:42:51 +00:00
terencechain
0c52064d90
Engine API: fix blockValue endianness conversion ( #12018 )
2023-02-21 13:42:32 -08:00