Michael Neuder
7370c42bae
Adding nil error check to connection status for ETH1 nodes ( #10186 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-02-14 10:21:45 +00:00
Radosław Kapka
3c76cc3af5
Return state interface from native state constructors ( #10208 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-14 17:51:22 +08:00
terence tsao
28af5bc601
Fix eth_getBlockByHash
call ( #10239 )
...
* Update client.go
* Update client_test.go
2022-02-13 16:33:11 +00:00
terence tsao
c9f299b50a
Clean up fork choice ( #10226 )
...
* Clean up fork choice
* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/forkchoice/protoarray/store_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/forkchoice/protoarray/store_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update store.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-02-12 03:33:46 +00:00
terence tsao
9dfb385160
Pad fields to correct length ( #10237 )
...
* Pad fields to correct length
* Use constants
* builds
* Fix test
* Update BUILD.bazel
* tests
* passing
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-12 01:58:09 +00:00
Raul Jordan
b1774efeb7
Fix JSON Marshal/Unmarshal for Execution Block ( #10238 )
2022-02-12 01:06:28 +00:00
Potuz
4b3a723166
Do not stop on error loading synced tips ( #10235 )
...
* Do not stop on error loading synced tips
* Terence's review
* Update beacon-chain/blockchain/optimistic_sync.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-11 21:46:53 +00:00
terence tsao
50f253619e
Fix engine client method names ( #10234 )
...
* Fix engine client method names
* Typo
2022-02-11 16:12:11 -05:00
james-prysm
753afb4fb2
small fix for web3signer ( #10223 )
2022-02-11 09:41:31 -05:00
Leo Lara
1835f54197
Refactor for DRY state getters_validator_test and getters_test ( #10117 )
...
* Refactor for DRY state getters_validator_test and getters_test
* Add BUILD.bazel to beacon-chain/state/testing
* Handle type assertion error in beacon-chain/state tests
* Fix with gazelle
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-02-11 14:48:29 +08: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
Potuz
9f419bee7d
Remove unnecessary reassignement ( #10224 )
2022-02-10 23:51:20 -03:00
james-prysm
d04eaf8fa0
Better DB Logging ( #10215 )
...
* initial commit
* initial commit
* reverting change
* reverting change
* Update beacon-chain/node/node.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/db/kv/kv.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-10 23:15:01 +00:00
Potuz
82ceb51548
Load Synced Tips when starting from Finalized State ( #10196 )
...
* Load Synced Tips when starting from Finalized State
* Terence's review #1
* Fix tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-10 22:18:42 +00:00
Potuz
6a2ef13b87
add metrics for synced tips ( #10221 )
...
* add metrics for synced tips
* Update beacon-chain/forkchoice/protoarray/metrics.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-10 18:48:46 +00:00
Potuz
72a2dd004b
Fix integer overflow ( #10222 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-02-10 15:20:36 -03:00
Raul Jordan
1a0e16a48b
Initialize the Engine API Client in the Beacon Chain's Powchain Service ( #10217 )
...
* define engine caller
* gaz
* Update cmd/beacon-chain/flags/base.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-10 16:46:31 +00:00
Nishant Das
bff5c1e1a9
Handle Bellatrix Fork Epochs Correctly ( #10219 )
...
* handle it properly
* Update beacon-chain/sync/fork_watcher.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/sync/fork_watcher.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-10 16:15:55 +00:00
Nishant Das
3f5ce0cdca
Handle a ZeroHash as our Eth1 Genesis Block Root ( #10218 )
2022-02-10 11:28:57 +00:00
terence tsao
d51b52d432
Add pow block protobuf ( #10205 )
...
* Add pow_block protobuf
* Revert hash changes
This reverts commit 4afb280385a411b65e960033f4d74f0ba74bc686.
* Revert "Add pow_block protobuf"
This reverts commit 4afb280385a411b65e960033f4d74f0ba74bc686.
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 22:27:30 +00:00
Raul Jordan
7b5a821c81
Implement Execution Engine Client ( #10185 )
...
* add in fixtures
* handle real fixtures
* marshaling issues
* ensure error handling works
* begin http client test
* custom type marshaling
* gaz
* custom type
* marshalers
* builds
* builds
* add to build file
* regen
* only root types
* bytes hash
* regen
* bytes hash
* regen
* regen
* alias magic
* revert proto
* more alias magic
* revert build files
* regen
* define marshal methods
* tests passing
* hexbytes
* rem
* rem
* comment
* gaz
* data
* fix conf
* http tests
* sync
* client tests passing
* deepsource
* gaz
* item
* exec block by hash
* begin tests
* http tests passing
* payload id bytes
* proper json encode decode for payload id
* gaz
* proper marshal
* merge engine client
* use big ints
* passes
* confirmed passing
* add in functional methods
* deepsource
* pb
* Update beacon-chain/powchain/engine-api-client/v1/client_test.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* latest
* tests passing again
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-09 20:54:56 +00:00
Mohamed Zahoor
f89265f2f7
Adding a new method in HeaderFetcher ( #10212 )
...
* Is optimisyic for root
* add the function in mock chainservice also
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-09 20:21:15 +00:00
james-prysm
c731b715ed
Keymanager-Kind: fix cli kind parsing and allow for backward compatability ( #10211 )
...
* initial commit with unit tests
* reverting and adding in comments
2022-02-09 14:40:52 -05:00
Radosław Kapka
2a68c69d8f
Beacon Node API Postman collection ( #10213 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2022-02-09 18:42:23 +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
james-prysm
9c540627ab
default allowList for validator ( #10210 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-02-09 17:18:49 +00:00
james-prysm
11f50453fc
Keymanager api postman test collection ( #10209 )
...
* initial commit
* adding keymanager api repo url
* updated postman collection
* removing unused folder
* removing validator build
* Update hack/keymanager-api/README.md
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update hack/keymanager-api/README.md
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update hack/keymanager-api/README.md
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-02-09 16:48:08 +00:00
Potuz
5f8b01ccda
Make UpdateSyncedTips safe for context cancellation ( #10174 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-09 14:54:27 +00:00
Nishant Das
d800107927
Add Peer Scorer to Dev Mode ( #10207 )
2022-02-09 13:51:59 +01:00
Nishant Das
d3d5cfca0b
Peer Score Evaluator ( #9717 )
...
* eval stuff
* change up
* update dep
* go mod tidy
* gaz
2022-02-09 09:53:25 +00:00
Potuz
18ef760ee5
Add DeleteBlock() ( #10203 )
...
* Add DeleteBlock()
* Raul review #1
* Update comments
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-02-08 23:26:26 +00:00
james-prysm
14e3e80df3
Keymanager api alignment ( #10176 )
...
* keymanager-api
* import updates to standards
* adding in more unit tests and code fixes to improve api experience
* deleting accidently generated files
* deleting accidently generated files
* adding in more test coverage
* fixing linter issue
* removing incorrect unit tests
* improving logic for accounts import
* linter fix
* addressing review comments
* fixing based on comments
* fixing nonzero root
* fixing protos
* regen protos
* adjusting protos again
* updating api specs
* fixing code and unit tests after specs changed
* fixing imports
* adding in required changes for api middleware also adding unit tests to catch changes for protos
* fixing deepsource issues
* fixing linting
* seeing if using pointers helps
* addressing comments
* updating bazel build
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-02-08 13:13:36 -06:00
Raul Jordan
3bea0e7896
ExecutionBlock Protobuf Type for the Merge ( #10201 )
...
* exec block
* exec block
* base fee
* regen
* exec block test
* fmt
* bytes for big ints
* engine pb
* passing
* add size
* bytes
* size
* size bytes
* passing
2022-02-08 18:06:02 +00:00
Radosław Kapka
8455656597
Use beacon state interfaces instead of concrete structs ( #10195 )
...
* return interface from testing/util
* remove usages of v1
* return interface from InitializeFromProto
* return interface from InitializeFromProto
* fix test
* fix interface visibility
* more fixes
* use InitializeFromProtoUnsafe in testing/util
* return early error from mock
* v2
* fix tests
* remove unnecessary assertion
* use struct in nil state test
* Revert "Auxiliary commit to revert individual files from 6bb528c2c5df2446ad18450009f63f44318d41a9"
This reverts commit 7d70238a301209f6dbfc8ff1d81b16e33b0bd67d.
* use struct in sync committee test
* v3
* use InitializeFromProtoUnsafe in mock
* use version information
* Revert "Auxiliary commit to revert individual files from 6bb528c2c5df2446ad18450009f63f44318d41a9"
This reverts commit 5d5e6f2884d21caec7530c16ad2a0d0d27c44aa1.
* revert changes to ClearPreGenesisData
* fix build error
* remove error from PreGenesisState
* bzl
2022-02-08 09:30:06 +00:00
terence tsao
af8bafd895
Spectest 1.1.9 ( #10199 )
2022-02-07 20:50:11 -08:00
terence tsao
c538a6c068
Add propose bellatrix block ( #10189 )
...
* Add propose bellatrix block
* Update BUILD.bazel
2022-02-08 01:29:11 +00:00
Raul Jordan
d5eb8392b6
Engine API Client Custom Marshaling ( #10188 )
...
* custom type marshaling
* gaz
* custom type
* marshalers
* builds
* builds
* add to build file
* regen
* only root types
* bytes hash
* regen
* bytes hash
* regen
* regen
* alias magic
* revert proto
* more alias magic
* revert build files
* regen
* define marshal methods
* tests passing
* hexbytes
* rem
* rem
* comment
* gaz
* data
* builds
* passing
2022-02-07 17:13:01 +00:00
Potuz
4906a0e6de
add isOptimisticCandidateBlock and IsExecutionBlock ( #10191 )
...
* add isOptimisticCandidateBlock and IsExecutionBlock
* remove check
* fix tests
* Align with spec, reuse helper `ExecutionBlock`
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-02-07 01:26:20 +00:00
terence tsao
168e06e607
Save sync tips to DB ( #10171 )
...
* Save sync tips to DB
* Fix build
* Update process_block_test.go
* Copy map
* Revert back to nil
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-06 18:00:47 +00: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
Potuz
aeb6940935
Prune synced tips ( #10143 )
...
* Prune synced tips
* Terence's minor cleanups
* Update optimistic_sync.go
* go fmt
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-02-05 20:24:02 +00:00
Potuz
4020a603b6
Invalid synced tips ( #10154 )
...
* add synced_tips structure
* create optimisticStore type
* Add UpdateSyncedTips
* use context
* update comment
* use better context cancellation
* reinsert removed error from different PR
* Minor clean ups
* remove invalid nodes from forkchoice
* Update beacon-chain/forkchoice/protoarray/optimistic_sync.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* Add check for tip status
* Terence's minor cleanups
* Potus' feedbacks
* Update optimistic_sync.go
* Add erorr
* Synced
* update weights
* Add context error check
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-03 22:57:15 +00:00
terence tsao
3a5cfab5f2
Add IsOptimistic
chain info getter ( #10184 )
...
* Add chain info getter
* Interface
* Test
* Update mock.go
* Go fmt
* Update beacon-chain/blockchain/testing/mock.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-02-03 21:30:07 +00:00
james-prysm
8e5ba13352
Fix Small Bug in Genesis Validators Root Validation Func ( #10183 )
...
* initial commit
* switching to table driven test
2022-02-03 20:58:25 +00:00
Nishant Das
e7e2f7850d
Cleanup Multiclient E2E ( #10180 )
2022-02-03 14:14:26 +01:00
terence tsao
c8748260fd
Implement is_valid_terminal_pow_block
( #10172 )
...
* add validator terminal block difficulties
* Fix test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-03 05:28:23 +00:00
Nishant Das
a70febbf56
E2E Config Cleanup ( #10178 )
2022-02-03 04:53:09 +00:00
Raul Jordan
55ce1ccc33
Engine API Client Skeleton and Configuration ( #10177 )
2022-02-02 19:46:27 -08:00
Preston Van Loon
28e0dc5d09
Tool to print current eth1data votes ( #9335 )
...
* Initial progress on eth1data votes reporting tool
* gofmt
* add pyrmont genesis time to help txt
* Fix eth1voting tool
* correct Prater genesis time
* Update so it builds
* Add a README
* gofmt
Co-authored-by: rkapka <rkapka@wp.pl>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-02 20:41:14 +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