Radosław Kapka
cb02a6897d
Update block Beacon APIs to Capella ( #11706 )
...
* proto+ssz
* refactor GetBlindedBlockSSZ
(cherry picked from commit 97483c339f99b0d96bd81846a979383ffd2b0cda)
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
(cherry picked from commit 9e4e82d2c55e09be7568b28eaa33cdd1141445f4)
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
* add Capella version
(cherry picked from commit 5d6fd0bbe663e5dd16df5b2e773f68982bbcd24e)
(cherry picked from commit 82f6ddb693ac9e8b4336b30fae724e478b9e8ec0)
* support SSZ lol
(cherry picked from commit 52bc2c8d617ac3e1254c493fa053cdce4a1ebd63)
(cherry picked from commit d7d70bc25b3ee8acbea10aaf77d26cd1f8c5f26f)
* update withdrawals proto
* refactor and test GetBlockV2
(cherry picked from commit c1d4eaa79d4df04bd284ec65cf261b6f5f260a97)
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
* refactor and test GetSSZBlockV2
(cherry picked from commit fbc4e73d31c2f68d55d1e2bb8e7f2d8c7458c0a0)
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
* test other functions
(cherry picked from commit 31d4a4cd1165b882d823696e5983ac6635262ec2)
* move stuff to blinded_blocks.go
(cherry picked from commit 0a9e1658ddb28f45ae5c1cb9fc2703cbb8c6708d)
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
* fix migration code
* add Capella to SubmitBlock
* custom hooks
* missing structs
* fix tests
* fix tests
* review
* fix build issues
* replace ioutil with io
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-15 23:42:07 +00:00
Radosław Kapka
1fbb3f3e51
Reconstruct full Capella block ( #11732 )
...
* Merge branch 'reconstruct-capella-block' into capella
(cherry picked from commit b0601580ef1c876a79074a477556ecbeeef49178)
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
# proto/engine/v1/json_marshal_unmarshal.go
* remove unneeded test
* rename methods
* add doc to interface
* deepsource
(cherry picked from commit 903cab75eea384c75018e3da4fc45b471ebaf0ea)
# Conflicts:
# beacon-chain/execution/testing/mock_engine_client.go
* bzl
* fix failing tests
* single ExecutionBlockByHash function
* fix engine mock
* deepsource
* reorder checks
* single execution block type
* update tests
* update doc
* bytes test
* remove toWithdrawalJSON
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-14 13:42:48 +00:00
Patrice Vignola
fa01ee5eba
Add REST implementation for Validator's ProposeBeaconBlock
( #11731 )
...
* WIP
* WIP
* WIP
* Add tests
* WIP
* Add more tests
* Address DeepSource errors
* Remove unused param
* Add more tests
* Address PR comments
* Address PR comments
* Fix formatting
* Remove unused parameter
* Fix TestLittleEndianBytesToBigInt
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-12-12 10:39:51 +00:00
terencechain
e2ffaf983a
Add minimal withdrawal size ( #11658 )
...
* Add selector with minimal withdrawal size
* @potuz's feedback, Add PayloadAttribruteV2
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-11-22 16:05:37 +00:00
Potuz
de73baa4a7
Update 3068 ( #11656 )
...
* rename last_withdrawal_validator_index
* Update Capella methods to Specs #3068
* Add missing renames
* rename minimal state
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-11-12 18:38:21 +00:00
terencechain
09e117370a
Flatten blob to an array ( #11614 )
...
* Flatten blob to an array
* Rename data back to blob
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com>
2022-11-04 15:03:25 +00:00
Potuz
bb09295072
Remove withdrawal Queue ( #11610 )
2022-11-03 16:55:44 +00:00
terencechain
86e855d499
Rename blob.blob
to blob.data
( #11601 )
2022-11-02 14:21:03 +01:00
terencechain
2142b13a41
Add 4844 containers to protobuf ( #11596 )
2022-10-31 12:11:40 -07:00
terencechain
c24016f006
Add validator index with Withdrawal pb ( #11563 )
...
* Add validator index with Withdrawal pb
* Update BUILD.bazel
* Fix test
* Better tests
2022-10-22 20:54:50 +00: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
terencechain
d860daff75
clean up: godoc comments, redundant castings and more ( #11428 )
...
* clean up: Godoc comments, redundant castings and more
* Fix assertion check
* Update beacon-chain/forkchoice/doubly-linked-tree/forkchoice.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update beacon-chain/forkchoice/protoarray/store.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2022-09-12 14:03:20 +00:00
Raul Jordan
1062f5fe4d
Fix Proto Generation Scripts and Regen Protos With V3 Bindings ( #11227 )
...
* proto gen fix
* regen protos and ssz bindings
* regen
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-16 19:52:24 +00:00
Raul Jordan
d077483577
Add V3 Suffix to All Prysm Packages ( #11083 )
...
* v3 import renamings
* tidy
* fmt
* rev
* Update beacon-chain/core/epoch/precompute/reward_penalty_test.go
* Update beacon-chain/core/helpers/validators_test.go
* Update beacon-chain/db/alias.go
* Update beacon-chain/db/alias.go
* Update beacon-chain/db/alias.go
* Update beacon-chain/db/iface/BUILD.bazel
* Update beacon-chain/db/kv/kv.go
* Update beacon-chain/db/kv/state.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go
* Update beacon-chain/sync/initial-sync/service.go
* fix deps
* fix bad replacements
* fix bad replacements
* change back
* gohashtree version
* fix deps
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-08-16 12:20:13 +00:00
Radosław Kapka
eb066da5c2
Capella changes to protobufs ( #11128 )
2022-07-28 16:19:36 +00:00
terencechain
44ae300b04
Use the correct withdrawal ( #11123 )
...
* Use the correct withdrawal
* Move withdrawal to engine.proto
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>
2022-07-28 13:56:30 +00:00
Radosław Kapka
e5ab259ee1
Capella changes to protobufs ( #11119 )
...
* manual proto changes
* generated files
* missed comment
2022-07-27 18:39:15 +02:00
terencechain
9149dc2aae
Run ./hack/update-go-pbs.sh
( #11107 )
2022-07-26 16:45:16 +00:00
Nishant Das
2d6b157eea
Disable Fuzz Targets ( #11060 )
...
* add changes
* fix fuzzer again
* is fixed
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-07-26 16:19:30 +08:00
Potuz
7aee67af90
Withdrawals: containers and process BLS to ETH1 changes ( #11090 )
...
* add proto for withdrawal containers
* process BLSToExecutionChange
* unit tests
* go fmt
* gaz
* unused error
* Fix import error
* Radek's review
* failed test
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-25 14:10:18 +00:00
Nishant Das
d41805a39c
Fuzz Remaining Engine Objects ( #11049 )
...
* add new fuzz tests
* add fixes
* remove test
* add more checks
* remove comment
2022-07-14 11:33:32 -04:00
Nishant Das
b0e15f3c8f
Fix FuzzForkChoiceResponse Crash ( #11043 )
2022-07-13 09:47:14 +00:00
Raul Jordan
d8f9750387
Only Unmarshal Full Tx Bodies in ExecutionBlock JSON Unmarshaler ( #11006 )
...
* full tx unmarshaling fixed
* prefix check
2022-07-07 23:08:44 +00:00
Raul Jordan
b67c885995
Major Simplification of JSON Handling for Execution Blocks ( #10993 )
...
* no more execution block custom type
* simpler json rpc data unmarshaling
* simplicify
* included hash and txs fix
* all tests
* pass
* build
* mock fix
* attempt build
* builds
* build
* builds
* pass
* pass
* build
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-06 22:06:00 +00:00
Nishant Das
ce277cb388
Add Fuzzing For JSON Marshalling/Unmarshalling Methods ( #10995 )
...
* modify it
* add gaz
* revert
* deps
* revert change
* fix it
2022-07-06 15:15:14 +00:00
Radosław Kapka
f376f3fb9b
Integrate better fastssz validation errors into Prysm ( #10945 )
...
* update dep
* regenerate SSZ, update test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-29 16:05:56 +08:00
Radosław Kapka
b82e2e7d40
Use prysmaticlabs/fastssz
as a direct dependency ( #10941 )
...
* Update dependency
* Regenerate SSZ files
* fix BUILD files
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-28 13:03:24 +00:00
Radosław Kapka
31f96a05b3
Update fastssz dependency in deps.bzl
( #10939 )
2022-06-27 18:32:38 +02:00
terencechain
95c140b512
Validator client: add submit registration ( #10785 )
...
* Add client registration methods
* Mocken
* Run mockgen
* Fix bad tests
* Fix rest of the tests
* Tests
* Fix time tests
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>
2022-06-01 01:53:25 +00:00
terencechain
3d3890205f
Remove invalid terminal block error code ( #10646 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-15 03:14:44 +00:00
Raul Jordan
84916672c6
Remove Eth2-Types Dependency in Prysm ( #10578 )
...
* replace eth2 types
* replace protos
* regen proto
* replace
* gaz
* deps
* amend
* regen proto
* mod
* gaz
* gaz
* ensure build
* ssz
* add dep
* no more eth2 types
* no more eth2
* remg
* all builds
* buidl
* tidy
* clean
* fmt
* val serv
* gaz
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2022-04-29 10:32:11 -04:00
Radosław Kapka
957d853a2f
Blinded block APIs ( #10331 )
2022-04-25 17:42:58 +02:00
terence tsao
cbe54fe3f9
Handle nil execution block response when logging TTD ( #10502 )
2022-04-13 19:47:04 -07:00
terence tsao
f44c99d92a
Add blinded beacon block protobufs and wrappers ( #10473 )
...
Co-authored-by: rkapka <rkapka@wp.pl>
2022-04-05 14:57:19 +02:00
terence tsao
7516bc0316
Fix execution block's base fee endianess marshal/unmarshal ( #10459 )
2022-03-30 10:17:18 -07:00
terence tsao
8449d24ed0
Fix BaseFeePerGas
endianess ( #10376 )
...
* Fix base fee endianess and add more test entropys
* Update json_marshal_unmarshal_test.go
* Update setters_test.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-16 22:12:08 +00:00
Raul Jordan
12ba8f3645
Renaming Random in ExecutionPayloads to PrevRandao ( #10283 )
...
* rename proto
* p header
* regen
* regen ssz
* fix randao
* random name changes
* bazel builds
* bt
* incorrect prev randao
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-26 03:47:16 +00:00
terence tsao
a55fdf8949
Use type string for total_difficulty
( #10265 )
...
* Use string for difficulty
* fix go
* fix test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-02-21 14:03:12 +00:00
terence tsao
49f989e342
Fix base fee endianness ( #10253 )
2022-02-16 17:48:55 +00:00
terence tsao
90a15b2fbe
Handle PayloadStatus
UnmarshalJSON
nil cases ( #10249 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-16 01:24:50 +00:00
Raul Jordan
0f58c9a925
Exchange Transition Configuration for Engine API ( #10248 )
...
* transition proto
* gen pb
* builds
* impl transition config
* begin tests
* transition config messed up
* amend proto
* use str
* passing
* gaz
* config
* client test
* pb
* set to 0
* rem log
* gaz
2022-02-16 00:56:23 +00:00
terence tsao
6311cfd8ab
Fix payloadStatusJSON
fields ( #10246 )
...
* Use pointers
* Use pointers
* Use pointers
* Update json_marshal_unmarshal.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-15 23:26:58 +00:00
terence tsao
72aa782849
PayloadStatus
reserve 0 enum (#10247 )
...
* Leave 0 as UNKNOWN
* Leave 0 as UNKNOWN
2022-02-15 20:32:39 +00:00
terence tsao
9dfb385160
Pad fields to correct length ( #10237 )
...
* Pad fields to correct length
* Use constants
* builds
* Fix test
* Update BUILD.bazel
* tests
* passing
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-12 01:58:09 +00:00
Raul Jordan
b1774efeb7
Fix JSON Marshal/Unmarshal for Execution Block ( #10238 )
2022-02-12 01:06:28 +00:00
Raul Jordan
7b5a821c81
Implement Execution Engine Client ( #10185 )
...
* add in fixtures
* handle real fixtures
* marshaling issues
* ensure error handling works
* begin http client test
* custom type marshaling
* gaz
* custom type
* marshalers
* builds
* builds
* add to build file
* regen
* only root types
* bytes hash
* regen
* bytes hash
* regen
* regen
* alias magic
* revert proto
* more alias magic
* revert build files
* regen
* define marshal methods
* tests passing
* hexbytes
* rem
* rem
* comment
* gaz
* data
* fix conf
* http tests
* sync
* client tests passing
* deepsource
* gaz
* item
* exec block by hash
* begin tests
* http tests passing
* payload id bytes
* proper json encode decode for payload id
* gaz
* proper marshal
* merge engine client
* use big ints
* passes
* confirmed passing
* add in functional methods
* deepsource
* pb
* Update beacon-chain/powchain/engine-api-client/v1/client_test.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* latest
* tests passing again
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-09 20:54:56 +00:00
Raul Jordan
3bea0e7896
ExecutionBlock Protobuf Type for the Merge ( #10201 )
...
* exec block
* exec block
* base fee
* regen
* exec block test
* fmt
* bytes for big ints
* engine pb
* passing
* add size
* bytes
* size
* size bytes
* passing
2022-02-08 18:06:02 +00:00
Raul Jordan
d5eb8392b6
Engine API Client Custom Marshaling ( #10188 )
...
* custom type marshaling
* gaz
* custom type
* marshalers
* builds
* builds
* add to build file
* regen
* only root types
* bytes hash
* regen
* bytes hash
* regen
* regen
* alias magic
* revert proto
* more alias magic
* revert build files
* regen
* define marshal methods
* tests passing
* hexbytes
* rem
* rem
* comment
* gaz
* data
* builds
* passing
2022-02-07 17:13:01 +00:00
Raul Jordan
4322185d80
Use Execution Payload Defined in Engine V1 Namespace ( #10170 )
...
* payload use
* incl
* cloners
* regen pb
* gen ssz
* use proper payload
* broken imports
* build
* state
* builds
* proper engine
* builds
* fmt
* baz
* ssz
* baz
* fmt
* regen ssz
* receipts root
* regen pb
* ssz
* receipts root
* ci lint
* proto
* test pkg
* bazel
2022-02-02 03:30:35 +00:00
Raul Jordan
eef2122a9e
Engine API Protobuf Definitions ( #10150 )
...
* define proto types for engine api
* proto lint
* prettify
* build bazel
* generated pb
* txs field
* regen
* ssz gen marshal
* fastssz
* ssz
* fmt
* json marshal unmarshal custom
* exec json tests
* passing tests
* deepsource
* gaz
* gaz
* deps
* ssz max
* regen proto
* regen ssz
2022-02-01 01:47:34 +00:00