kmax.eth
1619d880d4
fix TestSyncHandlers_WaitTillSynced ( #10328 )
...
* fix TestLockUnlock_CleansUnused
* fix TestSyncHandlers_WaitTillSynced
The test is failing silently (while go test showing 'PASS') due to panic caused by feed type mismatch. As a result, intended testing logic is not exercised at all. There are a couuple fixes here:
1. fix the feed event type to be pointer
2. add seendCache to avoid nil pointer panic
3. fill block in beaconDB so validateBeaconBlockPubSub gets short cut
4. replace time.Sleep() with deterministic channel waiting
* handle cancel func
2022-03-09 05:42:03 +00:00
Potuz
57a323f083
Forkchoice featureflag ( #10299 )
...
* Compiling main beacon-chain binary
* Add feature flag
* passing protoarray tests
* passing nodetree tests
* passing blockchain package tests
* passing rpc tests
* go fmt
* re-export forkchoice store from blockchain package
* remove duplicated import
* remove unused var
* add nodetree rpc method
* remove slot from IsOptimisticForRoot
* release lock in IsOptimistic
* change package name
* Revert "change package name"
This reverts commit 679112f9ef795922c631e7823dbdfb3746838f3c.
* rename package
* Update doc
* Fix span names
* Terence + Raul review
* remove go:build flags
* add errors dep
* spec tests
* fix call to IsOptimisticForRoot
* fix test
* Fix conflict
* change name of function
* remove ctx from store.head
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-03-09 03:05:51 +00:00
terence tsao
cde58f6924
Rest of kiln changes ( #10319 )
...
* Update configs
* gazelle
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-07 19:47:08 +00:00
Preston Van Loon
78fe712e53
Validator: deduplicate fork logic for block proposals ( #10297 )
...
* Deduplicate block proposals
* fix tests, more dedup of tests
* Add godoc to BuildSignedBeaconBlock.
* Rename SignRequest_Object => SignRequestObject
* Fix error messages
* Add tests for new methods
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-07 19:18:54 +00:00
terence tsao
40e5a5d796
RPC: add prepare execution payload ( #10311 )
...
* Add prepare execution payload
* Add prepare execution payload
* Add prepare execution payload
* Update client.go
* Update proposer_execution_payload.go
* Update proposer_execution_payload_test.go
* Handle post bellatrix finalied blk
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_execution_payload.go
* Use BeaconBlockIsNil
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-03-07 18:43:20 +00:00
Radosław Kapka
87507cbfe2
Support Bellatrix state in getStateV2
standard API ( #10314 )
2022-03-07 17:56:54 +01:00
Mohamed Zahoor
b516cfd998
cherry picked PR of #10233 ( #10301 )
...
* fix merge conflicts
* fix more merge conflicts
* fix fmt
* remove unnecessary cfg
* setting bad block if the bellatrix validation fails
* added an edge condition
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-07 13:19:07 +00:00
Mohamed Zahoor
a103dd91c0
cherry picked PR for #10274 ( #10300 )
...
* ignore topic messages (except block topic) during optimistic sync
* address review comments
* nit pick fix
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-03-06 08:09:12 +00:00
terence tsao
74fe2cc8d0
Spawn attestation routine at a better place ( #10303 )
...
* Spawn attestation routine at a better place
* Revert
* Update service.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-04 22:25:04 +00:00
Nishant Das
a4bbaac262
Add Better Error Logs for Context Deadlines ( #10310 )
...
* better log here too
* remove period
* Update beacon-chain/p2p/pubsub.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-03-04 16:21:19 +00:00
Nishant Das
1af11885ee
Remove Support for 2d-list Hashers ( #10290 )
...
* add changes
* fix logic bug
* fix
* potuz's review
* Update beacon-chain/state/stateutil/eth1_root.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-03-04 15:19:07 +00:00
Nishant Das
0b559afe30
Better Error Log In Context Deadlines ( #10309 )
...
* add better error log
* radek's review
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-04 09:54:06 +00:00
terence tsao
69618d157a
Bellatrix validator terminal block helpers ( #10305 )
...
* Add get transition block
* Update proposer_execution_payload.go
2022-03-03 15:00:11 -05:00
Nishant Das
fa750650ed
Disable Vectorized HTR from Our Dev Flag ( #10304 )
2022-03-03 03:49:26 +00:00
terence tsao
7303985232
Validator RPC: add optimistic status check ( #10291 )
...
* Add optimistic status check
* Simplify a bit more
* Update status_test.go
* Add non opt tests
* Update aggregator_test.go
* More tests
* Preston's feedback
2022-03-03 00:16:34 +00:00
Raul Jordan
958dd9d783
Check Engine API Transition Configuration in Background ( #10250 )
...
* transition proto
* gen pb
* builds
* impl transition config
* begin tests
* transition config messed up
* amend proto
* use str
* passing
* gaz
* config
* client test
* pb
* set to 0
* rem log
* gaz
* check transition config
* check config differences
* check transition config in background
* gaz
* pass
* redundant
* fix up error handling and healthz
* simplify status
* gazelle
* build
* err config check
* test
* gaz
* Fix run time
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-01 21:38:51 +00:00
terence tsao
d64f6cb7a8
Add engine methods to block processing ( #10285 )
...
* Add notify newPayload and forkchoiceUpdate
* Tests
* Raul's feedback
* Update optimistic_sync.go
* Simplify
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-01 16:43:06 +00:00
terence tsao
a9a75e0004
Release lock before return validatedTips
( #10289 )
...
* Release lock before return
* add test
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-03-01 15:36:47 +00:00
Nishant Das
339540274b
Integration of Vectorized Sha256 In Prysm ( #10166 )
...
* add changes
* fix for vectorize
* fix bug
* add new bench
* use new algorithms
* add latest updates
* save progress
* hack even more
* add more changes
* change library
* go mod
* fix deps
* fix dumb bug
* add flag and remove redundant code
* clean up better
* remove those ones
* clean up benches
* clean up benches
* cleanup
* gaz
* revert change
* potuz's review
* potuz's review
* potuz's review
* gaz
* potuz's review
* remove cyclical import
* revert ide changes
* potuz's review
* return
2022-02-28 21:56:12 +08:00
Raul Jordan
12ba8f3645
Renaming Random in ExecutionPayloads to PrevRandao ( #10283 )
...
* rename proto
* p header
* regen
* regen ssz
* fix randao
* random name changes
* bazel builds
* bt
* incorrect prev randao
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-26 03:47:16 +00:00
Raul Jordan
f3a7f399c0
Engine API Client Authentication for the Merge via HTTP ( #10236 )
...
* round tripper with claims
* auth
* edit auth
* test out jwt
* passing
* jwt flag
* comment
* passing
* commentary
* fix up jwt parsing
* gaz
* update jwt libs
* tidy
* gaz
* lint
* tidy up
* comment too long
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2022-02-25 19:08:43 +00:00
terence tsao
2fb4ddcbe7
Engine API: add payload status handling and tests ( #10282 )
...
* Add status handling and tests
* Update client.go
* Fmt
* Update mock_engine_test.go
* Update client_test.go
2022-02-24 19:35:01 +00:00
Radosław Kapka
1c2e463a30
--api-timeout
flag (#10260 )
...
* `--api-timeout` flag
* simplify code
* review feedback
* better error handling
* better docs
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-24 18:01:37 +00:00
terence tsao
02a088d93c
Add validate_merge_block
( #10273 )
...
* Add
* Update pow_block.go
* Update BUILD.bazel
* Update beacon-chain/blockchain/pow_block.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* feedbacks
* Feedbacks
* Fmt
* Update BUILD.bazel
* Update BUILD.bazel
* Update pow_block_test.go
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-23 22:41:11 +00:00
terence tsao
8cadb2ac6f
Update IsOptimistic
to always false ( #10276 )
...
* Update to always false
* Use epoch
* Update chain_info_test.go
* Update chain_info_test.go
2022-02-23 20:16:45 +00:00
terence tsao
7719356b69
Add opt sync bool to IsOptimistic
( #10270 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-22 16:46:42 +00:00
Raul Jordan
75b9bdba7c
Small Comment Fix in Exchanging Transition Config ( #10271 )
2022-02-22 16:16:02 +00:00
Nishant Das
525c818672
Remove SSZ Cache ( #10256 )
...
* remove ssz cache
* gaz
* lint
* analyze more
* fix
2022-02-22 17:27:51 +08:00
terence tsao
a55fdf8949
Use type string for total_difficulty
( #10265 )
...
* Use string for difficulty
* fix go
* fix test
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-02-21 14:03:12 +00:00
Preston Van Loon
c5189a6862
Deduplicate TestProposer_ProposeBlock_OK ( #10266 )
...
* Deduplicate tests for TestProposer_ProposeBlock
* remove erroneous save of block
* ensure block root is returned
2022-02-19 22:52:03 +00:00
Nishant Das
ced24892a5
Cleanup Powchain Service ( #10259 )
...
* add cleanup
* gaz
* Fix test build
2022-02-18 14:13:31 +00:00
Raul Jordan
0f58c9a925
Exchange Transition Configuration for Engine API ( #10248 )
...
* transition proto
* gen pb
* builds
* impl transition config
* begin tests
* transition config messed up
* amend proto
* use str
* passing
* gaz
* config
* client test
* pb
* set to 0
* rem log
* gaz
2022-02-16 00:56:23 +00:00
terence tsao
cc637bad4a
Fix ForkchoiceUpdatedResponse
json tag ( #10243 )
2022-02-15 15:49:36 +00:00
Potuz
f5719f8c8e
Fix updateCanonicalNodes ( #10241 )
...
* Fix updateCanonicalNodes
* fix logic
* terence's review
2022-02-14 21:30:26 +00:00
Radosław Kapka
c5c039fd6b
Unify GenesisValidator(s)Root
throughout the codebase ( #10230 )
...
* Unify `GenesisValidator(s)Root` throughout the codebase
* comments and literals
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-02-14 13:34:38 +00:00
Radosław Kapka
4d9947543f
Native state feature flag ( #10232 )
...
* add flag
* working version
* rename flag
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-14 12:33:02 +00:00
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
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
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