Raul Jordan
39893bbe30
Encapsulate Fork-Specific Parameters Under BeaconState Interface ( #10706 )
...
* encapsulate beacon state specific spec parameters
* edit build file
* code review suggestion
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-20 15:30:30 +00:00
kasey
588dea83b7
Config registry ( #10683 )
...
* test coverage and updates to config twiddlers
* LoadChainConfigFile error if SetActive conflicts
* lint
* wip working around test issues
* more fixes, mass test updates
* lint
* linting
* thanks deepsource!
* fix undeclared vars
* fixing more undefined
* fix a bug, make a bug, repeat
* gaz
* use stock mainnet in case fork schedule matters
* remove unused KnownConfigs
* post-merge cleanup
* eliminating OverrideBeaconConfig outside tests
* more cleanup of OverrideBeaconConfig outside tests
* config for interop w/ genesis gen support
* improve var name
* API on package instead of exported value
* cleanup remainders of "registry" naming
* Nishant feedback
* add ropstein to configset
* lint
* lint #2
* ✂️
* revert accidental commented line
* check if active is nil (replace called on empty)
* Nishant feedback
* replace OverrideBeaconConfig call
* update interop instructions w/ new flag
* don't let interop replace config set via cli flags
Co-authored-by: kasey <kasey@users.noreply.github.com>
2022-05-20 07:16:53 +00:00
Raul Jordan
b74947aa75
Fix Slasher E2E Flakiness ( #10715 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-19 08:51:31 +00:00
terencechain
092e9e1d19
Clean up various warnings ( #10710 )
...
* Clean up various warnings
* Update beacon-chain/rpc/prysm/v1alpha1/debug/state_test.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Fix redundant casting genState
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2022-05-19 04:38:04 +00:00
Sammy Rosso
1c51f6d1be
Fix Tests in sync/validate_beacon_blocks.go to Pass for the Right Reasons ( #10711 )
...
* test: better InvalidSignature validation
Added digest to topic so that the test would not fail at decodePubsubMessage.
Generated a valid signature from an invalid key so that it would be considered invalid.
Added a check for the correct error: ErrSigFailedToVerify.
Related to #9791 .
* test: better BlockAlreadyPresentInDB validation
Added digest to topic so that the test would not fail at decodePubsubMessage.
Added a check that the block is ignored.
Related to #9791 .
* test: better Syncing validation
Replaced error silencing with NoError assertion.
Added check for the expected validation decision: ValidationIgnore.
Related to #9791 .
* test: better IgnoreAndQueueBlocksFromNearFuture validation
Rename test to best describe it's function.
Replace error silencing with a check for the expected error.
Related to #9791 .
* test: better RejectBlocksFromFuture validation
Added digest to topic so that the test would not fail at decodePubsubMessage.
Replaced error silencing with NoError assertion.
Added check for the expected validation decision: ValidationIgnore.
Related to #9791 .
* test: better RejectBlocksFromThePast validation
Added digest to topic so that the test would not fail at decodePubsubMessage.
Replaced error silencing with a check for the expected error.
Added check for the expected validation decision: ValidationIgnore.
Related to #9791 .
* test: better SeenProposerSlot validation
Added digest to topic so that the test would not fail at decodePubsubMessage.
Replaced error silencing with NoError assertion.
Added check for the expected validation decision: ValidationIgnore.
Related to #9791 .
* test: fix topic and silenced errors
* set chain service slot
* test: better RejectBlocksFromBadParent validation
Set bad parent block.
Fixed expected errors and validation decision.
* revert: correct log msg for unknown parent block
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-19 03:45:45 +00:00
Preston Van Loon
ee6aa4d4ec
rpc: Better connection handling ( #10714 )
2022-05-19 02:53:24 +00:00
mick
03d44d7bfe
Weak subjectivity warning copy update, warn -> info ( #10699 )
...
* warn -> info
* wrap
* lintfix
* mick-needs-a-better-IDE
* gofmt
* empty commit to trigger cicd
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-05-18 16:20:35 +00:00
Radosław Kapka
eedafac822
SSZ responses for block production ( #10697 )
...
* Simplify SSZ handling
* fix tests
* add version to SSZ proto and to GetBeaconStateSSZV2
* TestProduceBlockV2SSZ
* rest of tests
* middleware
* use constants
* some middleware changes
* test fix
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-17 20:13:06 +00:00
terencechain
e9ad7aeff8
Fix a bad forkchoice proposer boost test ( #10705 )
...
* Fix a bad forkchoice proposer boost test
* Improve tests
* Add fork regression
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-05-17 16:26:56 -03:00
terencechain
3cfef20938
Add better debugging logs for validate block p2p pipeline ( #10698 )
2022-05-17 17:27:52 +00:00
Potuz
e90284bc00
Add Error checks for nil inner state ( #10701 )
2022-05-17 17:38:35 +08:00
terencechain
01e15a033f
Improve beacon node doesn't have a parent in db logs ( #10689 )
...
* Improve beacon node doesn't have a parent in db logs
* Update round_robin.go
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-05-16 18:51:27 +00:00
Radosław Kapka
f09b06d6f6
Allow SSZ-serialized blocks in publishBlindedBlock
( #10679 )
...
* SubmitBlockSSZ grpc
* SubmitBlockSSZ middleware
* test fixes
* use VersionedUnmarshaller
* use VersionedUnmarshaller
(cherry picked from commit 7388eeb9636ac43fb85f8245ccda4a14ca68a190)
* tests
* fuzz: Add fuzz tests for sparse merkle trie (#10662 )
* Add fuzz tests for sparse merkle trie and change HTR signature to return an error
* fix capitalization of error message
* Add engine timeout values (#10645 )
* Add timeout values
* Update engine_client.go
* Update engine_client.go
* Update beacon-chain/powchain/engine_client.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update beacon-chain/powchain/engine_client.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update beacon-chain/powchain/engine_client.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update engine_client.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Cleanup of `stategen` package (#10607 )
* powchain and stategen
* revert powchain changes
* rename field to blockRootsOfSavedStates
* rename params to blockRoot
* review feedback
* fix loop
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
* Process atts and update head before proposing (#10653 )
* Process atts and updeate head
* Fix ctx
* New test and old tests
* Update validator_test.go
* Update validator_test.go
* Update service.go
* Rename to UpdateHead
* Update receive_attestation.go
* Update receive_attestation.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
* Add link to e2e docs in `README` (#10672 )
* Improve `ReceiveBlock`'s comment (#10671 )
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
* Call fcu on invalid payload (#10565 )
* Starting
* remove finalized root
* Just call fcu
* Review feedbacks
* fix one test
* Fix conflicts
* Update execution_engine_test.go
* Add a test for invalid recursive call
* Add comprehensive recursive test
* dissallow override empty hash
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
* Cache and use justified and finalized payload block hash (#10657 )
* Cache and use justified and finalized payload block hash
* Fix tests
* Use real byte
* Fix conflicts
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
* do not export slotFromBlock
* simplify tests
* grpc
* middleware
* extract package-level consts
* Simplify SSZ handling
* fix tests
* test fixes
* test hack
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: terencechain <terence@prysmaticlabs.com>
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-05-16 17:59:43 +00:00
james-prysm
16e66ee1b8
fee-recipient: update error log to warn log ( #10684 )
...
* initial commit
* updating fee recipient on beacon node
* updating logs
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-05-16 14:40:13 +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
terencechain
a90335b15e
Blockchain: Use get_block to retrieve block ( #10688 )
...
* Use get block
* Remove unused errNilParentInDB
* Fix TestVerifyBlkDescendant
* Update beacon-chain/blockchain/service.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-05-15 02:23:01 +00:00
Radosław Kapka
8cd43d216f
Changes to SSZ handling ( #10687 )
...
* Simplify SSZ handling
* fix tests
* add version to SSZ proto and to GetBeaconStateSSZV2
* remove unwanted methods
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-13 20:29:18 +00:00
Radosław Kapka
d25c0ec1a5
Fix bugs in /eth/v1/beacon/blinded_blocks
( #10673 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-05-13 18:20:39 +00:00
Radosław Kapka
e1c4427ea5
Allow SSZ-serialized blocks in publishBlock
( #10663 )
...
* SubmitBlockSSZ grpc
* SubmitBlockSSZ middleware
* test fixes
* use VersionedUnmarshaller
(cherry picked from commit 7388eeb9636ac43fb85f8245ccda4a14ca68a190)
* tests
* do not export slotFromBlock
* simplify tests
* extract package-level consts
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-13 10:54:45 +00:00
Preston Van Loon
7042791e31
fuzz: Fix off by one error in sparse merkle trie item insertion ( #10668 )
...
* fuzz: Fix off by one error in sparse merkle trie item insertion
* remove new line
* Move validation to the proto constructor
* fix build
* Add a unit test because @nisdas is going to ask for it
* fix up
* gaz
* Update container/trie/sparse_merkle.go
* Update container/trie/sparse_merkle_test.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: nisdas <nishdas93@gmail.com>
2022-05-13 07:02:43 +00:00
terencechain
e771585b77
Fix error.Is
ordering ( #10685 )
...
* Fix error.is ordering for ErrUndefinedExecutionEngineError
* Update BUILD.bazel
2022-05-12 22:43:34 +00:00
Radosław Kapka
98622a052f
Extract OptimisticSyncFetcher
interface ( #10654 )
...
* Extract `OptimisticSyncFetcher` interface
* extract IsOptimistic
* fix tests
* more test fixes
* even more test fixes
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-12 17:23:45 +00:00
Potuz
61033ebea1
handle failure to update head ( #10651 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-12 16:36:46 +00:00
Potuz
e808025b17
regression test off-by-one ( #10675 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-12 15:49:37 +00:00
Radosław Kapka
7db0435ee0
Unify WARNING
comments ( #10678 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-12 15:25:44 +00:00
Nishant Das
1f086e4333
add more fuzz targets ( #10682 )
2022-05-12 10:47:29 -04:00
james-prysm
184e5be9de
Fee recipient: checksum log ( #10664 )
...
* adding checksum check at validator client and beacon node
* adding validation and logs on validator client startup
* moving the log and validation
* fixing unit tests
* adding test for back checksum on validator client
* fixing bazel
* addressing comments
* fixing log display
* Update beacon-chain/node/config.go
* Apply suggestions from code review
* breaking up lines
* fixing unit test
* ugh another fix to unit test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-11 19:36:57 +00:00
terencechain
e33850bf51
Don't return nil with new head ( #10680 )
2022-05-11 11:33:10 -07:00
Preston Van Loon
cc643ac4cc
native-state: Simplify MarshalSSZ ( #10677 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-11 14:25:11 +00:00
Nishant Das
abefe1e9d5
Add Sync Block Topic Fuzz Target ( #10676 )
...
* add new target
* remove
* Update beacon-chain/sync/BUILD.bazel
2022-05-11 13:18:12 +00:00
Nishant Das
b4e89fb28b
Add in State Fuzzing ( #10375 )
...
* add it in
* build tags
* gaz
* remove dependency on fast-ssz for now
* copy and comment
* add in native state
* fix build
* no assert on invalid input, just return
* Add failing case
* fix it up
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com>
2022-05-11 12:47:54 +00:00
terencechain
4ad1c4df01
Cache and use justified and finalized payload block hash ( #10657 )
...
* Cache and use justified and finalized payload block hash
* Fix tests
* Use real byte
* Fix conflicts
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-10 21:20:28 +00:00
terencechain
6a197b47d9
Call fcu on invalid payload ( #10565 )
...
* Starting
* remove finalized root
* Just call fcu
* Review feedbacks
* fix one test
* Fix conflicts
* Update execution_engine_test.go
* Add a test for invalid recursive call
* Add comprehensive recursive test
* dissallow override empty hash
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-10 20:02:00 +00:00
Radosław Kapka
d102421a25
Improve ReceiveBlock
's comment ( #10671 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-10 19:13:28 +00:00
terencechain
bbdf19cfd0
Process atts and update head before proposing ( #10653 )
...
* Process atts and updeate head
* Fix ctx
* New test and old tests
* Update validator_test.go
* Update validator_test.go
* Update service.go
* Rename to UpdateHead
* Update receive_attestation.go
* Update receive_attestation.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-09 23:12:50 +00:00
Radosław Kapka
5d94030b4f
Cleanup of stategen
package ( #10607 )
...
* powchain and stategen
* revert powchain changes
* rename field to blockRootsOfSavedStates
* rename params to blockRoot
* review feedback
* fix loop
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-09 22:25:47 +00:00
terencechain
16273a2040
Add engine timeout values ( #10645 )
...
* Add timeout values
* Update engine_client.go
* Update engine_client.go
* Update beacon-chain/powchain/engine_client.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update beacon-chain/powchain/engine_client.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update beacon-chain/powchain/engine_client.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update engine_client.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2022-05-09 20:02:20 +00:00
Preston Van Loon
97663548a1
fuzz: Add fuzz tests for sparse merkle trie ( #10662 )
...
* Add fuzz tests for sparse merkle trie and change HTR signature to return an error
* fix capitalization of error message
2022-05-09 16:51:48 +00:00
Radosław Kapka
7d9d8454b1
Improvements to powchain
package ( #10652 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-09 13:57:34 +00:00
Radosław Kapka
21bdbd548a
Deduplicate native state (a.k.a. One State to rule them all) ( #10483 )
...
* v0
* getters/setters
* init and copy
* hasher
* all the nice stuff
* make bazel happy
* remove tests for smaller PR
* remove old states
* move files
* import fixes
* custom MarshalSSZ
* fixed deadlock
* copy version when copying state
* correct issues in state_trie
* fix Copy()
* better e2e comment
* add code to minimal state
* spectest test
* Revert "Auxiliary commit to revert individual files from 84154423464e8372f7e0a03367403656ac5cd78e"
This reverts commit 9602599d183081291dfa0ba4f1036430f63a7822.
* native state assert
* always error
* always log
* more native state usage
* cleanup
* remove empty line
* Revert "spectests"
This reverts commit 1c49bed5d1cf6224afaf21e18562bf72fae5d2b6.
# Conflicts:
# beacon-chain/powchain/service.go
# beacon-chain/state/v1/state_trie.go
# beacon-chain/state/v2/state_trie.go
# beacon-chain/state/v3/state_trie.go
# testing/spectest/shared/phase0/finality/BUILD.bazel
# testing/spectest/shared/phase0/finality/runner.go
* dedup field trie
* fix test issues
* cleanup
* use correct field num in FinalizedRootProof
* use existing version constant
* halfway there
* "working" version
* some fixes
* fix field nums in tests
* rename v0types to nativetypes
* Revert "Auxiliary commit to revert individual files from dc549b1cf8e724bd08cee1ecc760ff3771d5592d"
This reverts commit 7254d3070d8693b283fc686a2e01a822ecbac1b3.
* uncomment code
* remove map size
* Revert "Revert "spectests""
This reverts commit 39c271ae6b57d6a3737e2c202cd8407857475e56.
* use reverse map
* Revert "Revert "Revert "spectests"""
This reverts commit 19ba8cf95cdca689357c8234a262e08cccbafef4.
* finally found the bug
(cherry picked from commit a5414c4be1bdb61a50b391ea5301895e772cc5e9)
* simplify populateFieldIndexes
* fix copy
(cherry picked from commit 7da4fb8cf51557ef931bb781872ea52fc6731af5)
* remove native state from e2e
* remove index map
* unsupported functions
* Use ProtobufBeaconState() from native state
* tests
* typo
* reduce complexity of `SaveStatesEfficient`
* remove unused receiver name
* update doc.go
* fix test assertion
* fix test assertion 2
* Phase0 justification bits
* bring back state tests
* rename fieldIndexRev
* versioning of ToProto
* remove version check from unexported function
* hasher tests
* don't return error from JustificationBits
* extract fieldConvertersNative
* helper error function
* use fieldConvertersNative
* Introduce RealPosition method on FieldIndex
* use RealPosition in hasher
* remove unused fields
* remove TestAppendBeyondIndicesLimit
(cherry picked from commit 3017e700282969c30006b64c95c21ffe6b166f8b)
* simplify RealPosition
* rename field interface
* use helper in proofs.go
* Update beacon-chain/core/altair/upgrade.go
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-05-09 13:02:34 +00:00
Nishant Das
c5ddc266ae
Perform Request Size Limiting When Caching Eth1 Headers ( #10649 )
...
* rate limit reqs
* fix issues
* make it better
* final check
* terence's review
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-09 03:19:23 +00:00
Nishant Das
74518f0e1b
Log Out Missing Validators in Participation Drops ( #10624 )
...
* debug failures
* clean up
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-05-09 01:44:47 +00:00
terencechain
122c3f44cc
Insert over-the-wire slashing to forkchoice ( #10615 )
...
* remove equivocating votes from forkchoice
* shutup deepsource
* Add insertSlashingsToForkChoiceStore
* Fix equality checks, add tests
* Update process_block.go
* Fix equality check for doublylinked
* More checks
* Rm err return
* Consider slashings over the wire
* Update new_slot_test.go
* Fix spec tests
* Add ReceiveAttesterSlashing
* Update mock.go
* Revert spec test changes
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-05-07 15:56:34 +00:00
kasey
b1b13cfca7
simplify config names, use strings ( #10656 )
...
* simplify config names, use strings
* lint
Co-authored-by: kasey <kasey@users.noreply.github.com>
2022-05-06 21:42:27 +00:00
kasey
ae82c17dc3
run process_slots before caching committee data ( #10639 )
...
* demonstrate issue with committee caching in e2e
* lint
* run process_slots before caching committee data
* pass transitioned state to UpdateCommitteeCache
* don't run extra epochs w/ web3signer
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
2022-05-06 14:33:09 +08:00
Potuz
8bd1f16223
Remove unused method ( #10643 )
2022-05-05 21:46:28 +02:00
terencechain
dda48c452d
Move head change attestation log ( #10636 )
2022-05-05 15:09:58 +00:00
Potuz
025d053fa4
Change log when head changes ( #10633 )
2022-05-05 11:40:21 +00:00
terencechain
7af89a82c9
Use justified hash as safe block hash ( #10627 )
...
* Use justified hash as safe block hash
* Remove debug log
* Feedback
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-05 00:36:09 +00:00
kasey
10e1f04ce4
Checkpoint sync fixes ( #10630 )
...
* fixes for checkpoint sync
* improve node version regex; real client test cases
* add test case for checkpoint sync finalization fix
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
2022-05-04 23:41:33 +00:00
Preston Van Loon
5817090b59
Remove junk metadata file ( #10626 )
2022-05-04 17:26:01 +00:00
Potuz
df695346a5
process slashings once ( #10621 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-04 14:51:18 +00:00
Nishant Das
f9b4a340a3
Graduate Orphaned Attestation Insertion Feature ( #10622 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-04 13:59:41 +00:00
Preston Van Loon
d2dbc13427
fuzz: Fix tests with fuzz tags ( #10619 )
...
* some fixes to fuzz building
* use len
* remove comments
* fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-04 06:15:09 +00:00
Nishant Das
e5e4dee629
Update Batch Verification Routine ( #10127 )
...
* add changes so far
* a lot of tests
* add flags and comments
* raul's comment
* raul's review
* fix build
* fix
* fix
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-04 04:47:53 +00:00
Raul Jordan
ab2b0c5c99
Use Single Beacon Block Wrapper Function Across Prysm ( #10608 )
...
* remove altair wrappers in favor of generic ones for blocks
* rem deprecated
* body wrapper
* builds
* nil check
2022-05-04 11:55:35 +08:00
terencechain
7c3147ca89
Fix isProcessedBlock
order of operation ( #10620 )
2022-05-04 01:28:08 +00:00
terencechain
03ae8672b6
Refactor and use has_block getter ( #10592 )
...
* Refactor and use has block getter
* Update blocks_fetcher_utils.go
* Fix tests
* Fix tests
* Fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-04 00:17:40 +00:00
terencechain
e5ee7f7e8b
Don't mark undefined ee error block bad for regular processing ( #10613 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-03 20:12:58 +00:00
Raul Jordan
5315c45453
More Useful Log When Auth Fails to Execution Client ( #10609 )
...
* more helpful auth message when auth to engine does not work
* better language
* clarity
* check for 401
* fix panic
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-05-03 18:40:08 +00:00
Radosław Kapka
1d587c0e95
No timeout for API events ( #10611 )
...
* no event timeout
* Revert "Auxiliary commit to revert individual files from 1bfe8327ed02104432cc6bde09ac6afc8fb21f62"
This reverts commit 5f7aa10e5bc0bc18a414efdf425ae90cbcf08b99.
* proper solution
* comment fix
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-03 17:42:06 +00:00
terencechain
d4fa490dec
Handle blind block for DB ( #10580 )
...
* Handle blind block for DB
* Update blinded_beacon_block_bellatrix_test.go
* Update blocks_test.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-03 16:55:59 +00:00
Raul Jordan
59041cf868
Warn Users if EE Returns Unexpected Fee Recipient Address ( #10604 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-03 15:18:42 +00:00
terencechain
8f1ee146a9
Use notify engine if changed head method ( #10606 )
...
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-05-03 14:31:31 +00:00
Radosław Kapka
a5f1dcaa65
Revert "Simplify Initial Sync ( #10523 )" ( #10610 )
...
* Revert "Simplify Initial Sync (#10523 )"
This reverts commit 3b69f7a196
.
* comment
2022-05-03 11:39:53 +00:00
terencechain
9615484fe9
notifyForkchoiceUpdate can prune invalid blocks ( #10510 )
...
* notifyForkchoiceUpdate can prune invalid blocks
* define and use ErrInvalidPayload
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-03 03:48:58 +00:00
terencechain
5ad4f14ffc
Use remove equivocating validators ( #10603 )
...
* remove equivocating votes from forkchoice
* shutup deepsource
* Add insertSlashingsToForkChoiceStore
* Fix equality checks, add tests
* Update process_block.go
* Fix equality check for doublylinked
* More checks
* Rm err return
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-05-03 00:46:05 +00:00
Potuz
4c869fa587
remove equivocating votes from forkchoice ( #10597 )
...
* remove equivocating votes from forkchoice
* shutup deepsource
Co-authored-by: terencechain <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-02 19:19:03 +00:00
Raul Jordan
20ab988a4a
Rename Block
Package in Consensus-Types to Interfaces ( #10605 )
...
* interfaces package
* builds
* gaz
2022-05-02 14:32:37 -04:00
Raul Jordan
16bbf5602f
Move Consensus Type Wrappers Into Consensus Types Package ( #10598 )
...
* builds
* move block to consensus-types
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-02 15:43:40 +00:00
Potuz
f9113dfd06
Forkchoice use parent hash when removing invalid blocks ( #10594 )
2022-05-02 06:53:22 -07:00
terencechain
0faf7ac01f
Debug log when new head is not in db ( #10591 )
2022-04-29 14:26:39 -07:00
Preston Van Loon
9d2bdfe14d
p2p: Fix pubsub fuzz test ( #10583 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-29 18:20:18 +00:00
Nishant Das
ad03938964
Fix Doppelganger Check ( #10582 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2022-04-29 17:19:43 +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
Nishant Das
2f29bb64f6
Fallback To Rebuilding Deposit Tries ( #10562 )
...
* fallback
* fix it
* make it clearer
* terence's review
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-29 09:33:59 +00:00
terencechain
156e40e886
Clean up optimistic candidate block usages ( #10579 )
...
* Clean up optimistic candidate block usages
* More clean ups
* Update godoc comment
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-29 08:43:51 +00:00
terencechain
b7a82d0fd1
Can retrieve cached initial sync block and db block ( #10568 )
...
* Save cached initial sync blocks before getting head block
* Add better abstraction to get block
* Move unlock read to a better location
* Feedbacks
* Add head changed logging
* Harder hasBlock requirement
* Update beacon-chain/blockchain/service.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update receive_attestation.go
* Don't process head if the block is unknown
* Use a helper method
* Fix test
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-04-29 07:56:31 +00:00
Nishant Das
58ad800553
Cleanup Discarded Connections Correctly ( #10574 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-04-28 13:09:03 +00:00
Radosław Kapka
2060f876b1
Code cleanup in blockchain
module ( #10566 )
...
* Code cleanup in `blockchain` module
* revert comment fix
* remove test
* forkchoice test fix
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-28 11:34:25 +00:00
Nishant Das
7c3d89b25f
Graduate Batch Gossip Verification Feature ( #10553 )
...
* grad feat
* fix stuck tests
2022-04-26 08:28:35 -04:00
Radosław Kapka
f4c004085b
Add lock around reading eth1data ( #10557 )
...
* Add lock around reading eth1data
* fix lock pattern
* more locking
* move lock inside loop
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-04-26 06:19:14 +00:00
terence tsao
c0e207eb47
Add proposer index and graffiti to received block log ( #10564 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-04-25 20:51:10 +00:00
terence tsao
7003d97061
Don't mark block as bad with unknown ee error ( #10556 )
...
* Don't mark block as bad with unknown ee error
* Some tests
* Comments
* Comments
2022-04-25 18:41:35 +00:00
Radosław Kapka
957d853a2f
Blinded block APIs ( #10331 )
2022-04-25 17:42:58 +02:00
Nishant Das
0ad190c1fb
Graduate Balance Trie Feature ( #10552 )
2022-04-25 11:16:41 +02:00
terence tsao
c8919bd233
Move validate merge transition block outside of notify new payload ( #10526 )
...
* Move validate merge transition block
* Update process_block_test.go
* Conflict, use swith err
* Update execution_engine.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-04-23 08:11:15 +00:00
Nishant Das
7765d275d1
Add in State Slot for Sync Committee Cache ( #10475 )
...
* add changes
* Update beacon-chain/core/helpers/sync_committee_test.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-04-22 08:03:32 +00:00
Håvard Anda Estensen
2fd7c926ed
Use the T.TempDir and B.TempDir to create temp dirs for testing ( #10560 )
...
* Use t.TempDir and b.TempDir for temporary test dirs
* Remove redundant dir cleanup
2022-04-21 20:45:44 +00:00
moshe-blox
21fc9853ee
Encode empty extra_data
as "0x" and base_fee_per_gas
as Uint256 i… ( #10539 )
...
* Encode empty `extra_data` as "0x" and `base_fee_per_gas` as Uint256 in the Beacon API
* Fixed parsing of Uint256 in the API
* Add missing tests for empty hex & Uint256 fields in `apimiddleware`
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-04-21 15:44:38 +00:00
Radosław Kapka
d371cd6e89
Add lock to PeerStatusScorer.SetHeadSlot
( #10558 )
...
(cherry picked from commit e04e4795c81ea939cf8996c632c52598cd69d170)
2022-04-21 15:02:20 +00:00
Nishant Das
d7a7fa025d
Graduate Active Balance Cache Feature ( #10550 )
...
* graduate feature
* gaz
* clear cache
2022-04-21 02:59:52 +00:00
Nishant Das
6b6ac4c3fb
Graduate Optimized Balance Update Feature ( #10549 )
...
* graduate feat
* stop imports
* gaz
2022-04-20 09:02:33 +00:00
Nishant Das
3b8651cbf4
Graduate Optimized Get Block Feature ( #10548 )
2022-04-19 22:30:29 -07:00
Preston Van Loon
9d29d2f4bf
Update libp2p to latest release ( #10423 )
...
* Update libp2p to latest release
* gazelle
* fix panic in tests
* gaz
* fix conflicts
* revert back
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: nisdas <nishdas93@gmail.com>
2022-04-19 12:53:58 +00:00
Nishant Das
3d205a387c
Remove Proposer Selection Feature ( #10547 )
...
* remove config option
* fix
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-19 08:59:19 +00:00
Nishant Das
269b382229
Fix E2E Failures ( #10540 )
...
* fix it
* fix all issues
* gaz
* fix yaml
* Update config/params/testdata/e2e_config.yaml
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update testing/endtoend/minimal_e2e_test.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-04-19 07:53:02 +00:00
Preston Van Loon
80ebbcf03e
gocognit: Lower complexity threshold to 100, fix a few complexity issues ( #10542 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-19 07:12:24 +00:00
terence tsao
32ebe94515
Clean up batch process block ( #10520 )
2022-04-19 06:44:25 +00:00
Håvard Anda Estensen
d2f4a8cc7c
Replace ioutil with io and os ( #10541 )
...
* Replace ioutil with io and os
* Fix build errors
2022-04-18 20:42:07 +00:00
Giulio rebuffo
982de94428
misleading comment in receive_block.go ( #10538 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2022-04-18 12:15:28 +00:00
terence tsao
a41025e5ec
Rename optimistic_sync.go to execution_engine.go ( #10537 )
...
* Rename optimistic_sync.go to execution_engine.go
* Update BUILD.bazel
2022-04-18 05:49:48 +00:00
terence tsao
3ce26ae7e2
Add process payload header ( #10529 )
...
* Add process payload header
* Update block.go
* Remove unused receivers
* Use errors vars
* Add some comments
* Add some comments
2022-04-17 07:02:59 +00:00
terence tsao
1acedd5b01
Rename receipt root to receipts root ( #10535 )
2022-04-16 13:18:07 +00:00
Radosław Kapka
a0679c70d3
Service constructors and Start()
- better separation of concerns ( #10532 )
...
* move waitForStateInitialization to Start
* remove channel
* handle error in test
* fix service tests
* use fatal log
* deterministic-genesis
* sync
* rpc
* monitor
* validator-client
* test fixes
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-04-16 02:45:35 +00:00
Radosław Kapka
3b69f7a196
Simplify Initial Sync ( #10523 )
...
* move waitForStateInitialization to Start
* remove channel
* handle error in test
* fix service tests
* use fatal log
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-04-15 13:32:31 +00:00
Nishant Das
72562dcf3a
Fix Another Off By 1 In Our Finalized Trie ( #10524 )
...
* fix everything
* fix more
* fix test
* Update beacon-chain/powchain/service.go
* Update beacon-chain/powchain/service.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-04-15 12:51:56 +00:00
terence tsao
cbe54fe3f9
Handle nil execution block response when logging TTD ( #10502 )
2022-04-13 19:47:04 -07:00
Nishant Das
1b6adca3ca
Handle Finalized Deposit Insertion Better ( #10517 )
2022-04-13 10:08:19 +02:00
Potuz
56187edb98
Use forkchoice first when checking canonical status ( #10516 )
2022-04-12 21:34:13 -03:00
Nishant Das
407182387b
fix it all ( #10511 )
2022-04-12 19:50:29 +08:00
terence tsao
ad0b0b503d
Move GetTerminalBlockHash
to powchain engine ( #10500 )
...
* Move GetTerminalBlockHash to powchain engine
* Update service.go
* Update service.go
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-12 10:19:07 +00:00
terence tsao
58f4ba758c
Metrics tracking EE VALID/SYNCING/INVALID response counter ( #10504 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-04-12 09:51:13 +00:00
terence tsao
e70055733f
Save state to DB after proposer boost ( #10509 )
2022-04-11 16:51:49 +00:00
Radosław Kapka
36e4f49af0
Bellatrix evaluators ( #10506 )
...
* defensive nil check
* separate ExecutionPayload/Header from codegen
* tell bazel about this new file
* Merge: support terminal difficulty override (#9769 )
* Fix finding terminal block hash calculation
* Update mainnet_config.go
* Update beacon_block.pb.go
* Various fixes to pass all spec tests for Merge (#9777 )
* Proper upgrade altair to merge state
* Use uint64 for ttd
* Correctly upgrade to merge state + object mapping fixes
* Use proper receive block path for initial syncing
* Disable contract lookback
* Disable deposit contract lookback
* Go fmt
* Merge: switch from go bindings to raw rpc calls (#9803 )
* Disable genesis ETH1.0 chain header logging
* Update htrutils.go
* all gossip tests passing
* Remove gas validations
* Update penalty params for Merge
* Fix gossip and tx size limits for the merge part 1
* Remove extraneous p2p condition
* Add and use
* Add and use TBH_ACTIVATION_EPOCH
* Update WORKSPACE
* Update Kintsugi engine API (#9865 )
* Kintsugi ssz (#9867 )
* All spec tests pass
* Update spec test shas
* Update Kintsugi consensus implementations (#9872 )
* Remove secp256k1
* Remove unused merge genesis state gen tool
* Manually override nil transaction field. M2 works
* Fix bad hex conversion
* Change Gossip message size and Chunk SIze from 1 MB t0 10MB (#9860 )
* change gossip size and chunk size after merge
* change ssz to accomodate both changes
* gofmt config file
* add testcase for merge MsgId
* Update beacon-chain/p2p/message_id.go
Change MB to Mib in comment
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* change function name from altairMsgID to postAltairMsgID
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* Sync with develop
* Merge branch 'develop' of github.com:prysmaticlabs/prysm into kintsugi
* Update state_trie.go
* Clean up conflicts
* Fix build
* Update config to devnet1
* Fix state merge
* Handle merge test case for update balance
* Fix build
* State pkg cleanup
* Fix a bug with loading mainnet state
* Fix transactions root
* Add v2 endpoint for merge blocks (#9802 )
* Add V2 blocks endpoint for merge blocks
* Update beacon-chain/rpc/apimiddleware/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* go mod
* fix transactions
* Terence's comments
* add missing file
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Sync
* Go mod tidy
* change EP field names
* latest kintusgi execution api
* fix conflicts
* converting base fee to big endian format (#10018 )
* ReverseByteOrder function does not mess the input
* sync with develop
* use merge gossip sizes
* correct gossip sizes this time
* visibility
* clean ups
* Sync with develop, fix payload nil check bug
* Speed up syncing, hide cosmetic errors
* Sync with develop
* Clean up after sync
* Update generate_keys.go
* sync with develop
* Update mainnet_config.go
* Clean ups
* Sync optimistically candidate blocks (#10193 )
* Revert "Sync optimistically candidate blocks (#10193 )"
This reverts commit f99a0419ef1efc4bda0be77f22165b8fe4377c0d.
* Sync optimistically candidate blocks (#10193 )
* allow optimistic sync
* Fix merge transition block validation
* Update proposer.go
* Sync with develop
* delete deprecated client, update testnet flag
* Change optimistic logic (#10194 )
* Logs and err handling
* Fix build
* Clean ups
* Add back get payload
* c
* Done
* Rm uncommented
* Optimistic sync: prysm validator rpcs (#10200 )
* Logs to reproduce
* Use pointers
* Use pointers
* Use pointers
* Update json_marshal_unmarshal.go
* Fix marshal
* Update json_marshal_unmarshal.go
* Log
* string total diff
* str
* marshal un
* set string
* json
* gaz
* Comment out optimistic status
* remove kiln flag here (#10269 )
* Sync with devleop
* Sync with develop
* clean ups
* refactor engine calls
* Update process_block.go
* Fix deadlock, uncomment duty opt sync
* Update proposer_execution_payload.go
* Sync with develop
* Rm post state check
* Bypass eth1 data checks
* Update proposer_execution_payload.go
* Return early if ttd is not reached
* Sync with devleop
* Update process_block.go
* Update receive_block.go
* Update bzl
* Revert "Update receive_block.go"
This reverts commit 5b4a87c512325d9f26de4db7f941dcd7303cd0d8.
* Fix run time
* add in all the fixes
* fix evaluator bugs
* latest fixes
* sum
* fix to be configurable
* Update go.mod
* Fix AltairCompatible to account for future state version
* Update proposer_execution_payload.go
* fix broken conditional checks
* fix all issues
* Handle pre state Altair with valid payload
* Handle pre state Altair with valid payload
* Log bellatrix fields
* Update log.go
* Revert "fix broken conditional checks"
This reverts commit e118db6c20172783a3bb573d2f78670f0207ec1e.
* LH multiclient working
* Friendly fee recipient log
* Remove extra SetOptimisticToValid
* fix race
* fix test
* Fix base fee per gas
* Fix notifypayload headroot
* tx fuzzer
* clean up with develop branch
* save progress
* 200tx/block
* add LH flags
* Sync with devleop
* cleanup
* cleanup
* hash
* fix build
* fix test
* fix go check
* fmt
* gosec
* Blocked stream
(cherry picked from commit f362af9862db680b6352692217ad5c08d44a1e86)
# Conflicts:
# proto/prysm/v1alpha1/validator.pb.go
* remove duplicate param
* test
* revert some test changes
* Initial version of EE tx count
* evaluate all txs in epoch
* remove logs
* uncomment tests
* remove unwanted change
* parameterize ExpectedExecEngineTxsThreshold
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Zahoor Mohamed <zahoor@zahoor.in>
Co-authored-by: kasey <489222+kasey@users.noreply.github.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: Zahoor Mohamed <zahoor@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-11 13:45:22 +00:00
terence tsao
d98428dec4
Can prune nodes from canonical and payload maps ( #10496 )
...
* Can prune nodes from canonical and payload maps
* Update store_test.go
* prune payload hashes, canonical nodes and better testing
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-04-11 11:08:50 +00:00
Nishant Das
00b92e01d3
Fetch Non Finalized Deposits Better ( #10505 )
2022-04-11 09:59:22 +02:00
Potuz
ca5adbf7e4
Fix optimistic logging ( #10503 )
2022-04-09 23:09:04 +00:00
Nishant Das
a083b7a0a5
Set Auth Differently In Our Powchain Constructor ( #10501 )
2022-04-09 11:03:05 +02:00
Raul Jordan
dd5995b665
Proper Connection Management for ETH JSON-RPC Client for Startup and Runtime ( #10498 )
...
* begin connection management revamp
* kiln runs
* retry
* reconnect
* add
* rpc connect fix
* remove logging
* logs
* retry
* default value for web3flag
* test pass
* comments
* ensure auth works
2022-04-09 09:28:40 +08:00
Potuz
ac8d27bcf1
Deal with node balance underflow ( #10492 )
...
* deal with balance underflow
* fix log format
* preston's review
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-04-07 17:38:48 +00:00
terence tsao
0411b7eceb
Payload ID caching ( #10481 )
2022-04-06 16:36:52 -07:00
Radosław Kapka
8dfc80187d
Fix receipts root field name in API Middleware ( #10488 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-06 21:56:11 +00:00
terence tsao
3833f78803
Remove invalid nodes ( #10399 )
2022-04-06 14:24:00 -07:00
Potuz
83a83279d4
Remove synced tips and use last valid hash ( #10439 )
...
* Remove synced tips
use last valid hash in removing invalid nodes.
* add test
* Remove unused code
* More unused parameters
* Fix proposer boost
* terence's review #1
* Fix conflicts
* terence's review 2
* rename argument
* terence's review #3
* rename optimistic -> status
* Minor clean up
* revert loop variable change
* do not mark lvh as valid
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-04-06 14:18:30 +00:00
terence tsao
bdab34fd01
Use correct head for notifyForkchoiceUpdate
( #10485 )
...
* Use correct head for notifyForkchoiceUpdate
* Fix existing tests
* Update receive_attestation_test.go
2022-04-06 19:05:53 +08:00
kasey
de0143e036
save origin block root before finalize ( #10463 )
...
* save origin block root before finalize
* add test for SaveOrigin
* goimports :(
* signature to LoadGenesis changed in a diff PR
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-04-05 17:13:53 +00:00
Nishant Das
2a7a09b112
Add Lock Analyzer ( #10430 )
...
* add lock analyzer
* fix locks
* progress
* fix failures
* fix error log
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-04-05 16:39:48 +00:00
terence tsao
984575ed57
Optimistic check: handle zeros check point root ( #10464 )
...
* Handle zero roots
* Update chain_info_test.go
* Update chain_info_test.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-05 14:37:25 +00:00
Nishant Das
927e338f9e
Enable Bellatrix E2E ( #10437 )
...
* Fix finding terminal block hash calculation
* Update mainnet_config.go
* Update beacon_block.pb.go
* Various fixes to pass all spec tests for Merge (#9777 )
* Proper upgrade altair to merge state
* Use uint64 for ttd
* Correctly upgrade to merge state + object mapping fixes
* Use proper receive block path for initial syncing
* Disable contract lookback
* Disable deposit contract lookback
* Go fmt
* Merge: switch from go bindings to raw rpc calls (#9803 )
* Disable genesis ETH1.0 chain header logging
* Update htrutils.go
* all gossip tests passing
* Remove gas validations
* Update penalty params for Merge
* Fix gossip and tx size limits for the merge part 1
* Remove extraneous p2p condition
* Add and use
* Add and use TBH_ACTIVATION_EPOCH
* Update WORKSPACE
* Update Kintsugi engine API (#9865 )
* Kintsugi ssz (#9867 )
* All spec tests pass
* Update spec test shas
* Update Kintsugi consensus implementations (#9872 )
* Remove secp256k1
* Remove unused merge genesis state gen tool
* Manually override nil transaction field. M2 works
* Fix bad hex conversion
* Change Gossip message size and Chunk SIze from 1 MB t0 10MB (#9860 )
* change gossip size and chunk size after merge
* change ssz to accomodate both changes
* gofmt config file
* add testcase for merge MsgId
* Update beacon-chain/p2p/message_id.go
Change MB to Mib in comment
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* change function name from altairMsgID to postAltairMsgID
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* Sync with develop
* Merge branch 'develop' of github.com:prysmaticlabs/prysm into kintsugi
* Update state_trie.go
* Clean up conflicts
* Fix build
* Update config to devnet1
* Fix state merge
* Handle merge test case for update balance
* Fix build
* State pkg cleanup
* Fix a bug with loading mainnet state
* Fix transactions root
* Add v2 endpoint for merge blocks (#9802 )
* Add V2 blocks endpoint for merge blocks
* Update beacon-chain/rpc/apimiddleware/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* go mod
* fix transactions
* Terence's comments
* add missing file
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Sync
* Go mod tidy
* change EP field names
* latest kintusgi execution api
* fix conflicts
* converting base fee to big endian format (#10018 )
* ReverseByteOrder function does not mess the input
* sync with develop
* use merge gossip sizes
* correct gossip sizes this time
* visibility
* clean ups
* Sync with develop, fix payload nil check bug
* Speed up syncing, hide cosmetic errors
* Sync with develop
* Clean up after sync
* Update generate_keys.go
* sync with develop
* Update mainnet_config.go
* Clean ups
* Sync optimistically candidate blocks (#10193 )
* Revert "Sync optimistically candidate blocks (#10193 )"
This reverts commit f99a0419ef1efc4bda0be77f22165b8fe4377c0d.
* Sync optimistically candidate blocks (#10193 )
* allow optimistic sync
* Fix merge transition block validation
* Update proposer.go
* Sync with develop
* delete deprecated client, update testnet flag
* Change optimistic logic (#10194 )
* Logs and err handling
* Fix build
* Clean ups
* Add back get payload
* c
* Done
* Rm uncommented
* Optimistic sync: prysm validator rpcs (#10200 )
* Logs to reproduce
* Use pointers
* Use pointers
* Use pointers
* Update json_marshal_unmarshal.go
* Fix marshal
* Update json_marshal_unmarshal.go
* Log
* string total diff
* str
* marshal un
* set string
* json
* gaz
* Comment out optimistic status
* remove kiln flag here (#10269 )
* Sync with devleop
* Sync with develop
* clean ups
* refactor engine calls
* Update process_block.go
* Fix deadlock, uncomment duty opt sync
* Update proposer_execution_payload.go
* Sync with develop
* Rm post state check
* Bypass eth1 data checks
* Update proposer_execution_payload.go
* Return early if ttd is not reached
* Sync with devleop
* Update process_block.go
* Update receive_block.go
* Update bzl
* Revert "Update receive_block.go"
This reverts commit 5b4a87c512325d9f26de4db7f941dcd7303cd0d8.
* Fix run time
* add in all the fixes
* fix evaluator bugs
* latest fixes
* sum
* fix to be configurable
* Update go.mod
* Fix AltairCompatible to account for future state version
* Update proposer_execution_payload.go
* fix broken conditional checks
* fix all issues
* Handle pre state Altair with valid payload
* Handle pre state Altair with valid payload
* Log bellatrix fields
* Update log.go
* Revert "fix broken conditional checks"
This reverts commit e118db6c20172783a3bb573d2f78670f0207ec1e.
* LH multiclient working
* Friendly fee recipient log
* Remove extra SetOptimisticToValid
* fix race
* fix test
* Fix base fee per gas
* Fix notifypayload headroot
* tx fuzzer
* clean up with develop branch
* save progress
* 200tx/block
* add LH flags
* Sync with devleop
* cleanup
* cleanup
* hash
* fix build
* fix test
* fix go check
* fmt
* gosec
* add deps
* cleanup
* fix up
* change gas price
* remove flag
* last fix
* use new LH version
* fix up
* fix finalized block panic
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Zahoor Mohamed <zahoor@zahoor.in>
Co-authored-by: kasey <489222+kasey@users.noreply.github.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Zahoor Mohamed <zahoor@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-05 14:02:46 +00: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
7d669f23ab
Sync: process pending block with optimistic parent ( #10480 )
2022-04-04 18:46:05 -07:00
terence tsao
9b64c33bd1
RPC: GetValidatorPerformance for Bellatrix ( #10482 )
2022-04-04 19:50:57 -04:00
Potuz
defa602e50
Adapt Doppelganger to Altair ( #9969 )
...
Co-authored-by: rkapka <rkapka@wp.pl>
2022-04-04 15:55:55 +02:00
Radosław Kapka
67c8776f3c
Fix execution payload field names in API Middleware ( #10479 )
2022-04-04 13:19:31 +02:00
Mohamed Zahoor
896d186e3b
process the optimistic blocks whose parent are optimistic too ( #10350 )
...
* process the optimistic blocks whose parent are optimistic too
* adding unit test
* fix test
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-04-03 23:57:52 -03:00
Raul Jordan
edb98cf499
Move Engine API to Powchain and Consolidate Connection Management ( #10438 )
...
* gazelle
* tests passing
* use the same engine client
* pass
* initialize in right place
* erge
* build
* imports
* ensure engine checks work
* pass powchain tests
* powchain tests pass
* deepsource
* fix up node issues
* gaz
* endpoint use
* baz
* b
* conf
* lint
* gaz
* move to start function
* test pass
2022-04-01 14:04:24 -04:00
Potuz
ce15823f8d
Save head after FCU ( #10466 )
...
* Update head after FCU
* rename function
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-04-01 00:08:01 +00:00
terence tsao
7cdc741b2f
Sync: don't set block to bad due to timeout ( #10470 )
...
* Add filter error and tests
* Update BUILD.bazel
* Kasey's feedback
2022-03-31 23:29:27 +00:00
terence tsao
5704fb34be
Remove duplicated engine mock ( #10472 )
...
* Rm mock
* udpate
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2022-03-31 19:14:09 -04:00
Potuz
177f9ccab0
Return historical non-canonical blocks as optimistic ( #10446 )
...
* Return historical non-canonical blocks as optimistic
* terence's review
2022-03-31 12:51:14 +00:00
Potuz
649dee532f
insert block to forkchoice after notifyNewPayload ( #10453 )
...
* insert block to forkchoice after notifyNewPayload
* Add optimistic candidate check
* Terence's review
* Apply suggestions from code review
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-03-31 09:17:49 -03:00
terence tsao
4b3364ac6b
Log terminal total difficulty status ( #10457 )
...
* Log terminal total diff status
* Update check_transition_config.go
* Update BUILD.bazel
* Update check_transition_config.go
* Update check_transition_config.go
* Update check_transition_config.go
2022-03-31 03:05:23 +00:00
kasey
0df8d7f0c0
refactor genesis state flag handling, support url ( #10449 )
...
* refactor genesis state flag handling, support url
* lint fix
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-03-30 22:23:34 +00:00
terence tsao
fe98d69c0a
Clean up blockchain pkg ( #10452 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-30 17:45:24 +00:00
Radosław Kapka
be6f3892e8
Align Beacon API with 2.2.0 spec ( #10455 )
2022-03-30 15:17:19 +00:00
Potuz
588605ceeb
Remove TODOs that were already taken care of ( #10454 )
2022-03-30 13:24:02 +00:00
Raul Jordan
56ab5872bb
Add Histogram Response Buckets to Engine API Methods ( #10414 )
...
* gaz
* defer payload func
* amend
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-28 22:17:31 +00:00
Raul Jordan
eb6d68a4b1
Deterministic Proposer Root Boosting in Forkchoice ( #10427 )
...
* begin refactor
* fix doubly linked tree tests
* pass
* fix up
* gaz
* buidl
* buidl more
* comment
* args check
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-28 21:34:41 +00:00
kasey
7920528ede
Checkpoint Sync 4/5 - enable checkpoint sync to be used by beacon node ( #10386 )
...
* enable checkpoint sync in beacon node
* lint fix
* rm unused error
* addressing PR feedback from Radek
* consistent slice -> fixed conversion
Co-authored-by: kasey <kasey@users.noreply.github.com>
2022-03-28 21:01:55 +00:00