terence tsao
a9f9026c78
Minor cleanups ( #9743 )
...
* Minor cleanups
* Delete slasher client files
* Revert "Delete slasher client files"
This reverts commit 0c995a1d4a834ded97385e6e338fe630c81db26b.
* Update slasher_client.go
2021-10-06 13:23:40 -05:00
terence tsao
c21e43e4c5
Refactor: move functions beacon-chain/core/time
-> time/slots
( #9719 )
...
* Move necessary functions beacon-chain/core/time -> time/slots
* Fix fuzz
* Fix build
* Update slot_epoch.go
2021-10-01 15:17:57 -05:00
terence tsao
8219af46e4
Move slot epoch from core to time pkg ( #9714 )
...
* Move slot epoch from core to time pkg
* Fix fuzz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-30 19:00:14 +00:00
Nishant Das
3c052d917f
Use Scoring Parameters To Enable Global Score ( #8794 )
...
* fix score parameters
* add check
* fix deadlock issues
* fix
* fix again
* gaz
* comment
* fix tests and victor's review
* gaz
* clean up
* fix tests
* fix tests
* gate behind flag
* add scorer to dev
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-30 03:39:53 +00:00
Nishant Das
10251c4191
increase size ( #9702 )
2021-09-29 10:01:10 -05:00
terence tsao
806bcf1d29
Clean up unused types & function comments ( #9691 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-28 21:21:07 +00:00
Preston Van Loon
ee0a453b7b
core: refactor signing and domain methods from helper to core/signing pkg ( #9520 )
...
* Move domain function and all signing root functions from beacon-chain/core/helpers to beacon-chain/core
* @terencechain suggestion to put these methods under core/signing
2021-09-27 16:19:20 +00:00
terence tsao
376d248c22
Add in progress handler to committee cache ( #9664 )
...
* Add in progress handler for committee cache
* Remove debug print
* Update validators.go
* Fix all the tests
* More tests
* Update committee_disabled.go
* Update committee_disabled.go
* Update testing util
* Update main.go
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2021-09-26 23:27:57 +08:00
terence tsao
ea9ceeff03
Various clean up before v2 ( #9672 )
...
* Update package names
* Various clean up
* Gazelle
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-24 17:42:16 +00:00
Raul Jordan
a9a4bb9163
Move Shared/Testutil into Testing ( #9659 )
...
* move testutil
* util pkg
* build
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-23 18:53:46 +00:00
Raul Jordan
29513c804c
Create Encoding Bytesutil ( #9658 )
...
* bytesutil
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-23 15:23:37 +00:00
Raul Jordan
f3d6dbcc1e
Move Shared/Params Into Config/Params ( #9642 )
...
* config params into pkg
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-21 19:59:25 +00:00
Nishant Das
b943f7bce5
Add Flag To Parameterize Number of Peers in A Subnet ( #9631 )
...
* add flag
* use old value
* gaz
* raul's review
2021-09-21 07:55:52 +00:00
Raul Jordan
11a1f681e0
Move Shared Packages Into Async/ ( #9620 )
...
* async packages
* change pkg
* build
* working
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-18 17:26:11 +00:00
Raul Jordan
7dadc780b8
Move Shared Packages into Math/ and IO/ ( #9622 )
...
* amend
* building
* build
* userprompt
* imports
* build val
* gaz
* io file
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-17 21:55:24 +00:00
Raul Jordan
d2f74615ab
Move Miscellaneous Shared/ Packages Into Semantic Groups ( #9624 )
...
* remove shared network and ip util
* forkutil
* gaz
* build
* gaz
* nogo
* genrule
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-17 19:20:50 +00:00
Nishant Das
4109d4a868
Standardize Metrics To Match Minimal Metric Spec ( #9623 )
2021-09-17 13:35:12 +02:00
terence tsao
f49637b09b
Move iputil and httpuil pkgs into network pkg ( #9621 )
...
* Add network pkg
* Go fmt
* Update discovery_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-09-16 19:12:27 +00:00
Raul Jordan
61c24c3870
Move Fuzz/ Into Testing/ ( #9617 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-16 17:32:51 +00:00
Raul Jordan
495e92ce9f
Create Runtime Package for Moving Several Packages in Shared/ ( #9588 )
...
* add maxprocs
* add prereqs
* add tos and version pkg
* add in all runtime packages
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-16 09:46:29 +00:00
terence tsao
ee5d75732d
Add pkg crypto ( #9603 )
...
* Add pkg crypto
* Update go.yml
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-15 22:55:11 +00:00
Raul Jordan
5230af0e0c
Move EndtoEnd Tests to Testing/ Folder ( #9586 )
...
* endtoend to testing/
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-15 14:42:05 +00:00
terence tsao
31a78ab22a
Create config package for Shared/featureconfig ( #9593 )
...
* add config/features
* Gazelle
* Gazelle
* Fix build
* Go mod tidy
* active cache
Co-authored-by: rauljordan <raul@prysmaticlabs.com>
2021-09-15 01:18:39 +00:00
terence tsao
3e71997290
Create time Package for Shared/timeutil, mclock and slotutil ( #9594 )
...
* add time pkg
* Go fmt
2021-09-15 00:09:04 +00:00
Raul Jordan
9935ca3733
Move Shared/ Subpackages Into Monitoring/ Folder ( #9591 )
...
* add tracing
* monitoring pkg
* move prom
* Add client stats
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-14 20:59:51 +00:00
Nishant Das
90038a6001
Implement Network Encoder using SSZ Interface ( #9535 )
...
* add stuff
* unused
* kasey's review
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-09-08 23:16:53 +08:00
terence tsao
d7679d2e71
Validator: rest of the Altair changes ( #9532 )
...
* Bring in rest of the validator chagnes
* Go fmt
* Deepsource
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-07 18:43:50 +00:00
Preston Van Loon
4beb352e6f
Move Slot and Epoch functions from helpers to core pkg ( #9519 )
...
* Move Slot and Epoch functions from helpers to core
* limited viz
* goimports
* fix fuzz build
* fix fuzz build
* fix
* fix
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-03 20:10:31 +00:00
Preston Van Loon
265b5feabf
p2p: Handle nil topic ( #9522 )
...
* fix nil topic
* fmt
Co-authored-by: nisdas <nishdas93@gmail.com>
2021-09-03 14:39:54 +08:00
Preston Van Loon
2d41f0885c
p2p: Split MsgID into its own file as a public method ( #9518 )
...
* p2p: Split MsgID into its own file as a public method
* gofmt
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-02 21:48:14 +00:00
Nishant Das
44375a3d67
Handle Missing Status Message Better ( #9505 )
...
* throw error in status method
* fix up
* fix up
* gaz
2021-09-01 22:25:22 +08:00
Preston Van Loon
dad03ade77
p2p: Return error if no ChainState found for a peer ( #9502 )
...
* p2p: Return error if no ChainState found for a peer
* add commentary
2021-08-31 22:25:54 +00:00
Nishant Das
4d02329cd5
Add in P2P Changes ( #9390 )
...
* add in initial changes
* add test method
* raul's review
* Update beacon-chain/p2p/gossip_scoring_params.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update beacon-chain/p2p/gossip_scoring_params.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* preston's review
* kasey's review
* only 1
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-08-27 09:34:20 +08:00
Nishant Das
0208d9b328
Change P2P Logs to Trace Logs ( #9459 )
2021-08-25 15:35:50 +02:00
Raul Jordan
eac542a8ac
Change Eth2 Repository Names ( #9425 )
...
* eth2 repo name changes
* rem sha
* use consensus spec terminology and pin sha
2021-08-19 13:00:57 -05:00
Nishant Das
5b7b9f9ac9
Refactor Subnet Methods For Altair ( #9386 )
...
* change subnets
* add in missing one
* add comment
* Update beacon-chain/p2p/subnets.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* terence's review
* terence's review
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-18 04:55:48 +00:00
Preston Van Loon
643e20c50a
p2p: report status failure when no genesis time is set after start ( #9395 )
2021-08-16 19:15:43 +00:00
Raul Jordan
8122da6c97
Add Gosec Github Action ( #9332 )
...
* add gosec security scan
* add gosec ignores first batch
* more nosec for exec
* add filepath clean
* more nosec
* file inclusion nosec
* build
* herumi
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-15 15:24:13 +00:00
Nishant Das
47ee6fa17e
Add in Altair Message ID Function ( #9382 )
...
* add in changes
* add method call
* gaz
* rauls review
* rauls review
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-08-14 14:36:02 +00:00
Nishant Das
a1c0bee397
Add in Object Mapping For Types ( #9381 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-13 17:28:26 +00:00
Nishant Das
8fe22422a6
add it in ( #9383 )
2021-08-13 10:53:51 -05:00
Nishant Das
a9f2170657
Update P2PUtils And Parameters From Altair ( #9373 )
...
* add changes
* add p2putils changes
* clean up
* fix build
* remove test
* raul's review
2021-08-13 13:11:11 +08:00
terence tsao
012d279663
Fix duplicated imports ( #9304 )
...
* Fix duplicated imports
* Fix metrics test
2021-07-29 16:45:17 -05:00
Radosław Kapka
4db0dfc4f1
Properly broadcast attestations ( #9301 )
...
* better handling of gateway response
* empty response tests
* build file
* broadcast attestations properly
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-07-29 18:33:18 +02:00
Raul Jordan
9145310647
Eliminate Proto V2 Namespace ( #9297 )
...
* get rid of v2 in prysm codebase
* replace block2
* builds
* terence comments
* gazelle
2021-07-28 21:23:44 +00:00
terence tsao
8db0c9a0e6
Move proto/interfaces -> proto/prysm/v2 ( #9270 )
...
* Move proto/interfaces -> proto/prysm
* Update paths
* Fix block2
* Update blocks_fetcher_utils.go
* Update BUILD.bazel
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-23 20:10:15 +00:00
Raul Jordan
2d10bcf179
Move State Protos Into V2 Namespace ( #9257 )
...
* move state protos
* regen ssz
* edit v1 code
* fix imports
* building
* beacon chain builds
* validator and shared builds
* fuzz builds
* changes
* spectest builds
* tools build
* remove import cycle
* generate ssz
* pcli
* gaz
* kafka
* gaz
2021-07-23 08:07:40 -05:00
Raul Jordan
5864795ca5
Move RPC Protos Into V2 Namespace ( #9254 )
...
* moved rpc protos
* gazelle
* change pb
* validator health
* edit name
* naming
2021-07-22 21:00:28 +00:00
Raul Jordan
6dadb80cc4
Move v1alpha1 into Prysm API namespace ( #9245 )
2021-07-21 21:34:07 +00:00
Nishant Das
11d9e7da9b
Update Libp2p to v0.14.4 ( #9108 )
...
* fix
* tidy
* fix deps
* tidy
* fix pubsub
2021-07-20 23:50:47 +00:00