james-prysm
723f73795f
Deneb: blob sidecar events ( #12928 )
...
* adding in deneb blob event triggers
* fixing linting
* kasey's feedback
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-22 21:54:10 +00:00
terencechain
1a1a30591e
Handle Specific Blob Retrieval Error in DB ( #12889 )
...
* log db blob by root error
* Add comments
2023-09-19 15:29:13 +00:00
Potuz
6b915bab26
Dont process blocks twice ( #12905 )
...
* keep track of block being synced
* gazelle
* use maps
* shutup deepsource
* change godoc
* Radek's review
* Do not process block twice if it's already being processed
* add unit test
2023-09-15 20:11:02 +00:00
Potuz
dd73f762ec
keep track of block being synced ( #12903 )
...
* keep track of block being synced
* gazelle
* use maps
* shutup deepsource
* change godoc
* Radek's review
2023-09-15 17:13:13 +00:00
kasey
a8793c9f21
Simplify DA check to avoid blob/block timing inconsistencies ( #12882 )
...
* collect unique idxs and avoid races
* fix init
* remove unused type (lint error)
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-12 15:32:21 +00:00
terencechain
35fc1c976f
Improved Logging for Blob Sidecar ( #12883 )
...
* feat: improve blob sidecar logs
* Kasey's feedback
2023-09-11 20:46:06 +00:00
kasey
ca88e59ee3
Tests for init-sync DA ( #12873 )
...
* test coverage for commitmentsToCheck
* test for WithinDAPeriod
* gaz
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
2023-09-08 10:47:34 +00:00
Sammy Rosso
d55757500f
Integrate EIP-4881 Deposit Tree Into Prysm via a Feature Flag ( #11942 )
...
* Initial spec rewrite
* Finish adding merkle tree implementation
* Last bits
* Move reverse function
* Add comments
* Add deposit tree snapshot
* Add deposit tree
* Add comments + cleanup
* Fixes
* Add missing errors
* Small fixes
* Add unhandled error
* Cleanup
* Fix unsafe file.Close
* Add missing comments
* Small fixes
* Address some of deepSource' compaints
* Add depositCount check
* Add finalizedDeposit check
* Replace pointer magic with copy()
* Add test for slice reversal
* add back bytes method
* Add package level description
* Remove zerohash gen and add additional checks
* Add additional comments
* Small lint fixes
* Forgot an error
* Small fixes
* Move Uint64ToBytesLittleEndian32 + test
* Fix uint subtraction issue
* Move mixInLength below error handling
* Fix
* Fix deposit root
* integrate 4881
* edits
* added in deposit tree fetcher
* add file
* Add remaining fetcher functions
* Add new file for inserter functions
* Fixes and additional funcs
* Cleanup
* Add
* Graph
* pushed up edits
* fix up
* Updates
* Add EIP4881 toggle flag
* Add interfaces
* Fix tests
* More changes
* Fix
* Remove generated graph
* Fix spacing
* Changes
* Fixes
* Changes
* Test Fix
* gaz
* Fix a couple tests
* Fix last tests
* define protos
* proto methods
* pushed
* regen
* Add proto funcs
* builds
* pushin up
* Fix and cleanup
* Fix spectest
* General cleanup
* add 4881 to e2e
* Remove debug statements + remove test skip
* Implement first set of missing methods
* Replace Zerohashes + cleanup
* gazelle
* fmt
* Put back defensive check
* Add error logs
* InsertFinalizedDeposits: return an error
* Remove logging
* Radek' Review
* Lint fixes
* build
* Remove cancel
* Update beacon-chain/deterministic-genesis/service.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update beacon-chain/cache/depositsnapshot/deposit_inserter.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Cleanup
* Fix panic when DepositSnapshot is nil on init
* Gofmt
* Fix RootEquivalence test
* Gofmt
* Add missing comments
* Nishant' review
* Add Insert benchmarks
* fix up copy method
* Fix deep copy
* Fix conflicts
* Return error
* Fix linter issues
* add in migration logic
* Cleanup + tests
* fix
* Fix incorrect index in test
* Fix linter
* Gofmt
* fix it
* fixes for off by 1
* gaz
* fix cast
* fix it
* remove ErrZeroIndex
* Fix merkle_tree_test
* add fallback
* add fix for insertion bug
* add many fixes
* fix empty snapshot
* clean up
* use feature
* remove check
* fix failing tests
* skip it
* fix test
* fix test again
* fix for the last time
* Apply suggestions from code review
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* fix it
* remove cancel
* fix for voting
* addressing more comments
* fix err
* potuz's review
* one more test
* fix bad test
* make 4881 part of dev mode
* add workaround for new trie
* comment
* preston's review
* james's review
* add comment
* james review
* preston's review
* remove skipped test
* gaz
---------
Co-authored-by: rauljordan <raul@prysmaticlabs.com>
Co-authored-by: nisdas <nishdas93@gmail.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-09-07 03:19:32 +00:00
kasey
4f48c551da
Fix 12784 ( #12822 )
...
* add DA check to batched sync path
also fixes a da period calculation bug in the reg sync path.
* update comment
function original took a slot instead of an epoch, but was rewritten to use epoch to avoid the need to import the slot math package
Co-authored-by: terencechain <terence@prysmaticlabs.com>
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: terencechain <terence@prysmaticlabs.com>
2023-09-07 00:26:28 +00:00
kasey
a81518ca91
wrap ctx.Err, not the random last value of err ( #12859 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
2023-09-06 15:12:09 -05:00
kasey
34b995d0de
only initialize kzg if it will be used ( #12803 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
2023-08-31 08:41:57 -05:00
Potuz
3a1b4a19c2
Blob channel ( #12753 )
...
* Add a new blob channel
* fix mock
* reset the channel
* keep a map of channels
* gazelle
* do not overwrite map
* remove pre-declaration
2023-08-31 08:41:57 -05:00
terencechain
5179305071
feat: save blobs to db for subscriber ( #12734 )
2023-08-31 08:41:57 -05:00
terencechain
6314f7fcbf
feat: log blob commitment count ( #12723 )
2023-08-31 08:41:57 -05:00
terencechain
d210a2368f
feat: implement eip4788 ( #12570 )
2023-08-31 08:41:57 -05:00
Potuz
57b8da08d1
Validate blobs feature ( #12574 )
2023-08-31 08:41:57 -05:00
kasey
3476112d63
sync blobs in initial-sync ( #12522 )
2023-08-31 08:41:57 -05:00
james-prysm
a41c01cb5e
migrating get blob from eip4844 and deneb-integration ( #12603 )
2023-08-31 08:41:57 -05:00
terencechain
ff6b670d95
feat(blockchain): update payload attribute for deneb ( #12509 )
2023-08-31 08:41:57 -05:00
terencechain
5b1634b335
Update ProposeBeaconBlock
Prysm RPC for Deneb (Non builder) ( #12495 )
2023-08-31 08:41:57 -05:00
terencechain
5deb1f755b
Deneb: implements engine API end points ( #12384 )
2023-08-31 08:41:57 -05:00
terencechain
e3ac8b7745
Add Blob Gossip ( #12413 )
2023-08-31 08:41:57 -05:00
Potuz
27d8b1c358
add more descriptive log on FFG-LMD consistency ( #12763 )
...
* add more descriptive log on FFG-LMD consistency
* Update beacon-chain/blockchain/receive_attestation.go
Co-authored-by: terencechain <terence@prysmaticlabs.com>
* Update beacon-chain/blockchain/receive_attestation.go
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-08-21 14:06:59 +00:00
Potuz
e7f6048b8c
Use last optimistic status on batches ( #12741 )
...
* Use last optimistic status on batches
* more descriptive errors
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-08-16 01:40:36 +00:00
Potuz
418959565f
set optimistic status in head at init sync ( #12748 )
2023-08-16 00:47:56 +00:00
Nishant Das
4098d098aa
Shift Error Logs To Debug ( #12739 )
2023-08-15 14:44:54 +00:00
Potuz
dd14d5cef0
refactor slot tickers with intervals ( #12440 )
...
* refactor slot tickers with intervals
* GoDoc
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-08-03 20:55:16 -03:00
terencechain
dbc17cf2ca
Fix: use correct context for UpdateCommitteeCache
( #12691 )
2023-08-03 06:00:58 +00:00
Potuz
e5d1eb885d
Update caches blocking ( #12679 )
...
* update NSC together with epoch boundary caches
* block when updating caches
* reviews
* removal of very useful helper because the reviewers requested it :)
* use IsEpochEnd
2023-08-02 05:59:09 +00:00
Potuz
c17682940e
only handle epoch boundary on canonical blocks ( #12666 )
...
* only handle epoch boundary on canonical blocks
* do not fetch headstate
2023-07-31 12:07:09 -03:00
Nishant Das
db450f53a4
Fix Update Of Committee Cache ( #12668 )
...
* fix it
* sammy's comment
* fix tests
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-28 13:34:03 +00:00
Potuz
337c254161
update shuffling caches at epoch boundary ( #12661 )
...
* update shuffling caches at epoch boundary
* move span
* do not advance to a past slot
2023-07-26 18:46:18 +00:00
Potuz
ded00495e7
Parallelize cl el validation ( #12590 )
...
* Parallelize EL and CL block validation
* fix by Nishant
2023-07-26 12:23:51 -03:00
Nishant Das
dd403f830c
clean up logging ( #12653 )
2023-07-24 20:29:50 +08:00
Radosław Kapka
43378ae8d5
Use BlockProcessed
event in Beacon API ( #12625 )
...
* Use `BlockProcessed` event in Beacon API
* log error
---------
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>
2023-07-20 17:26:34 +00:00
terencechain
ba9bbdd6b9
Style: minor cleanups to blockchain pkg ( #12640 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-20 10:17:35 +00:00
Nishant Das
af0ee9bd16
use read-only validators ( #12628 )
2023-07-15 00:34:45 -07:00
Radosław Kapka
456ba7c498
Fix comments when receiving block ( #12624 )
2023-07-14 10:30:02 +00:00
Potuz
58df1f1ba5
lock before saving the poststate to db ( #12612 )
2023-07-11 16:10:32 +00:00
Nishant Das
0a68d2d302
Fix Context Cancellation ( #12604 )
2023-07-08 08:50:04 +00:00
Nishant Das
085f90a4f1
Prune Pending Deposits on Finalization ( #12598 )
...
* prune them
* Update beacon-chain/blockchain/process_block_helpers.go
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-07-07 11:20:14 +08:00
terencechain
f8408b9ec1
feat: add metric for ReceiveBlock ( #12597 )
2023-07-06 02:57:55 -07:00
terencechain
2e0e29ecbe
fix: prune invalid blocks during initial sync ( #12591 )
2023-07-05 08:33:33 -07:00
Potuz
e9b5e52ee2
Move consensus and execution validation outside of onBlock ( #12589 )
...
* Move consensus and execution validation outside of onBlock
* reviews
* fix unit test
* revert version change
* fix tests
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com>
2023-07-05 21:12:21 +08:00
Nishant Das
401fccc723
Log Finalized Deposit Insertion ( #12593 )
...
* add log
* update key
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com>
2023-07-05 08:07:38 +00:00
Potuz
5bb482e5d6
Remove forkchoice call from notify new payload ( #12560 )
...
* Remove forkchoice call from notify new payload
* add unit test
2023-06-28 13:38:24 +00:00
terencechain
83494c5b23
fix: use diff context to update proposer cache background ( #12571 )
2023-06-27 20:31:54 +00:00
terencechain
a10ffa9c0e
Cache next epoch proposers at epoch boundary ( #12484 )
...
* Cache next epoch proposers at epoch boundary
* Fix new lines
* Use UpdateProposerIndicesInCache
* dont set state slot
* Update beacon_committee.go
* dont set state slot
* genesis epoch check
* Rm check
* fix: rm logging ctx
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
* feat: move update to background
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
2023-06-27 14:41:24 +00:00
Potuz
1ebef16196
use the incoming payload status instead of calling forkchoice ( #12559 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-22 18:09:02 +00:00
Potuz
884ba4959a
Remove unneded helper ( #12558 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-22 16:54:52 +00:00