Potuz
216cdd9361
Use finalized hash if payloadID cache misses ( #11653 )
2022-11-12 17:58:14 +00:00
terencechain
bf7e17db8f
Fix get RANDAO endpoint for underflow ( #11650 )
...
* Fix get randao end point for underflow
* Fix test
2022-11-11 17:58:25 +00:00
Nishant Das
2fef03414d
Fix ENR Serialization ( #11648 )
...
* fix it
* fix test
2022-11-10 12:03:55 +00:00
Potuz
37108e6ed8
Implement get_expected_withdrawals ( #11618 )
...
* Implement get_expected_withdrawals
* Fix config test and export method
* Radek's review
* start from a different index in a test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-11-07 14:11:16 +00:00
Radosław Kapka
53d4659654
GetRandao
Beacon API endpoint (#11609 )
...
* `GetRandao` Beacon API endpoint
* test optimistic execution
* review
* change epoch in test
2022-11-05 23:04:58 +00:00
terencechain
968dc5d1e8
Beacon api: get duties prune payload id cache ( #11568 )
...
* Beacon api: get duties prune payload id cache
* Fix complains and bad test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-10-22 22:43:57 +00:00
Radosław Kapka
6aab2b2b8d
/eth/v1/beacon/blinded_blocks/{block_id}
API endpoint (#11538 )
...
* proto + stub
* Add execution_optimistic to SSZ response
* implementation
* proto fix
* api middleware
* tests
* more tests
* switch from Errorf to Error
Co-authored-by: terencechain <terence@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-10-19 15:08:30 +00:00
Radosław Kapka
98b9c9e6c9
Handle unaggregated attestation event ( #11558 )
2022-10-18 10:34:25 -04:00
Radosław Kapka
cafe0bd1f8
Capella beacon state ( #11141 )
...
* fork
* types
* cloners
* getters
* remove CapellaBlind from fork
* hasher
* setters
* spec params, config tests
* generate ssz
* executionPayloadHeaderCapella
* proto state
* BeaconStateCapella SSZ
* saving state
* configfork
* BUILD files
* fix RealPosition
* fix hasher
* SetLatestExecutionPayloadHeaderCapella
* fix error message
* reduce complexity of saveStatesEfficientInternal
* add latestExecutionPayloadHeaderCapella to minimal state
* halway done interface
* remove withdrawal methods
* merge setters
* change signatures for v1 and v2
* fixing errors pt. 1
* paylod_test fixes
* fix everything
* remove unused func
* fix tests
* state_trie_test improvements
* in progress...
* hasher test
* fix configs
* simplify hashing
* Revert "fix configs"
This reverts commit bcae2825fcc8ba45a2b43d68ad0ab57f8eac8952.
* remove capella from config test
* unify locking
* review
* hashing
* fixes
Co-authored-by: terencechain <terence@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-10-12 11:39:19 -05:00
Radosław Kapka
eb49404a75
Expose structs from API Middleware ( #11547 )
2022-10-07 15:45:26 +00:00
Preston Van Loon
6bea17cb54
Update libp2p to support go 1.19 ( #11309 )
...
* Update libp2p to support go 1.19
* gaz
* go mod tidy
* Only update the minimum deps
* go mod tidy
* revert .bazelrc
* Update go-libp2p to v0.22.0 and update import paths (#11440 )
* Fix import paths
* Fix go-libp2p-peerstore import
* Bazel updates
* fix
* revert some comments changes
* revert some comment stuff
* fix dependency issues
* vendor problematic library
* use your brain
* remove
* tests
Co-authored-by: Marco Munizaga <marco@marcopolo.io>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-10-07 15:24:51 +08:00
Nishant Das
885dd2e327
Revert "More efficient way of computing skip slot cache key ( #11441 )" ( #11535 )
...
This reverts commit 0f0d480dbc
.
2022-10-04 14:13:11 +08:00
terencechain
0f0d480dbc
More efficient way of computing skip slot cache key ( #11441 )
...
* More efficient way of computing skip slot cache key
* Gazelle
* Add defensive check
* Fix test setup
* Disable skip slot cache
* Fix rpc tests for dependent root
2022-10-03 13:53:17 -04:00
terencechain
7f686a7878
Cache proposer slot index for GetProposerDuties ( #11521 )
2022-09-30 19:19:40 +02:00
kasey
805473cb38
Give forkchoice to stategen ( #11439 )
...
* add forkchoice to stategen.New, update everywhere
* conflict_1
* Fix proposer_bellatrix test
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-09-28 20:10:27 +00:00
Potuz
77fc45304b
Remove protoarray forkchoice ( #11455 )
...
* Remove protoarray forkchoice
* exported errors
* fix spectests
* fix tests
* conflict 1
* Preston's review
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-26 14:45:21 +00:00
terencechain
211c5c2c5c
Beacon api: produce block should skip mev-boost ( #11488 )
...
* Beacon api: produce block should skip mev-boost
* Update comments
* Additional test and comments
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_bellatrix.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Fix suggestion
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2022-09-23 18:45:26 +00:00
Yier
2ea66a8467
Remove unwanted wrapper of GRPC status error ( #11486 )
...
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-09-23 14:37:30 +00:00
terencechain
7720d98764
Beacon api: propoerly submit blind block ( #11483 )
...
* Beacon api: propoerly submit blind block
* Gazelle
* Fix SubmitBlockSSZ
* Update beacon-chain/rpc/eth/beacon/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>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-09-22 20:13:43 +00:00
james-prysm
20e99fd1f9
Improvement to Fee Recipient UX ( #11307 )
...
* updating mock
* adding new internal api
* adding generated code
* converting validator index to pubkey
* adding new API endpoint
* fixing mock related new API
* fixing unit tests
* preventing failure on startup, replacing with warnings
* improving log message
* changing warn log to error log
* fixing error formatting
* improve log on beacon node side on startup
* fixing deepsource issue
* improving logs
* fixing unit tests
* fixing more tests
* adding error check
* adding in new case for fee recipient to avoid conflicts on changing beacon node suggested fee recipient
* adding default fee recipient check for gas limit as well
* adding improved unit tests
* accidently checked in tmp folder
* adding more unit tests
* fixing gas limit unit test
* Update validator/rpc/standard_api_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/rpc/standard_api_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/rpc/standard_api_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/node/config.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/node/config.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update proto/prysm/v1alpha1/validator.proto
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/rpc/standard_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/client/runner.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* addressing comments
* updating proto generated files
* fixing linting and addressign review comments
* fixing unit test
* improve error handling
* accidently added tmp folder
* improving function error returns
* realizing i am wrapping error incorrectly
* fixing unit test
* addressing review comment
* fixing linting
* fixing unit test
* improving ux around enable builder
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-09-22 11:35:35 -05:00
Radosław Kapka
73443208a1
Remove proto state ( #11445 )
...
* Remove native state flag and use native state in spectests
* remove feature from tests
* use e2e config in slasher simulator
* use params.BeaconConfig in testutil
* use correct function
* use minimal config in go_test
* fix TestListValidators
* parameterize sync committee bits and aggregation bits
* Fix TestServer_ListIndexedAttestations_GenesisEpoch
(cherry picked from commit 254ab623dde08ae8886b152facdbbd8889ed79db)
* fix more tests
* fix even more
* moreeee
* aaaand more
* one more fix
* one more
* simplify TestGetAltairDuties_UnknownPubkey
* comment out problematic test
* one more fix
* one more
* aaaand one more
* another
* use fieldparams in HydrateBlindedBeaconBlockBodyBellatrix
* create new package for mainnet tests
* TestServer_GetBellatrixBeaconBlock
* change slashed validator index
* clear cache in reward_test.go
* deprecate flag
* create bazel mainnet target
* move attester mainnet test to mainnet target
* "fix" proposer tests
* use minimal config in TestServer_circuitBreakBuilder
* fix TestProposer_ProposeBlock_OK
* more fixes in validator package
* more fixes
* more fixes
* test code
* move TestProposer_GetBeaconBlock_BellatrixEpoch to minimal
* finally
* remove proposer_bellatrix_mainnet_test.go
* fix TestServer_GetBellatrixBeaconBlock_HappyCase
* fix TestServer_GetBellatrixBeaconBlock_BuilderCase
* Preston needs to fix this!
* Revert "Preston needs to fix this!"
This reverts commit b03d97a16e3080e254c7b19d7f193d3c600ca869.
* remove proto state tests
* fix migration tests
* static analysis fix
* review
* remove proto state
* swap state in tests
* fix BUILD file in /proto/testing
* remove metrics test with nil state
2022-09-16 18:17:46 -04:00
Potuz
9c2c665e92
Remove optimistic sync candidate check ( #11453 )
...
* Remove optimistic sync candidate check
Since we know we have merged and the chain has advanced 128 slots,
there's no possible forkchoice Poissoning attack anymore, removing the
check and allowing any block to be imported optimistically.
* fix test
* fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-16 16:05:30 +00:00
Radosław Kapka
0f0ab1327e
Deprecate native state flag ( #11268 )
2022-09-15 20:47:51 +02:00
terencechain
78cbe4dfe1
Fall back to uncached getPaylod if first time outs ( #11404 )
...
* Fall back to uncached getPaylod if first time outs
* Skip only deadline error. Unit test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-08 14:20:32 +00:00
Radosław Kapka
4d90afe944
Fixed size arrays in block interfaces and structs ( #11375 )
...
* Fixed size arrays in block fields
* test fix
* fmt
* fix fetcher test
* fix fuzz tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-06 14:30:16 +00:00
Potuz
29390516b0
fix forkchoice endpoint ( #11403 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-05 17:57:08 +00:00
Potuz
50f9d2bab8
Better log fee recipient mismatch ( #11395 )
...
* Better log fee recipient mismatch
Logs if the returned payload from the engine does not have the fee
recipient set in the validator.
Also warn the user if he's proposing a block with the burner fee
recipient address.
* fix tests
2022-09-05 14:13:51 +00:00
Potuz
08e6274c14
add forkchoice node timestamp to json response ( #11394 )
2022-09-04 19:52:39 +00:00
Potuz
fb9626fdd7
Feature flag to disregard deposit contract ( #11370 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-31 22:35:59 +00:00
james-prysm
52d48b328f
Improve Validator Index RPC Error Handling ( #11363 )
...
* adding in nil check for head
* adding changes based on feedback
* Update beacon-chain/rpc/prysm/v1alpha1/validator/server_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-08-31 16:42:49 +00:00
terencechain
166f8a1eb6
Log corerct header value ( #11354 )
...
* Log corerct header value
* gaz
* Go fmt
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-30 16:23:21 +00:00
Håvard Anda Estensen
4796827d22
Replace deprecated linter deadcode with unused ( #11334 )
...
* Replace deprecated linter deadcode with unused
* Ignore unused warnings
* Print filename and line number when linting fails
* Fix path
* Remove unused methods
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: terencechain <terence@prysmaticlabs.com>
2022-08-29 12:45:25 -04:00
Radosław Kapka
30cd158ae5
Move forkchoice dump to eth
namespace ( #11325 )
...
* protos
* server code
* rename v2 to v1 in endpoint
* middleware
* test fix
* test fix
* oops
* remove duplicated import
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-26 14:54:32 +00:00
Potuz
e1f56d403c
Restore forkchoice dump endpoint. ( #11312 )
...
* Restore forkchoice dump endpoint.
Only working on doubly-linked-tree.
* unit test
* revert proto changes
* protoarray
* Deepsource
* shut up!
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-25 23:37:23 +00:00
terencechain
436792fe38
Builder: filter header with 0 bid and empty tx root ( #11313 )
...
* Filter header with 0 bid and empty root
* Check nil
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-25 18:24:02 +00:00
terencechain
1d07bffe11
Beacon api: fix get blind block ( #11304 )
...
* Beacon api: fix get blind block
* Gaz
* Add back before bellatrix behavior
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-08-25 17:19:17 +00:00
james-prysm
1eb6025aaa
Beacon API: validator registration encoding bug ( #11299 )
2022-08-24 15:05:43 +00:00
james-prysm
0c32eb5c03
Beacon API: skip updating fee recipient if it's the same ( #11296 )
...
* adding in redudant check
* adding unit tests
* fixing linting
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-23 17:26:43 +00:00
terencechain
4b1cb6fa80
Fork aware beacon API end points ( #11274 )
...
* Make operation RPC fork aware
* Gaz
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-08-23 17:07:11 +00:00
Nishant Das
9cfb823cc6
Simplify List Attestations RPC Method ( #11292 )
...
* simplify
* fix tests
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-08-23 12:47:16 -04:00
terencechain
cb502ceb8c
Skip updating fee recipient if it's the same ( #11295 )
2022-08-23 10:54:38 -05:00
terencechain
e30471f1a0
Remove inclusion distance & slots ( #11265 )
2022-08-18 16:31:22 -07:00
terencechain
d815fa8f21
Remove deprecated eth endpoints ( #11251 )
...
* Remove deprecated eth endpoints
* Add back blockroot
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 19:20:34 +00:00
terencechain
515e7c959f
Remove deprecated RPC ListBlocks
( #11243 )
...
* Remove deprecated RPC ListBlocks
* Fix test
* Rm mock
* Go imports
* Rm unused
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 18:07:28 +00:00
terencechain
95430ddb57
Remove deprecated SubmitValidatorRegistration
( #11242 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 16:35:41 +00:00
james-prysm
2377d6d6ea
Register validator beacon api ( #11225 )
...
* adding in beacon API request Object
* fixed proto generation
* fixing protos
* adding new API logic and fixing linting
* adding work in progress unit test for validator registrations
* fixing unit test
* fixing linting
* fixing function name to match interface
* changing emptypb to empty.Empty
* fixing import complaint
* removing unused import
* fixing import
* Update beacon-chain/rpc/eth/validator/validator.go
Co-authored-by: terencechain <terence@prysmaticlabs.com>
* adding emptypb.Empty back in
* Update beacon-chain/rpc/eth/validator/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/rpc/eth/validator/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/rpc/eth/validator/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* adding validator registration API to apimiddleware
* fixing import
* fixing import format
* fixing protos
* fixing goimports
* removing duplicate import
* fixing proto
* fixing error message in test
Co-authored-by: terencechain <terence@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-08-17 11:41:51 +00:00
Radosław Kapka
1c180e5088
Protobuf cleanup ( #11096 )
...
* remove v2 from all messages that are not request/responses
* rename StreamBlocksAltair to StreamBlocks
* fix tests
* fix validator module
(cherry picked from commit 7f2263e90e80499a851c2e09605e2ef5dccb0df8)
# Conflicts:
# testing/mock/beacon_validator_client_mock.go
# testing/mock/beacon_validator_server_mock.go
* fix mocks
* update validator.pb.go
* Revert "rename StreamBlocksAltair to StreamBlocks"
This reverts commit 9c961c4e643e1c4d292f07acadab3c981e760fe4.
# Conflicts:
# proto/prysm/v1alpha1/validator.pb.go
# testing/mock/beacon_validator_client_mock.go
# testing/mock/beacon_validator_server_mock.go
* Revert "Auxiliary commit to revert individual files from a872c9d59dee869da5a9c7236c7ac34fcaf8d54c"
This reverts commit 89f19e4f15006c4a0efe593229abc433491e578e.
* Revert "Auxiliary commit to revert individual files from 9acbf7b0160626dae0d39c58fa0d8a3e48c203e0"
This reverts commit 398ecc9cef460c27e7fc92efe4df3fc9d3dbe566.
* update mocks
* fix build errors
* patch up
* fix
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 01:35:27 +00:00
Radosław Kapka
01614e7bfb
Add execution_optimistic
to getBlockV2
( #11226 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-16 19:31:59 +00:00
terencechain
8d3f474bfa
Misc builder fixes ( #11228 )
...
* Fix a few bugs
* Fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-16 19:10:40 +00:00
terencechain
2728b83f6a
Remove Execution Client Fallback and Make Providing an Execution Client Required ( #10921 )
...
* Starting
* Done
* Fix more tests
* Fix test
* Fix test
* fix up
* building
* requirement
* gaz
* builds
* rem deadcode
* fix
* fix up
* removed checked method
* Update service_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-08-16 17:22:34 +00:00