Potuz
0d3fb0a32b
lock head on fillMissingBlockPayload ( #12068 )
2023-03-01 13:09:10 +00: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
Radosław Kapka
e92b546a36
Return proposer reward from ProcessSyncAggregate
( #12047 )
2023-02-27 19:04:23 +01:00
Potuz
ec13d52f03
Remove VerifyFinalizedBlkDescendant ( #12046 )
...
* Use forkchoice HasNode to check if a block is consistent with finality
* interface fix
* fix tests
* remove VerifyFinalizedBlkDescendant
* fix validateBeaconBlock
2023-02-25 13:39:13 -03:00
Potuz
ae76240f83
Use forkchoice HasNode to check if a block is consistent with finality ( #12040 )
...
* Use forkchoice HasNode to check if a block is consistent with finality
* interface fix
* fix tests
2023-02-23 21:21:34 +00:00
Radosław Kapka
096cf7b8c1
Test invalid change inclusion in blstoexec
pool ( #12037 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-23 17:18:37 +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
Radosław Kapka
75e8f85ba5
Handle EL offline/unavailable in getSyncingStatus
( #12031 )
...
* Handle EL offline/unavailable in `getSyncingStatus`
* fix type
* better name
* test fix
2023-02-23 12:09:56 +00:00
Nishant Das
8d82ca08ab
Allow Testing Of Withdrawals On E2E Mainnet ( #12027 )
2023-02-23 12:04:53 +01:00
Potuz
98d2d5f324
implement get_proposer_head ( #12022 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-22 16:40:01 +00:00
Nishant Das
a4579398cb
Add Clarifying Comments for Withdrawal Functions ( #12028 )
2023-02-22 11:00:36 +00:00
Pedro Gomes
094ff877f6
Fix NPE, ensure the listener is available ( #11946 )
...
* Fix NPE, ensure the listener is available
* Added test
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-02-22 06:53:09 +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
Manuel Caspari
bf25b34ac1
Fix error handling when using BatchCall ( #11960 )
...
* fix error handling when using BatchCall
* fix typo
* simplify code
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-02-22 01:42:43 +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
Potuz
dc5cf88243
Do not check signatures when packing BLS changes ( #12021 )
...
* Do not check signatures when packing BLS changes
* gaz
* fix test
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com>
2023-02-21 22:18:54 +00:00
terencechain
0c52064d90
Engine API: fix blockValue endianness conversion ( #12018 )
2023-02-21 13:42:32 -08:00
Potuz
166f7119ec
Implement should_override_forkchoice_update ( #11981 )
...
* Implement should_override_forchoice_update
* add tests
* remove unused exported function
* go mod tidy
* fix go mod
* Fix go mod tidy
* Fix context import
* mod tidy
* fix test
* Terence's review
* fix test
---------
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2023-02-18 07:37:03 -03:00
Potuz
b687d29d02
Forkchoice interface cleanup ( #12010 )
...
* remove AllTipsAreInvalid
* rename InsertOptimisticChain
* remove proposer boost interface
* remove HasParent
2023-02-17 17:36:52 +00:00
terencechain
2839f2c124
Proposer compare withdrawal roots ( #11977 )
...
* Proposer use highest value payload vs header
* Default to interface for changes
* Clean up
* Clean up
* Clean up
* Capella condition
* Proposer compare withdrawal roots
* Add unit test
* Fix test
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-17 15:20:12 +00:00
Potuz
3d0ecdff3f
Fix forkchoice endpoint path ( #11986 )
...
* fix endpoint path
* update protos
* fix double import
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-17 13:45:25 +00:00
terencechain
481d24cb1b
Update head before block proposal ( #11992 )
...
* Update head before block proposal
* Move before opt sync
* Fix test
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-17 08:41:26 +00:00
terencechain
a6dd561b9d
Process blind withdrawals ( #11995 )
...
* Update head before block proposal
* fix e2e runs
* Can process blind withdrwals
* Rm bad change
* Should be in process payload header
* Version check
* Compare roots
* Typo
* Remove redundant checks
* Add tests
* Rm errors
---------
Co-authored-by: nisdas <nishdas93@gmail.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-17 15:49:30 +08:00
Potuz
c7f0a94b19
Remove state balance cache ( #11964 )
...
* Remove state balance cache
* remove unused metrics
* add missing balance update
* add comment about locks
* update balance only when updataing the justified checkpoint on unrealization
* update checkpoint balances at launch
* fix unit tests
* fix remaining test
* review
* fix build file
* fix test
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-02-15 14:19:46 +00:00
terencechain
f49720209e
Utilize head only state on rpc endpoints ( #11950 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2023-02-14 19:57:11 +00:00
Potuz
fa4c9beb13
Only pack attestations and deposits if no err ( #11987 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-14 06:12:59 +00:00
Nishant Das
449d767294
Fix Bandwith Limiter Panic ( #11988 )
2023-02-14 05:44:20 +00:00
Nishant Das
63186c8b0f
Fix Batch Requesting Of Headers ( #11982 )
...
* fix bug
* remove
2023-02-11 01:38:13 +00:00
terencechain
e136e10ebb
Proposer use highest value payload vs header ( #11967 )
2023-02-10 11:36:19 -08:00
Sammy Rosso
81b29ea2d8
Update produce block funcs to support Capella ( #11959 )
...
Co-authored-by: rkapka <rkapka@wp.pl>
2023-02-10 17:20:38 +01:00
Nishant Das
76ed634f73
Capella E2E ( #11951 )
...
* save changes
* fix build
* fix build
* fix signatures
* fix
* fix
* finally fix it
* mainnet
* deps
* make it 10
* back to phase0
* fix build
* gofmt
* etherbase
* rm logs
* build
* james review
* fix yaml
* Update testing/endtoend/evaluators/fork.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* radek's review
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-02-10 14:19:15 +08:00
terencechain
d4f3257f60
Rename block interfaces ( #11975 )
2023-02-09 10:23:32 +01:00
terencechain
e1f7c52e6b
Add and use SignedBeaconBlockWriteOnly
( #11968 )
2023-02-08 08:39:14 -08:00
Potuz
0d6e8718fd
Aditya's PR 18 ( #11945 )
...
* Aditya's PR 18
This PR implements PR18. There is still a missing piece which is
consistency of head with finalized checkpoint. I will think on ways to
enforce this.
* prune finalized incompatible
* don't check finalization on viable for head
* unit tests fixes
* gazelle
* remove finalized epoch from viableForHead
* remove finalized epoch from leadsToViableHead
* use non-slashed indices
* function rename
* lint fixes
* lint fixes
* lint fixes
2023-02-05 09:40:07 -03:00
Radosław Kapka
dc4440abe7
Small cleanup ( #11963 )
2023-02-02 17:24:09 +00:00
terencechain
23c4cc0249
Prune canonical attestations when head changes ( #11771 )
...
* Only prune canonical attestations
* Feedback from potuz
* Merge conflict
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-02 16:53:01 +00:00
terencechain
9e15316351
Enhance block arrival delay metrics by adding a gauge ( #11897 )
...
* Enhance block arrival delay metrics
* Remove histograms
* Revert histogram
* Rm new line
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-02-02 15:43:25 +00:00
Potuz
0d01debe9a
reuse code from stategen in the justified balance cache ( #11961 )
...
* add balance cache tests to testsuite
* reuse code from stategen in the justified balance cache
* remove state getters from the balance cache
* fix unit tests
* rebase on 11962
* unused error
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-02 14:53:08 +00:00
Potuz
1b11a9672a
add balance cache tests to testsuite ( #11962 )
2023-02-02 13:41:44 +00:00
Potuz
2579242669
modify slice in place ( #11956 )
...
* modify slice in place
* unit test
* comment explaning function
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com>
2023-02-02 00:01:46 +00:00
terencechain
529d48d0c5
Capella: use builder ( #11906 )
2023-02-01 08:24:51 -08:00
terencechain
59cb9f0dd7
Use head state only for bls messages broadcast ( #11949 )
...
* Use head state only for bls messages broadcast
* Fix build
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-02-01 06:01:10 +00:00
Radosław Kapka
b10e59a144
Add finalized
flag to API responses ( #11947 )
...
* server code
(cherry picked from commit fc68e6e78f2a84c66cd6c4db2a482cccdaf487d5)
* tests
* middleware
* more tests
* fix one more test
2023-01-31 17:58:16 -06:00
terencechain
c070283bf1
Call FCU with attribute on non head block ( #11919 )
...
* Call FCU with attribute on non head block
* Fix condition
* Filer save head
* Refactor
* Rm
* Add tests
* Fix race test
* Potuz feedback
* Reorder r != currentHeadRoot
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-31 19:17:16 +00:00
Nishant Das
3f67818a65
Utilize Read Only Head State ( #11932 )
2023-01-31 10:41:53 -08:00
Potuz
c2194c57b7
Rate limit broadcasting of BLS changes at the fork and at RPC endpoint ( #11936 )
2023-01-31 09:31:22 -08:00
int88
bd83018e76
delete from s.nodeByPayload as well when pruneFinalizedNodeByRootMap ( #11813 )
...
* delete from s.nodeByPayload as well when pruneFinalizedNodeByRootMap
* regresstion test
* add different payload node
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-01-31 10:53:29 +00:00
terencechain
39114e6817
Use copied head state for metrics reporting ( #11933 )
...
* Use copied head state
* Move metrics to the end
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-31 10:07:27 +00:00
Raul Jordan
950d0c0282
Update Bazel Grail Toolchain SHA and Protect Digest Map with Lock ( #11939 )
...
* lock digest map
* imports
* toolchain update
2023-01-30 22:40:48 +00:00
Nishant Das
e8c25effb0
Cache Fork Digest Computation ( #11931 )
2023-01-29 16:07:50 +00:00