Kasey Kirkham
760fe3cc2a
rebuild config index after loading dynamic config
2022-04-13 13:18:54 -05: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 f99a0419ef .
* 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 5b4a87c512 .
* 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 e118db6c20 .
* 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
kasey
cf0bd633f0
Checkpoint Sync 1/5 - fork/version detection and unmarshaling support ( #10380 )
...
* fork/version detection and unmarshaling support
* Update config/params/config.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update proto/detect/configfork.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* PR feedback
* move ssz initialization into the detect package
* clarify comment
* VersionForEpoch is much simpler/clearer in reverse
* simpler VersionForEpoch; build AllConfigs in init
* use fieldparams for Version
* Update proto/detect/configfork_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* remove custom ForkName type, use runtime/version
* pr cleanup
* random fix from bad gh ui suggestion; privatize
* privatize fieldSpec methods; + unit tests
* Update proto/detect/configfork.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
* fix bad github ui suggestion
* ensure unique versions for simpler config match
* fmt & adding unit test for ByState()
* table-driven unit test for ByState
* TestUnmarshalState
* OrderedSchedule -> network/forks per PR feedback
* goimports
* lint fixes
* move proto/detect -> ssz/encoding/detect
* use typeUndefined in String
* backport config tests from e2e PR
* fix config parity test; make debugging it easier
* lint
* fix fork schedule initialization
* cleanup
* fix build
* fix big ole derp
* anything for you, deep source
* goimportsss
* InitializeForkSchedule in LoadChainConfigFile
* PR feedback
Co-authored-by: kasey <kasey@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-03-21 19:43:41 +00:00
kasey
0b1a777d62
ran gofmt @ v1.17, these are the resulting changes ( #10362 )
...
* ran gofmt @ v1.17, these are the resulting changes
* fix some flaky tests that are tripping up this PR
* gofmt
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-03-14 15:58:13 -05:00
terence tsao
5461c5b84f
Insert stored fee recipient for ForkchoiceUpdated call ( #10349 )
...
* Add default
* Add and use fee recipient in db
* Update BUILD.bazel
* Feedback
* Add basic addr check
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-03-14 18:44:40 +00:00
Radosław Kapka
6dcf47675b
E2E BellatrixE2EForkEpoch constant ( #10240 )
...
* Add `BellatrixE2EForkEpoch` constant
* change epoch
* Config param
* revert e2e update
* disable linter
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-15 21:06:14 +00:00
terence tsao
26a2311c82
Clean up outdated bellatrix code ( #10225 )
...
* Rm outdated merge code
* Update config_test.go
* Native
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-11 04:40:12 +00:00
terence tsao
a82fd7bf68
Fix merge transition configs ( #10206 )
...
* Add proper merge configs
* Switch to bytes
* Use string
* Update mainnet_config.go
* Rm unused
* Fix test
* Update config_test.go
* Update beacon-chain/blockchain/pow_block.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update pow_block_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-09 18:15:29 +00:00
terence tsao
af8bafd895
Spectest 1.1.9 ( #10199 )
2022-02-07 20:50:11 -08:00
Potuz
cf18d5dd42
Add SafeSlotsToImportOptimistically beacon configuration flag ( #10190 )
...
* Add SafeSlotsToImportOptimistically beacon configuration flag
* fix e2e
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-06 03:14:56 +00:00
Nishant Das
e7e2f7850d
Cleanup Multiclient E2E ( #10180 )
2022-02-03 14:14:26 +01:00
Nishant Das
a70febbf56
E2E Config Cleanup ( #10178 )
2022-02-03 04:53:09 +00:00
Nishant Das
2b0f74904e
Multiclient E2E With Lighthouse ( #10020 )
...
* save work
* current progress
* fix it more
* save progress
* fixes so far
* add signature test
* fix up changes so far
* change to latest
* update lighthouse version
* fix build
* fix again
* do one
* clean up
* fix build
* fix it
* fix test
* change tag
* remove e2e
* Update config/params/testnet_e2e_config.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* update
* Update sha
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
2022-02-02 19:13:52 +00:00
Nishant Das
0802c8fe66
add new methods in ( #10173 )
2022-02-02 14:56:07 +08:00
Raul Jordan
65ec437ce5
Fork Choice Proposer Boost Changes ( #10083 )
...
* begin on proposer boost
* implement fork choice proposer boost algorithm
* boosting
* gaz
* add mutexes and previous root
* comment on compute proposer boost
* safe
* rem todo
* reset and add tests
* unit test for proposer boost score
* boost works
* ex ante
* test
* propoer test
* vanilla ex-ante attack
* test similar to spec test
* works works works
* boost test working for num votes > proposer boost weight
* commentary fixes
* rem unused
* comments
* boost necessary to sandwich unit test
* sad path
* gaz
* Update beacon-chain/forkchoice/protoarray/proposer_boost.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/forkchoice/protoarray/proposer_boost.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* gaz
* radek comments
* reset boosted root in on new slot
* pass
* broken tests
* cfg test
* modify e2e config
* Revert e2e changes
* Test
* Test again
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-01-29 16:32:01 +00:00
Nishant Das
5eafb80091
fix it ( #10145 )
2022-01-28 12:07:41 +08:00
Leo Lara
d9799e6b6c
#10036 Replace codename Merge with Bellatrix (2nd step) ( #10116 )
...
* Rename BeaconBlockBodyMerge to BeaconBlockBodyBellatrix
* Rename SignedBeaconBlockMerge to SignedBeaconBlockBellatrix
* Rename CopyBeaconBlockMerge to CopyBeaconBlockMerge
* Rename NewBeaconBlockMerge to NewBeaconBlockBellatrix
* Rename BeaconBlockMerge to BeaconBlockBellatrix
* Rename some comments and strings in pkg proto: Merge -> Bellatrix
* Rename PbMergeBlock to PbBellatrixBlock
* Many renames of merge -> bellatrix in proto package
* Rename some Merge -> Bellatrix in beacon chain package
* More names
* Fix formating in config/params/config.go
* Rename Merge -> Bellatrix in proto/prysm/storage
* Several renames and corrections Merge -> Bellatrix
Co-authored-by: Potuz <potuz@potuz.net >
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: Potuz <potuz@potuz.net >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-01-26 07:24:47 +00:00
terence tsao
288b38be8e
Bellatrix p2p changes ( #10072 )
...
* Add `process_execution_payload` to `process_block`
* bring in bellatrix p2p changes
* lint
* fix testcase to use MaxChunkSize as config to change allowed size instead of config
* add left out config params
* Fix TestForkSchedule_CorrectNumberOfForks
* fixed Nishant's comments
* gofmt
* add switch case
Co-authored-by: Mohamed Zahoor <zahoor@zahoor.in >
Co-authored-by: Zahoor Mohamed <zahoor@prysmaticlabs.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-01-20 22:12:15 +08:00
Leo Lara
b1c2454658
#10036 Replace codename Merge with Bellatrix (1st step) ( #10044 )
...
* Rename BeaconStateMerge to BeaconStateBellatrix
* Rename version.Merge to version.Bellatrix
* Rename ComputeFieldRootsWithHasherMerge to ComputeFieldRootsWithHasherBellatrix
* Rename test names to Bellatrix
* Rename comments and strings to Bellatrix
* Fix formatting in a few files
* Revert wrong renaming in test name
* Revert renaming to Bellatrix in mainnet_config.go
* Revert renaming of db key without migration
* Regenerate from proto changes
* Rename new use of already renamed symbols
* gofmt and goimports after regenerating protofiles
* revert weird imports
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
2022-01-10 16:47:30 +00:00
terence tsao
9f27af43cb
Spectest 1.1.8 ( #10041 )
...
* Update spec test to v1.1.8
* Update names
* Update network repo
* Update WORKSPACE
* Better names
* Update beacon-chain/core/time/slot_epoch.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2021-12-26 23:18:28 +00:00
terence tsao
09690590f0
Update spec test to v1.1.7 ( #10033 )
2021-12-23 21:33:41 +00:00
terence tsao
b38b0186b8
Use signature length from fieldparams ( #10019 )
...
* Use bls sig length from fieldparams
* fmt
* fix tests
* fix tests
* fix tests
* Update tags_test.go
* fix tests
* Update BUILD.bazel
2021-12-15 15:14:30 -05:00
terence tsao
9629c354f1
Use merge configs for processing ( #9982 )
2021-12-08 11:02:53 -08:00
terence tsao
afb49aaeb9
Add and use merge penalty params ( #9878 )
...
* Add and use merge penalty params
* add attester slashing test
* Update config_test.go
* Use DeterministicGenesisStateMerge
2021-12-03 22:00:34 +00:00
terence tsao
2c921ec628
Update spec tests to v1.1.6 ( #9955 )
...
* Update spec test to v1.1.6
* Update spec test to v1.1.6
2021-11-30 21:21:59 +00:00
terence tsao
d8aa0f8827
Alter config filed name to devnet if it's not populated in file ( #9949 )
2021-11-29 19:27:26 -08:00
terence tsao
cd1e3f2b3e
Rename coinbase to fee recipient ( #9918 )
...
* Rename coinbase to fee recipient
* Fix imports
* Update field name
* Fee receipient
* Fix goimports
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-11-23 17:49:06 +00:00
terence tsao
e3246922eb
Add merge state type definitions ( #9908 )
2021-11-16 08:36:13 -08:00
terence tsao
70d5bc448f
Add cli override setting for merge ( #9891 )
2021-11-12 12:01:14 -08:00
terence tsao
672fb72a7f
Update spec tests to v1.1.5 ( #9875 )
...
* Update spec tests to v1.1.5
* Ignore `TERMINAL_BLOCK_HASH_ACTIVATION_EPOCH`
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-11-10 02:41:16 +00:00
terence tsao
341a2f1ea3
Use math.MaxUint64 ( #9857 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-11-04 18:48:09 +00:00
Preston Van Loon
c94ba40db2
config: ensure config matches altair presets ( #9690 )
...
* config: ensure config matches altair presets
* gofmt
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2021-09-28 20:02:12 +00:00
Radosław Kapka
c32090aae5
Allow sending Altair blocks to /eth/v1/beacon/blocks ( #9685 )
...
* Allow sending Altar blocks to `/eth/v1/beacon/blocks`
* tests
* add documentation
* fix ineffectual assignment
* change type of sync committee bits
* remove unused import
* fix Altair epoch calculation
* compare slot against slot
* do not publicly export E2E constant
* tests for setInitialPublishBlockPostRequest
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-28 19:07:32 +00:00
Radosław Kapka
8a6e2a5c63
Add MIN_SYNC_COMMITTEE_PARTICIPANTS parameter to config ( #9689 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2021-09-28 16:54:12 +00:00
Preston Van Loon
cbb4361c64
Update spectests to v1.1.0 ( #9680 )
...
* Update spectests to v1.1.0
* ignore placeholder fields, fix spec config check
2021-09-28 00:50:06 +00:00
terence tsao
328e3e6caf
Update mainnet_config.go ( #9678 )
2021-09-27 13:39:55 -07:00
terence tsao
ea9ceeff03
Various clean up before v2 ( #9672 )
...
* Update package names
* Various clean up
* Gazelle
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-24 17:42:16 +00:00
Raul Jordan
a9a4bb9163
Move Shared/Testutil into Testing ( #9659 )
...
* move testutil
* util pkg
* build
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-23 18:53:46 +00:00
Nishant Das
57b7bf6ea0
Update Mainnet Bootnodes ( #9656 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-23 16:23:01 +00:00
Raul Jordan
29513c804c
Create Encoding Bytesutil ( #9658 )
...
* bytesutil
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-23 15:23:37 +00:00
Raul Jordan
f3d6dbcc1e
Move Shared/Params Into Config/Params ( #9642 )
...
* config params into pkg
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-21 19:59:25 +00:00