Justin Traglia
9f7711e74a
Enable misspell linter & fix findings ( #12272 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-04-14 10:03:11 +00:00
Nishant Das
17cfc60bdd
Enable Static Peer ID ( #12220 )
...
* static peer id
* kasey's review
2023-04-01 00:00:11 +00:00
Nishant Das
76c729f9fa
Add Pubsub Metrics Tracer ( #12178 )
...
* add tracer
* gaz
* preston's review
* preston's review
2023-03-24 12:36:10 +08:00
terencechain
d17996f8b0
Update to V4
🚀 ( #12134 )
...
* Update V3 from V4
* Fix build v3 -> v4
* Update ssz
* Update beacon_chain.pb.go
* Fix formatter import
* Update update-mockgen.sh comment to v4
* Fix conflicts. Pass build and tests
* Fix test
2023-03-17 18:52:56 +00:00
Nishant Das
4d28d69fd9
Make Peer Scorer Permanent Default ( #12138 )
...
* add changes
* gaz
* fix
2023-03-16 18:52:49 +08:00
Nishant Das
4f38ba38b7
Update Libp2p ( #12096 )
...
* update deps
* add preston's fix
* fix build
* gaz
* test fixes
2023-03-08 23:52:51 +08:00
Nishant Das
8d82ca08ab
Allow Testing Of Withdrawals On E2E Mainnet ( #12027 )
2023-02-23 12:04:53 +01:00
Pedro Gomes
094ff877f6
Fix NPE, ensure the listener is available ( #11946 )
...
* Fix NPE, ensure the listener is available
* Added test
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-02-22 06:53:09 +00:00
terencechain
d4f3257f60
Rename block interfaces ( #11975 )
2023-02-09 10:23:32 +01:00
Potuz
c2194c57b7
Rate limit broadcasting of BLS changes at the fork and at RPC endpoint ( #11936 )
2023-01-31 09:31:22 -08:00
Potuz
56907bb2c6
Randomize bls changes at fork ( #11923 )
...
* Rate Limit broadcasting of BLS changes
* Rate limit BLS changes broadcasting
* random
* linting
* mock test
Co-authored-by: terencechain <terence@prysmaticlabs.com>
2023-01-26 23:13:28 +00:00
Radosław Kapka
77d3ccb9ad
Clean up state types ( #11916 )
...
* Clean up state types
* rename package
2023-01-26 14:40:12 +00:00
Patrice Vignola
83f48350b2
Fix a bunch of deepsource warnings ( #11814 )
2022-12-22 09:20:10 +00:00
Nishant Das
faf16f9e56
Allow Nodes Running Via VPNs To Make Successful Dials ( #11599 )
...
* fix it
* fix dialer for now
* fix build
* fix test
* fix to v0.24.0
* fix gaz
* fix build
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2022-12-06 14:54:45 +00:00
Ye Ding
e49d8f2162
Fix a race condition during initialization ( #11444 ) ( #11698 )
...
* Fix a race condition during initialization (#11444 )
* Fix tests
* Add more test cases
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-11-29 18:24:50 +00:00
Nishant Das
a23a5052bc
Add Gossip Handler For BLS To Execution Changes ( #11690 )
2022-11-26 11:07:05 -08:00
Nishant Das
2fef03414d
Fix ENR Serialization ( #11648 )
...
* fix it
* fix test
2022-11-10 12:03:55 +00:00
Potuz
af6d5e9149
don't change again unecessarily ( #11645 )
...
* don't change again unecessarily
* remove blinded blocks from gossip
2022-11-09 23:59:10 +00:00
terencechain
d0d7021c1d
Add Capella p2p changes ( #11644 )
2022-11-09 15:11:46 -08:00
Nishant Das
661cbc45ae
Vendor Leaky Bucket Implementation ( #11560 )
...
* add changes
* fix tests
* change to minute
* remove dep
* remove
* fix tests
* add test for period
* improve
* linter
* build files
* ci
* make it stricter
* fix tests
* fix
* Update beacon-chain/sync/rate_limiter.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: terencechain <terence@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2022-10-20 16:40:13 -05:00
Radosław Kapka
b7a878d011
Resolve remaining native state tasks ( #11561 )
...
* remove ToProto and ToProtoUnsafe wrappers
* TestAppendBeyondIndicesLimit
* change type of genesisValidatorsRoot
* fuzz tests
* check type assertion
2022-10-19 10:37:45 -04:00
Preston Van Loon
6bea17cb54
Update libp2p to support go 1.19 ( #11309 )
...
* Update libp2p to support go 1.19
* gaz
* go mod tidy
* Only update the minimum deps
* go mod tidy
* revert .bazelrc
* Update go-libp2p to v0.22.0 and update import paths (#11440 )
* Fix import paths
* Fix go-libp2p-peerstore import
* Bazel updates
* fix
* revert some comments changes
* revert some comment stuff
* fix dependency issues
* vendor problematic library
* use your brain
* remove
* tests
Co-authored-by: Marco Munizaga <marco@marcopolo.io>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-10-07 15:24:51 +08:00
Nishant Das
cdcb289693
Handle New Agent Version For Lodestar ( #11536 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-10-04 14:39:12 +02:00
terencechain
d860daff75
clean up: godoc comments, redundant castings and more ( #11428 )
...
* clean up: Godoc comments, redundant castings and more
* Fix assertion check
* Update beacon-chain/forkchoice/doubly-linked-tree/forkchoice.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update beacon-chain/forkchoice/protoarray/store.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-09-12 14:03:20 +00:00
Nishant Das
fbe591c363
Fix Gossipsub Parameter ( #11425 )
2022-09-09 15:36:43 +00:00
Raul Jordan
65bf3d0fa8
Fix Div By 0 in Small Helper ( #11390 )
2022-09-01 18:26:28 +00:00
Raul Jordan
a5da9aedd4
Add in P2P Metrics for Mainnet ( #11386 )
...
* connected peers gauge vec
* build
* add in gossip metric
* clean
2022-09-01 18:00:54 +00:00
Nishant Das
25d87dd27b
Remove Disable DiscoveryV5 Flag ( #11237 )
...
* remove flag
* go fmt
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 12:45:12 +00:00
Raul Jordan
100ca0ebaf
Prysmctl Command to Request Beacon Nodes for Block Ranges Over P2P ( #11035 )
...
* first
* attempt p2p connect send tool
* attempt
* stream registration
* trying to register
* attempt
* workinnnn
* begin
* p2p prysmctl tool
* ignore
* fix
* delete deprecated
* p2p smaller iface surface area
* further p2p refactor
* gaz
* better logging
* process
* all functionality
* fix up
* rhandle
* v2 req
* cmd
* send sub
* v1 handle
* show head slot
* cmd
* cmd lib
* gazelle fix
* bazel
* gaz
* work on the handshake items
* prevent dial to self
* add config awareness
* gaz
* inferring host addrs from p2p
* initialize data mappings
* add own mock
* fix up logic
* gaz
* add img
* gaz
* add images
* builds
* builds
* nishant feedback:
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-08-17 06:38:57 +00:00
Nishant Das
49ef0ad284
Remove Gossip History Flag ( #11232 )
...
* Remove gossip history flag
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 04:49:51 +00:00
Raul Jordan
d077483577
Add V3 Suffix to All Prysm Packages ( #11083 )
...
* v3 import renamings
* tidy
* fmt
* rev
* Update beacon-chain/core/epoch/precompute/reward_penalty_test.go
* Update beacon-chain/core/helpers/validators_test.go
* Update beacon-chain/db/alias.go
* Update beacon-chain/db/alias.go
* Update beacon-chain/db/alias.go
* Update beacon-chain/db/iface/BUILD.bazel
* Update beacon-chain/db/kv/kv.go
* Update beacon-chain/db/kv/state.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go
* Update beacon-chain/sync/initial-sync/service.go
* fix deps
* fix bad replacements
* fix bad replacements
* change back
* gohashtree version
* fix deps
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-08-16 12:20:13 +00:00
Preston Van Loon
9d375969d1
Enforce log.WithError(err) static analysis and fix all violations ( #11163 )
...
* Use log.WithError static analysis from #11143 and fix all violations
* Fix another log violation after pulling from develop
* Update beacon-chain/sync/pending_blocks_queue.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
* @potuz feedback
* Copy paste fail
* fix tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-08-05 10:52:02 +00:00
Nishant Das
82ef9f1e48
Bring Back Mplex ( #11169 )
...
* bring back
* fix mod
2022-08-04 15:04:51 +00:00
Nishant Das
e169ce9107
Fix Goodbye Codes In Prysm ( #11168 )
...
* fix goodbye codes
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-04 14:11:45 +00:00
terencechain
d4ab08050f
Clean up: fix typos ( #11165 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-03 18:47:30 +00:00
Radosław Kapka
879e310332
Native Blocks Ep. 2 - Switch usages to new package ( #10885 )
...
* panic in SizeSSZ
* moving slowly
* adapt old code to new interfaces
* return interfaces from factory functions
* replace the rest of WrappedSignedBeaconBlock
* WrappedBeaconBlock
* WrappedBeaconBlockBody
* miscellaneous
* Test_BeaconBlockIsNil
* replace usages of BeaconBlockIsNil
* replace usages of mutator
* fix all build errors
* fix some more issues
* mutator changes
* relax assertions when initializing
* revert changes in object_mapping.go
* allow calling Proto on nil
* Revert "allow calling Proto on nil"
This reverts commit ecc84e455381b03d24aec2fa0fa17bddbec71705.
* modify Copy and Proto methods
* remove unused var
* fix block batch tests
* correct BUILD file
* Error when initializing nil objects
* one more error fix
* add missing comma
* rename alias to blocktest
* add logging
* error when SignedBeaconBlock is nil
* fix last test
* import fix
* broken
* working
* test fixes
* reduce complexity of processPendingBlocks
* simplified
2022-08-02 15:30:46 +00:00
Radosław Kapka
5d94fd48ca
Revert "Testutil refactor attestations ( #10952 )" ( #11073 )
2022-07-19 14:41:15 +02:00
Preston Van Loon
5722a5793c
Tracing: properly overwrite context so that spans can be correctly attributed ( #11012 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-14 17:00:33 +00:00
Nishant Das
2ecb905ae5
Update Prysm Libp2p Dependencies ( #10958 )
...
* add all changes in
* fix issues
* fix build
* remove curve check
* fix tool
* add test
* add tidy
* fmt
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-01 15:34:11 +00:00
Sammy Rosso
8ebbde7836
Testutil refactor attestations ( #10952 )
...
* Add AttestationUtil receiver
* Modify usage to account for the receiver
* Add missing explanatory comments
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-06-29 16:42:33 +00:00
Radosław Kapka
b82e2e7d40
Use prysmaticlabs/fastssz
as a direct dependency ( #10941 )
...
* Update dependency
* Regenerate SSZ files
* fix BUILD files
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-28 13:03:24 +00:00
Radosław Kapka
7f56ac6355
Massive code cleanup ( #10913 )
...
* Massive code cleanup
* fix test issues
* remove GetGenesis mock expectations
* unused receiver
* rename unused params
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-27 13:34:38 +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
kasey
588dea83b7
Config registry ( #10683 )
...
* test coverage and updates to config twiddlers
* LoadChainConfigFile error if SetActive conflicts
* lint
* wip working around test issues
* more fixes, mass test updates
* lint
* linting
* thanks deepsource!
* fix undeclared vars
* fixing more undefined
* fix a bug, make a bug, repeat
* gaz
* use stock mainnet in case fork schedule matters
* remove unused KnownConfigs
* post-merge cleanup
* eliminating OverrideBeaconConfig outside tests
* more cleanup of OverrideBeaconConfig outside tests
* config for interop w/ genesis gen support
* improve var name
* API on package instead of exported value
* cleanup remainders of "registry" naming
* Nishant feedback
* add ropstein to configset
* lint
* lint #2
* ✂️
* revert accidental commented line
* check if active is nil (replace called on empty)
* Nishant feedback
* replace OverrideBeaconConfig call
* update interop instructions w/ new flag
* don't let interop replace config set via cli flags
Co-authored-by: kasey <kasey@users.noreply.github.com>
2022-05-20 07:16:53 +00:00
Radosław Kapka
d25c0ec1a5
Fix bugs in /eth/v1/beacon/blinded_blocks
( #10673 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-05-13 18:20:39 +00:00
Preston Van Loon
5817090b59
Remove junk metadata file ( #10626 )
2022-05-04 17:26:01 +00:00
Raul Jordan
20ab988a4a
Rename Block
Package in Consensus-Types to Interfaces ( #10605 )
...
* interfaces package
* builds
* gaz
2022-05-02 14:32:37 -04:00
Raul Jordan
16bbf5602f
Move Consensus Type Wrappers Into Consensus Types Package ( #10598 )
...
* builds
* move block to consensus-types
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-02 15:43:40 +00:00
Preston Van Loon
9d2bdfe14d
p2p: Fix pubsub fuzz test ( #10583 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-29 18:20:18 +00:00
Raul Jordan
84916672c6
Remove Eth2-Types Dependency in Prysm ( #10578 )
...
* replace eth2 types
* replace protos
* regen proto
* replace
* gaz
* deps
* amend
* regen proto
* mod
* gaz
* gaz
* ensure build
* ssz
* add dep
* no more eth2 types
* no more eth2
* remg
* all builds
* buidl
* tidy
* clean
* fmt
* val serv
* gaz
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2022-04-29 10:32:11 -04:00