Nishant Das
58f7e942f2
Fix Mnemonic Validation ( #10354 )
...
* fix mnemonic validation
* potuz's review
* Add fuzz test for wallet recover
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com>
2022-03-14 07:30:11 +08:00
Potuz
3f1e3cf82f
remove optimistic control flag ( #10340 )
...
* remove optimistic control flag
* Rename
* More
* More
* redundant return
* fix conflict
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-03-12 17:32:04 +00:00
terence tsao
60003c481b
Add unlock to IsOptimistic
returns ( #10341 )
...
* Add unlock to returns
* add regression test
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-11 10:36:47 +00:00
Preston Van Loon
c1197d7881
Add static analysis for unsafe uint casting ( #10318 )
...
* Add static analysis for unsafe uint casting
* Fix violations of uintcast
* go mod tidy
* Add exclusion to nogo for darwin build
* Add test for math.Int
* Move some things to const so they are assured not to exceed int64
* Self review
* lint
* fix tests
* fix test
* Add init check for non 64 bit OS
* Move new deps from WORKSPACE to deps.bzl
* fix bazel build for go analysis runs
* Update BUILD.bazel
Remove TODO
* add math.AddInt method
* Add new test casts
* Add case where builtin functions and declared functions are covered
* Fix new findings
* cleanup
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-03-11 09:34:30 +00:00
Nishant Das
693cc79cc9
Minor Cleanup from #10255 ( #10337 )
...
* minor cleanup
* kasey's review
* kasey's review
2022-03-11 07:34:15 +00:00
kasey
23778959eb
this is safer if a goroutine require fails ( #10344 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
2022-03-11 05:29:52 +00:00
kasey
92278e2255
fix TestValidator_WaitForKeymanagerInitialization_Web race ( #10343 )
...
* TestValidator_WaitForKeymanagerInitialization_Web
* gofmt
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
2022-03-10 20:04:27 -06:00
james-prysm
c58ce41b3b
Flagutil: utility for json file from directory or url and unmarshal to struct ( #10333 )
...
* initial commit
* adding first testcase wip
* fixing test
* adding more unit tests
* adding bazel file
* adding more unit tests and file checks
* addressing comments
* refactoring based on comments
* added bazel
* fixing build
2022-03-10 14:25:26 -06:00
kasey
d3b09d1e9d
--curses=no for cleaner logs (no term refresh) ( #10334 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-10 18:05:36 +00:00
Michael Neuder
27082e2cd2
Adding ExtractKeystores to the Keymanager interface ( #10313 )
...
* adding ExtractKeystores to the Keymanager interface
* adding ExtractKeystore to mockKeymanager struct types
* bazel run //:gazelle -- fix
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com>
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2022-03-10 17:19:04 +00:00
terence tsao
12080727ea
Save and retrieve fee recipients for db ( #10336 )
...
* Can save fee recipients in db
* Update BUILD.bazel
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2022-03-10 15:05:10 +00:00
Potuz
a731b8c0bc
Boost proposer later ( #10338 )
...
* Boost Proposer after inserting block
* add regression test
2022-03-10 13:13:06 +00:00
Raul Jordan
f6eed74500
PrepareBeaconProposer Protobuf Schema ( #10332 )
...
* prepare v1 protos
* add in protos
* prepare beacon proposer
* stubs
* builds
* gaz
* build
* rem
* ssz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-09 21:40:26 +00:00
Potuz
329a4a600c
Add USE_PRYSM_MODERN environment variable ( #10229 )
...
* Add USE_PRYSM_MODERN environment variable
* fix deepsource
* change naming convention
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-09 21:00:12 +00:00
terence tsao
7ce712bb5e
Kiln run time changes ( #10321 )
...
* First take
* Update proposer_execution_payload.go
* Update optimistic_sync_test.go
* Add tests
* Update proposer_execution_payload.go
* Fix tests
* Add deprecation
* Fix bad merge
* New test
* Update beacon-chain/core/blocks/payload.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Proposer test can get and compare payload
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2022-03-09 20:26:23 +00:00
kasey
17a43c1158
Retrieving state by slot to always apply canonical block at slot, when available ( #10255 )
...
* new stategen.StateReplayer/ReplayerBuilder to give more fine-grained
control of replaying state+block history
* all rpc/api methods updated to use the new interface, return post-state
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-03-09 13:33:18 -06:00
Radosław Kapka
77b8b13eff
Bellatrix API support for block endpoints ( #10324 )
...
* refactor GetBlockV2
* Add bellatrix to GetBlockSSZV2
* Add bellatrix to ListBlockAttestations
* Add bellatrix to SubmitBlock
* gzl
* return error from SubmitBlock
* return nil
* Better code flow when getting blocks
* remove tautology
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-09 17:18:52 +00:00
Potuz
b59484b285
Export SetOptimisticToInvalid ( #10330 )
...
* temp
* export remove invalid blocks
2022-03-09 13:50:57 -03:00
Radosław Kapka
1964fb8146
Correct package name in features' README file ( #10329 )
2022-03-09 14:24:00 +00:00
Nishant Das
63825290cb
Handle Port Registration Better ( #10325 )
2022-03-09 13:52:50 +01:00
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
kmax.eth
af2b858aa2
fix TestLockUnlock_CleansUnused ( #10326 )
2022-03-09 04:08:28 +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
Nishant Das
738f00129b
control test ( #10323 )
2022-03-08 07:58:19 -08:00
Radosław Kapka
3a03623094
E2E: Cleanup old Eth1 code ( #10320 )
2022-03-07 23:14:10 +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
Radosław Kapka
f98d1ce64b
Run multiple go-ethereum nodes in e2e ( #10277 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-03-07 13:23:15 +01: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
1437cb8982
Update GoHashTree Library ( #10308 )
2022-03-04 14:18:52 +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
Radosław Kapka
54915850a2
Refactor E2E port registration ( #10306 )
...
* Refactor e2e port registration
* uncomment tests
* explain calculation
* fix things
* change param to pointer
* fix errors
* unit test and constant
2022-03-04 09:26:28 +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
Preston Van Loon
a3f8ccd924
validator: Fix flaky test TestServer_RefreshJWTSecretOnFileChange ( #10296 )
2022-03-01 20:34:05 +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
james-prysm
6163e091a7
web3signer: fixes for e2e ( #10281 )
...
* fixing logs and caught bug in mappers
* Fix schema
* improving logging
* Update validator/keymanager/remote-web3signer/internal/client.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* adding logurus dependency
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com>
2022-02-25 02:42:26 +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