realbigsean
a61f35272c
fix compiling
2022-11-24 08:18:01 -05:00
realbigsean
1222404450
Merge branch 'blob-syncing' of https://github.com/realbigsean/lighthouse into blob-sync-kzg
2022-11-24 07:46:04 -05:00
Divma
bf5005244e
Blob syncing ( #24 )
...
* add a rt is_blob_batch
* use the mixed type everywhere
* glue
* more glue
* minor fixes
* fix range tests
* filling in the gaps
* moore filling in the gaps
2022-11-24 07:45:38 -05:00
realbigsean
beddcfaac2
get spec tests working and fix json serialization
2022-11-23 18:30:45 -05:00
realbigsean
abc933faa8
Merge branch 'capella-bugfixes' of https://github.com/michaelsproul/lighthouse into blob-sync-kzg
2022-11-23 11:27:41 -05:00
realbigsean
7aa52a4141
ef-test fixes
2022-11-23 11:27:37 -05:00
realbigsean
62f8a5ee10
Merge branch 'blob-syncing' of https://github.com/realbigsean/lighthouse into blob-sync-kzg
2022-11-23 11:22:54 -05:00
realbigsean
ce097ac8d2
Merge branch 'json-rpc-blobs-updates' of https://github.com/realbigsean/lighthouse into blob-syncing
2022-11-23 11:22:15 -05:00
realbigsean
743347cf04
Revert "fix payload default check in fork choice"
...
This reverts commit e56fefbd05
.
2022-11-23 11:18:47 -05:00
realbigsean
e56fefbd05
fix payload default check in fork choice
2022-11-23 09:44:00 -05:00
realbigsean
87ec448b00
Merge branch 'eip4844' of https://github.com/sigp/lighthouse into blob-sync-kzg
2022-11-23 09:19:30 -05:00
Michael Sproul
53a22c2fcb
Two Capella bugfixes
2022-11-23 18:51:39 +11:00
ethDreamer
28c9603505
Stuuupid camelCase ( #3748 )
2022-11-23 14:42:58 +11:00
realbigsean
f601fb3b7e
ef-test updates
2022-11-22 20:13:51 -05:00
Pawan Dhananjay
902055f295
ugly utils
2022-11-22 20:10:32 -05:00
Pawan Dhananjay
e8b5f311aa
Add kzg crate functions
2022-11-22 20:10:17 -05:00
Pawan Dhananjay
3288404ec1
Skeleton
2022-11-22 20:09:21 -05:00
realbigsean
48b2efce9f
merge with upstream
2022-11-22 18:38:30 -05:00
realbigsean
0228b2b42d
- fix pre-merge block production ( #3746 )
...
- return `None` on pre-4844 blob requests
2022-11-22 17:10:40 -06:00
realbigsean
160b915695
remove coments
2022-11-22 17:30:35 -05:00
realbigsean
51b44290a3
rename excess blobs and fix json serialization/deserialization
2022-11-22 17:22:46 -05:00
ethDreamer
24e5252a55
Massive Update to Engine API ( #3740 )
...
* Massive Update to Engine API
* Update beacon_node/execution_layer/src/engine_api/json_structures.rs
Co-authored-by: Michael Sproul <micsproul@gmail.com>
* Update beacon_node/execution_layer/src/engine_api/json_structures.rs
Co-authored-by: Michael Sproul <micsproul@gmail.com>
* Update beacon_node/beacon_chain/src/execution_payload.rs
Co-authored-by: realbigsean <seananderson33@GMAIL.com>
* Update beacon_node/execution_layer/src/engine_api.rs
Co-authored-by: realbigsean <seananderson33@GMAIL.com>
Co-authored-by: Michael Sproul <micsproul@gmail.com>
Co-authored-by: realbigsean <seananderson33@GMAIL.com>
2022-11-22 13:27:48 -05:00
Michael Sproul
61b4bbf870
Fix BlocksByRoot response types ( #3743 )
2022-11-22 12:29:47 -05:00
realbigsean
a0d712ed8c
Merge pull request #23 from divagant-martian/blob-syncing
...
make it compile to start from here
2022-11-21 14:59:12 -05:00
Diva M
7ed2d35424
get it to compile
2022-11-21 14:53:33 -05:00
realbigsean
e7ee79185b
add blobs cache and fix some block production
2022-11-21 14:09:06 -05:00
realbigsean
dc87156641
block and blob handling progress
2022-11-19 16:53:34 -05:00
realbigsean
45897ad4e1
remove blob wrapper
2022-11-19 15:18:42 -05:00
realbigsean
dfd0013eab
Merge pull request #22 from divagant-martian/seans-block-blobs
...
toy skelleton of sync changes
2022-11-16 14:45:45 -05:00
Diva M
78c72158c8
toy skelleton of sync changes
2022-11-16 13:53:38 -05:00
realbigsean
7162e5e23b
add a bunch of blob coupling boiler plate, add a blobs by root request
2022-11-15 16:43:56 -05:00
Michael Sproul
0cdd049da9
Fixes to make EF Capella tests pass ( #3719 )
...
* Fixes to make EF Capella tests pass
* Clippy for state_processing
2022-11-14 13:14:31 -06:00
Mark Mackey
276e1845fd
Added process_withdrawals
2022-11-13 18:20:27 -06:00
Mark Mackey
81319dfcae
Forgot one feature guard
2022-11-10 15:33:26 -06:00
realbigsean
fe04d945cc
make signed block + sidecar consensus spec
2022-11-10 14:22:30 -05:00
Mark Mackey
756e48f5dc
BeaconState field renamed
2022-11-10 11:49:55 -06:00
Mark Mackey
2191242341
Added stuff that NEEDS IMPLEMENTING
2022-11-09 19:35:01 -06:00
Mark Mackey
2d01ae6036
Fixed compiling with withdrawals enabled
2022-11-09 19:34:19 -06:00
Mark Mackey
ab13f95db5
Updated for queueless withdrawals spec
2022-11-09 18:09:34 -06:00
realbigsean
bc0af72c74
fix topic name
2022-11-07 12:36:31 -05:00
Jimmy Chen
cb393f5b7d
Fix compilation error ( #3692 )
2022-11-06 11:46:48 -05:00
realbigsean
fc0b06a039
Feature gate withdrawals ( #3684 )
...
* start feature gating
* feature gate withdrawals
2022-11-04 16:50:26 -04:00
realbigsean
1aec17b09c
Merge branch 'unstable' of https://github.com/sigp/lighthouse into eip4844
2022-11-04 13:23:55 -04:00
Divma
8600645f65
Fix rust 1.65 lints ( #3682 )
...
## Issue Addressed
New lints for rust 1.65
## Proposed Changes
Notable change is the identification or parameters that are only used in recursion
## Additional Info
na
2022-11-04 07:43:43 +00:00
realbigsean
c45b809b76
Cleanup payload types ( #3675 )
...
* Add transparent support
* Add `Config` struct
* Deprecate `enum_behaviour`
* Partially remove enum_behaviour from project
* Revert "Partially remove enum_behaviour from project"
This reverts commit 46ffb7fe77622cf420f7ba2fccf432c0050535d6.
* Revert "Deprecate `enum_behaviour`"
This reverts commit 89b64a6f53d0f68685be88d5b60d39799d9933b5.
* Add `struct_behaviour`
* Tidy
* Move tests into `ssz_derive`
* Bump ssz derive
* Fix comment
* newtype transaparent ssz
* use ssz transparent and create macros for per fork implementations
* use superstruct map macros
Co-authored-by: Paul Hauner <paul@paulhauner.com>
2022-11-02 10:30:41 -04:00
realbigsean
d8a49aad2b
merge with unstable fixes
2022-11-01 13:26:56 -04:00
realbigsean
8656d23327
merge with unstable
2022-11-01 13:18:00 -04:00
realbigsean
5ad834280b
Block processing eip4844 ( #3673 )
...
* add eip4844 block processing
* fix blob processing code
* consensus logic fixes and cleanup
* use safe arith
2022-11-01 13:15:11 -04:00
Pawan Dhananjay
29f2ec46d3
Couple blocks and blobs in gossip ( #3670 )
...
* Revert "Add more gossip verification conditions"
This reverts commit 1430b561c3
.
* Revert "Add todos"
This reverts commit 91efb9d4c7
.
* Revert "Reprocess blob sidecar messages"
This reverts commit 21bf3d37cd
.
* Add the coupled topic
* Decode SignedBeaconBlockAndBlobsSidecar correctly
* Process Block and Blobs in beacon processor
* Remove extra blob publishing logic from vc
* Remove blob signing in vc
* Ugly hack to compile
2022-11-01 10:28:21 -04:00
ethDreamer
e8604757a2
Deposit Cache Finalization & Fast WS Sync ( #2915 )
...
## Summary
The deposit cache now has the ability to finalize deposits. This will cause it to drop unneeded deposit logs and hashes in the deposit Merkle tree that are no longer required to construct deposit proofs. The cache is finalized whenever the latest finalized checkpoint has a new `Eth1Data` with all deposits imported.
This has three benefits:
1. Improves the speed of constructing Merkle proofs for deposits as we can just replay deposits since the last finalized checkpoint instead of all historical deposits when re-constructing the Merkle tree.
2. Significantly faster weak subjectivity sync as the deposit cache can be transferred to the newly syncing node in compressed form. The Merkle tree that stores `N` finalized deposits requires a maximum of `log2(N)` hashes. The newly syncing node then only needs to download deposits since the last finalized checkpoint to have a full tree.
3. Future proofing in preparation for [EIP-4444](https://eips.ethereum.org/EIPS/eip-4444 ) as execution nodes will no longer be required to store logs permanently so we won't always have all historical logs available to us.
## More Details
Image to illustrate how the deposit contract merkle tree evolves and finalizes along with the resulting `DepositTreeSnapshot`
![image](https://user-images.githubusercontent.com/37123614/151465302-5fc56284-8a69-4998-b20e-45db3934ac70.png )
## Other Considerations
I've changed the structure of the `SszDepositCache` so once you load & save your database from this version of lighthouse, you will no longer be able to load it from older versions.
Co-authored-by: ethDreamer <37123614+ethDreamer@users.noreply.github.com>
2022-10-30 04:04:24 +00:00