Radosław Kapka
8888fa4bb3
Revert enable-native-state
flag ( #10898 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-06-16 20:59:46 +00:00
Radosław Kapka
f065209a3e
Small API Middleware upgrades ( #10895 )
...
* remove useless comments
* add comment
* fix writing bug
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-06-16 19:19:05 +00:00
Potuz
e439f4aff6
Forkchoice duplicate store ( #10840 )
...
* forkchoice tests
* blockchain tests
* no fatal errors
* use ZeroHash for genesis
* deal with zerohashes at genesis
* avoid nil best justified checkpoint on new store
* unit tests
* Debug log
Co-authored-by: terencechain <terence@prysmaticlabs.com>
* Terence's review
* update capitalization
Co-authored-by: terencechain <terence@prysmaticlabs.com>
* update capitalization
Co-authored-by: terencechain <terence@prysmaticlabs.com>
* update capitalization
Co-authored-by: terencechain <terence@prysmaticlabs.com>
* update capitalization
Co-authored-by: terencechain <terence@prysmaticlabs.com>
Co-authored-by: terencechain <terence@prysmaticlabs.com>
2022-06-16 18:21:40 +00:00
terencechain
88f8dbecc8
Compute correct domain for validator registration ( #10894 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2022-06-16 16:32:04 +00:00
james-prysm
2dfe291cf9
Keymanager APIs: fee recipient api ( #10850 )
...
* initial commit wip
* setting protos for fee recipient
* updating proto based on specs
* updating apimiddleware
* generated APIs
* updating proto to fit spec
* fixing naming of fields
* fixing endpoint_factory and associated structs
* fixing imports
* adding in custom http types to grpc gateway
* adding import options
* changing package option
* still testing protos
* adding to bazel
* testing dependency changes
* more tests
* more tests
* more tests
* more tests
* more tests
* more tests
* testing changing repo dep
* testing deps
* testing deps
* testing deps
* testing deps
* testing deps
* testing deps
* reverting
* testing import
* testing bazel
* bazel test
* testing
* testing
* testing import
* updating generated proto code
* wip set fee recipient by pubkey
* adding list fee recipient logic
* fixing thrown error
* fixing bug with API
* fee recipient delete function
* updating generated proto logic
* fixing deposit api and adding postman tests
* fixing proto imports
* fixing unit tests and checksums
* fixing test
* adding unit tests
* fixing bazel
* Update validator/rpc/standard_api.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update validator/rpc/standard_api.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* resolving review comments
* fixing return
* Update config/validator/service/proposer-settings.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/rpc/standard_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/rpc/standard_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* updating proto
* updating message name
* fixing imports
* updating based on review comments
* adding middleware unit tests
* capitalizing errors
* using error instead of errorf
* fixing missed unit test variable rename
* fixing format variable
* fixing unit test
* Update validator/rpc/standard_api.go
* Update validator/rpc/standard_api.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-16 15:10:23 +00:00
Mike Neuder
a80c15f3a9
Refactor validator accounts import to remove cli context dependency ( #10890 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-06-16 14:14:03 +00:00
Nishant Das
4de92bafc4
Improve Field Trie Recomputation ( #10884 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-06-16 13:14:29 +00:00
terencechain
69438583e5
Pad Uint256
's SSZBytes
to length 32 ( #10889 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-16 04:29:32 +00:00
Raul Jordan
e81f3fed01
Remove Extraneous BoltDB Logs ( #10888 )
2022-06-16 01:11:07 +00:00
Raul Jordan
1b2a5fb4a5
Update CODEOWNERS ( #10887 )
2022-06-15 21:51:44 +00:00
Jie Hou
6c878b1665
Refactor: Continue reducing cognitive complexity ( #10862 )
...
* Refactor beacon-chain/db/kv/state.go
* Refactor api/gateway/apimiddleware/process_field.go
* Refactor beacon-chain/sync/initial-sync/blocks_queue.go
* Refactor validator/db/kv/migration_optimal_attester_protection.go
* goimports
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-06-15 18:34:59 +00:00
james-prysm
838963c9f7
validator registration request bug: reusing public keys ( #10883 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-15 17:26:05 +00:00
kasey
7b38f8b8fc
submit lists of validator registrations ( #10882 )
...
* submit lists of validator registrations
* RegisterValidator to take a list
* Gazelle
* Fix go imports
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-15 16:29:56 +00:00
Nishant Das
23e8e695cc
Fix Sepolia Testnet Initialization ( #10886 )
2022-06-15 15:05:44 +00:00
Sammy Rosso
ce9eaae22e
Add payload data logging ( #10845 )
...
* Add logging of block payload data
Added a new func logBlockPayloadData that includes logging of the
block number and the gas utilized.
Related to #10795 .
* Replace Info with Debug + renamed func
Renamed the function to be clearer and replaced Info logging with Debug.
Related to #10795 .
* Compute correct value for gas utilized
Related to #10795 .
* Round result of gas utilized to 2 decimal places
* Add new error message
* Check if block is an Execution block
Co-authored-by: terencechain <terence@prysmaticlabs.com>
* Fix missing imports
* Undo changes
* Update beacon-chain/blockchain/receive_block.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Added error logging to log statements
Changed the error handling from log statements. Instead of returning the
error we log the error.
Co-authored-by: terencechain <terence@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-15 10:03:48 +00:00
Nishant Das
7010e8dec8
Graduate Prune Canonical Attestations Feature ( #10623 )
...
* graduate canonical prune feat
* fix test
* fix tests
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-15 09:05:19 +00:00
Nishant Das
9e4ba75e71
Batch Scenario Runs Into Single Test ( #10878 )
...
* batch scenarios
* fix
* fix
* Update testing/endtoend/endtoend_test.go
2022-06-15 08:02:31 +00:00
kasey
044a4ad5a3
Ignore genesis state url and checkpoint sync flags after first run of prysm ( #10881 )
...
* ignore remote genesis url flag if present in db
* ignore checkpoint sync flags if initialized
* lint
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-06-14 23:23:25 +00:00
Radosław Kapka
690084cab6
Enable native state for Sepolia ( #10880 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-14 21:51:58 +00:00
james-prysm
88db7117d2
Adding additional checksum check for fee recipient. ( #10879 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-14 18:43:37 +00:00
mick
1faa292615
Add is_optimistic to SyncDetails, hydrate via ValidateSync ( #10692 )
...
* cache test
* oh
* syntax fix
* error fix
* tinker
* tinker
* newlines?
* no-whitespace?
* feedback
* fix
* comment
* comments
* need to figure out how to lint locally...
* feedback
* fixes
* progress
* progress
* dedupe
* s
* working
* remove empty lines
* update test
* return errors properly
* make helpers publicly visible
* fix tests
Co-authored-by: rkapka <rkapka@wp.pl>
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2022-06-14 17:47:09 +00:00
terencechain
434018a4b9
Add Sepolia config ( #10868 )
2022-06-14 14:50:05 +00:00
Nishant Das
54624569bf
Fix Fuzzing Failures in Our CI ( #10875 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-14 13:12:28 +00:00
Håvard Anda Estensen
b55ddb5a34
Use go:build lines and remove obsolete +build lines ( #10704 )
...
* Use go:build lines and remove obsolete +build lines
* Run gazelle
* Update crypto/bls/blst/stub.go
* Update crypto/bls/blst/stub.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-06-14 11:47:27 +00:00
terencechain
a38de90435
Move computeCheckpoints
to private ( #10874 )
...
* Move computeCheckpoints to private
* Feedback
* Godoc
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-14 09:25:41 +00:00
Michael Blau
d454d30f19
Merge ascii art banner ( #10773 )
...
* Add Merge ASCII art banner
* Add merge ASCII art banner
* gofmt
* Go fmt
* Fix go fmt again
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com>
Co-authored-by: terencechain <terence@prysmaticlabs.com>
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-06-14 08:25:42 +00:00
Jie Hou
b04dd9fe5c
Enable gocognit linter ( #10867 )
...
* Enable gocognit linter
Currently the gocognit complexity threshold is set to 95 to make
sure no existing files will fail the linter. In future we will
reduce this threshold to a much lower one.
The recommended threshold is usually 30. Our code base has maximum
of 97 right now...But it's better late than never to pay attention
to our code compexity.
* Test to see github complains
* Resume to 97
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-06-14 14:19:34 +08:00
kasey
8140a1a7e0
update info message about ws checkpoint ( #10871 )
...
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-06-14 00:55:00 +00:00
terencechain
cab9917317
Fix message typo for ErrorIs
( #10873 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-06-14 00:19:04 +00:00
terencechain
4c4fb9f2c0
Fix gosec scan: G112 (CWE-400) Potential Slowloris Attack ( #10872 )
2022-06-13 22:29:26 +00:00
Mike Neuder
80f4f22401
Refactor validator accounts exit to remove cli context dependency ( #10841 )
...
* Refactor validator accounts exit to remove cli context dependency
* bazel run //:gazelle -- fix
* fixing deepsource findings
* fixing broken test
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2022-06-13 15:17:46 +00:00
terencechain
dd296cbd8a
Disallow lower justified epoch to override higher epoch ( #10865 )
2022-06-11 17:37:37 +00:00
terencechain
f9e3b0a3c2
Active balance: return EFFECTIVE_BALANCE_INCREMENT
as min ( #10866 )
2022-06-11 08:54:33 -07:00
terencechain
a58809597e
Sync: don't process pending blocks w/o genesis time ( #10750 )
...
* Sync: don't process pending blocks w/o genesis time
* Update pending_blocks_queue.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-06-10 05:02:47 +00:00
Nishant Das
7f443e8387
Add Optimistic Sync Scenario Testing ( #10836 )
...
* add latest changes
* fix it
* add multiclient support
* fix tests
* Apply suggestions from code review
* 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-06-09 23:24:53 +00:00
Potuz
18fc17c903
Forkchoice checkpoints ( #10823 )
...
* double_tree_changes
* protoarray changes
* beacon-chain changes
* spec tests and debug rpc fixes
* more conflicts
* more conflicts
* Terence's review
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-09 22:28:30 +00:00
Sammy Rosso
d7b01b9d81
Fix default mainnet log when using chain config ( #10855 )
...
* Fix default mainnet log when using chain config
Add a log to specify the use of a chain-config-file rather than
defaulting to that of mainnet.
Related to #10821 .
* Add more specific log message
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-09 21:31:59 +00:00
terencechain
7ebd9035dd
Add ttd metric ( #10851 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-09 20:35:38 +00:00
Radosław Kapka
578fea73d7
API's IsOptimistic
- update header.StateRoot
only when block is not missing ( #10852 )
...
* bug fix
* tests
* comment
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-09 19:35:35 +00:00
terencechain
7fcadbe3ef
Add optimistic status to chainhead ( #10842 )
...
* Add optimistic status to chainhead
* Fix tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-09 17:37:52 +00:00
Radosław Kapka
fce9e6883d
Native Blocks Ep. 1 - New types and functions ( #10837 )
...
* types and functions
* partially done tests
* refactor
* remaining Proto() tests
* remaining proto.go tests
* simplify UnmarshalSSZ and move BeaconBlockIsNil
* getters_test
* remove errAssertionFailed
* review feedback
* remove cloning protobuf
* fmt
* change IsNil
* fix tests
2022-06-09 13:13:02 +00:00
terencechain
5ee66a4a68
Update engine api buckets ( #10847 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-08 20:12:54 +00:00
kasey
f4c7fb6182
checkpoint sync e2e to use 3m timeout w/ elapsed log ( #10849 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
2022-06-08 19:14:10 +00:00
Potuz
077dcdc643
enable dev on Ropsten ( #10839 )
...
* enable dev on Ropsten
* include only vectorized HTR and doublylinkedtree
* error handling
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-08 13:45:13 +00:00
kasey
1fa864cb1a
use slot:block index correctly ( #10820 )
...
* adding splitRoots, refactor to use it
* use splitRoots & work in roots only
the most common use case for this method is to get a list of
candidate roots and check if they are canonical. there isn't a great
reason to look up all the non-canonical blocks, because forkchoice
checks based on the root only, so just return roots and defer the
responsibility of resolving those to full blocks.
* update comment
* clean up shadowing
* more clear non-error return
* add test case for single root in index slot
* fmt
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-06-07 16:47:42 +00:00
Mike Neuder
6357860cc2
Refactor validator accounts backup to remove cli context dependency ( #10824 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2022-06-07 15:19:12 +00:00
mick
cc1ea81d4a
Implement generate-auth-secret on beacon node CLI ( #10733 )
...
* s
* s
* typo
* typo
* s
* s
* fixes based on PR feedback
* PR feedback
* reverting log changes
* adding flag per feedback
* conventions
* main fixes
* Update cmd/beacon-chain/jwt/jwt.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update cmd/beacon-chain/jwt/jwt.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update cmd/flags.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* s
* tests
* test attempt
* test
* Update cmd/beacon-chain/jwt/jwt.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* err fix
* s
* further simplify
* cleanup
* namefix
* tests pass
* gaz
* rem deadcode
* Gaz
* shorthand
* naming
* test pass
* dedup
* success
* Ignore jwt.hex file
* logrus
* feedback
* junk
* Also check that no file was written
* local run config
* small fix
* jwt
* testfix
* s
* disabling test
* reverting main changes
* main revert
* removing temp folder
* comment
* gaz
* clarity
* rem
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
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: Kasey Kirkham <kasey@users.noreply.github.com>
2022-06-07 07:37:12 +00:00
Nishant Das
dd65622441
Efficiently Pack Uint64 Lists ( #10830 )
...
* make it more efficient
* radek's review
* review again
2022-06-07 06:34:13 +00:00
Nishant Das
6c39301f33
Integrate Engine Proxy into E2E ( #10808 )
...
* add it in
* support jwt secret
* fix it
* fix
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-06 23:35:54 +00:00
terencechain
5b12f5a27d
Integrate builder client into builder service ( #10825 )
...
* Integrate builder client into builder service
* Do nothing if pubkey is not found
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-06 22:38:49 +00:00