Nishant Das
71f53d908f
Add Stricter Checks To The Deposit Cache ( #8838 )
...
* add stricter checks
* fix tests
2021-04-29 14:24:13 +02:00
terence tsao
7b8e48d80e
Invert proposer-atts-selection-using-max-cover
flag ( #8828 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2021-04-28 13:44:13 +00:00
Nishant Das
5c9f361903
validate big num better ( #8822 )
2021-04-27 14:46:47 +08:00
Victor Farazdagi
386b69f473
Fix comments ( #8802 )
...
* fix incorrect exported name in comments
* add comments to exported methods
2021-04-23 12:06:05 +00:00
Victor Farazdagi
648e360842
Refactor shared/testutil/spectest.go ( #8800 )
...
* Refactor shared/testutil/spectest
* update operations
* update epoch_processing
* rename spectest.go
2021-04-22 16:34:00 +00:00
Victor Farazdagi
23ff14c34b
Move spectests into a separate package ( #8798 )
...
* move general/phase0/bls tests
* phase0/operations tests
* phase0/sanity/blocks
* fix import
* phase0/sanity/slots
* phase0/sanity/slots minimal
* phase0/epoch_processing tests
* phase0/rewards tests
* simplify
* more simplification
* phase0/shuffling tests
* phase0/ssz_static tests
* spectest/utils
* fix build
* readme
* update test sizes
* update readme
2021-04-22 14:53:30 +00:00
Kevin Lu
e52df323f7
Added public/private flags for IP address white/blacklisting ( #8648 )
...
* Added public/private flags for IP address white/blacklisting
* Provided reference docs for private IP address ranges
* Formatting changes and inline comments for private ip address specification
* @nisdas feedback, commentary fixes
* Added in inverse case where we allow for private address
* changed helper function to take in multiaddr Action as argument, syntax changes for control logic
* minor refactoring to control flow of configFilter and private addr filter helper function
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>
2021-04-21 06:25:30 +00:00
Victor Farazdagi
823f7c99d2
Update spec tests ( #8792 )
...
* update path to minimal tests
* update specs testutils
* fix attestation_test
* attester_slashing_test
* fix block_header_test
* block_processing_minimal
* core/blocks minimal spectests
* epoch_processing minimal spectests
* slot_processing minimal spectests
* bls spectests
* update mainnet tests
* fix remaining tests
* gazelle
2021-04-20 23:54:06 +00:00
Shay Zluf
d77c298ec6
Support authorised access to web 3 providers ( #8075 )
...
* jwt access token impl
* use secret or jwt
* rename
* separate method for splitting auth
* usage update
* Update beacon-chain/flags/base.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/node/node.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* make things work
* removed unused code
* better, more flexible authorization
* move types and function to proper packages
* fix checking if endpoint is not set
* fix existing tests
* rename Endpoint field to Url
* Tests for HttpEndpoint
* better bearer auth
* tests for endpoint utils
* fix endpoint registration
* fix test build
* move endpoint parsing to powchain
* Revert "fix existing tests"
This reverts commit ceab192e6a78c106cf4e16a1bdf5399752a39890.
* fix field name in tests
* gzl
* add httputils dependency
* remove httputils dependency
* fix compilation issue in blockchain service test
* correct endpoint fallback function and tests
* gzl
* remove pointer from currHttpEndpoint
* allow whitespace in auth string
* endpoint equality
* correct one auth data Equals test case
* remove pointer receiver
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-04-15 11:02:02 +00:00
Radosław Kapka
902e3f4f53
Fix overriding network config in tests ( #8756 )
...
* Fix overriding network config in tests
* copy config in OverrideBeaconNetworkConfig
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-04-14 07:39:20 +00:00
terence tsao
59eb2e60d0
Combine function parameters ( #8758 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-04-13 19:56:28 +00:00
Radosław Kapka
389bad7d24
Extract node configuration to separate file ( #8744 )
...
* Extract node configuration to separate file
* rename WarnIfNotSupported
* rename configuration to config
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-04-13 07:04:34 +00:00
Victor Farazdagi
97b4b86ddf
Update NextPowerOf2() and PrevPowerOf2() funcs ( #8751 )
...
* Update NextPowerOf2() and PrevPowerOf2() funcs
* gofmt
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-04-13 06:09:56 +00:00
Victor Farazdagi
cc9bec7a19
Update specs comments ( #8750 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-04-13 05:35:22 +00:00
Nishant Das
c65c6ebc38
Invert BLST Go Tag ( #8725 )
...
* invert go tag
* fix rc
* try again
* Revert "try again"
This reverts commit 70ff7658b7cbc43b903bac267f4d7c9833536f8b.
* fix fuzz
* Update shared/bls/blst/BUILD.bazel
Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
2021-04-11 11:11:15 +00:00
Victor Farazdagi
1af88b2c35
Remove redundant MerkleRoot function ( #8733 )
...
* Remove redundant MerkleRoot function
* update merle_tree() specs comment
2021-04-10 03:13:07 +00:00
Victor Farazdagi
0808c02c65
Update spec comments ( #8727 )
2021-04-08 19:33:54 +00:00
Nishant Das
f0e2f561d5
Make BLST The Permanent Default ( #8710 )
...
* remove herumi
* gaz
* deprecate flag
* remove source builds of herumi
* remove
* Revert "remove source builds of herumi"
This reverts commit ac7dd133eddcd9ab27d7d75e19efabd994b89d3c.
* disable blst
* remove herumi hard requirement from fuzz
* restrict viz, ensure all deps removed from fuzz
* remove source builds
* add back opts
* add back herumi initialization
* Revert "add back opts"
This reverts commit ad9b409b8ad2410142efba92e71c555fedb2a29e.
* Revert "remove source builds"
This reverts commit b78ee30dba1befad24262648e2fde1583263c87d.
* Revert "restrict viz, ensure all deps removed from fuzz"
This reverts commit 65d951da93103eb327643c3c167ae7498955d244.
* Revert "remove herumi hard requirement from fuzz"
This reverts commit ad92191d8146bf7fea4508fb99a1ae9267683f6d.
* redundant
* add lock for rand generation
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-04-07 10:18:19 -05:00
terence tsao
01eb77c834
ProcessPreGenesisDeposits: Remove context.TODO() usage ( #8705 )
...
* ProcessPreGenesisDeposits: Remove context.TODO() usage
* apply #8704 change
Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-04-05 15:07:56 +00:00
Nishant Das
3cd95b4a6c
copy better ( #8708 )
2021-04-05 08:48:19 -05:00
Preston Van Loon
c179cfb93e
BLS: Deprecate usage of AggregateVerify ( #8699 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-04-02 15:53:08 +00:00
terence tsao
5f2f53a0a6
Harden beacon state interface for Altair ( #8673 )
...
* State: clean up
* Add error to return signature
* Remove SetCurrentEpochAttestations and SetPreviousEpochAttestations
* Fix tests
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-03-26 18:15:03 +00:00
Raul Jordan
b2d9f9a2d8
Fix Secrets Failing Build ( #8660 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-03-24 18:01:58 +00:00
Radosław Kapka
c112d27ab5
Extract filling testutil's beacon chain root ( #8645 )
...
* Extract filling testutil's beacon chain root
* gzl
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-03-24 03:47:36 +00:00
Raul Jordan
d2b1115f46
Feature Flag for Enabling Slashing Protection Pruning ( #8632 )
2021-03-19 17:54:47 +00:00
Preston Van Loon
e477fdfd6d
Embedded mainnet genesis state + load genesis.ssz from file ( #8614 )
...
* Update rules_go and fix proto conflicts
* gaz
* Update generated code
* First pass inclusion of using baked states
* more emptypb fixes
* remove testnet genesis files, only embed mainnet
* Refactoring for SaveGenesisData, fix tests that use mainnet config but do not support mainnet genesis values
* a bit more refactoring, load genesis from a file. Needs tests still
* Add method to ensure an embedded genesis file also has the appropriate genesis block
* gofmt
* more clear error
* Check genesis fork version to ensure testnet config matches genesis file
* viz
* test for SaveGenesisData
* More genesis db method tests
* Merge
* Minor tweaks, lint, fmt, etc
* Add more test to genesis db methods
* Revert beacon-chain/state/stateV0/BUILD.bazel
* Update beacon-chain/db/iface/errors.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* PR feedback
* Update beacon-chain/db/kv/genesis.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* fmt.Errorf works better for nil errors
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-03-18 21:00:00 +00:00
terence tsao
a921455836
Remove no bootnode error for Prater ( #8628 )
2021-03-18 19:38:04 +00:00
terence tsao
beadec32b8
Add prater boot nodes ( #8623 )
...
* Add bootnodes
* Typos
* Add sigp's lighthouse node
2021-03-18 14:26:18 +00:00
terence tsao
ce725ceec3
Move state pkg to stateV0 pkg ( #8620 )
...
* Move state pkg to stateV0 pkg
* Build.bazel
* Remove unused RootsArrayHashTreeRoot
* Revert "Remove unused RootsArrayHashTreeRoot"
This reverts commit bf0bda30d1a8eb7a071f6e3ce9ee85041b45aca6.
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-03-17 19:49:49 +00:00
Preston Van Loon
034a28710e
Add Prater config ( #8613 )
...
* Add Prater config
* Register flag everywhere
* gofmt
* Apply suggestions from code review
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* Update shared/params/testnet_prater_config.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-03-17 14:14:07 +00:00
terence tsao
7b16601399
State: Return interface{} for pb related methods ( #8617 )
...
* Return interface{} instead of *pbp2p.BeaconState
* Comment
2021-03-16 22:26:17 -05:00
terence tsao
9fea9816bd
BeaconState: Expose MarshalSSZ ( #8609 )
2021-03-16 00:43:27 +00:00
Preston Van Loon
eb694ab5d5
Update rules_go and fix proto conflicts ( #8596 )
...
* Update rules_go and fix proto conflicts
* gaz
* Update generated code
* more emptypb fixes
* gaz
Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
2021-03-11 18:03:19 -06:00
Raul Jordan
286444a2ec
Shorter Pruning Period for Slashing Protection ( #8590 )
...
* begin a simpler pruning process
* shorter pruning
* pass all pruning tests
* passing tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-03-11 15:51:16 +00:00
Victor Farazdagi
55b6134be1
Improves UTs coverage in shared/aggregation ( #8593 )
...
* improves shared/aggregation test suite
* improves coverage in shared/aggregation/attestations
2021-03-11 15:01:19 +00:00
terence tsao
bdf2b2019b
Use beacon state interfaces across ( #8552 )
2021-03-08 14:37:33 -08:00
Victor Farazdagi
f2125e5f64
Proposer attestation selection using max-cover ( #8571 )
...
* Proposer attestation selection using max-cover
* better alisgn struct field
* more tests
* cleanup
* simplify expressions
* add benchmarks
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-03-08 18:46:24 +00:00
Victor Farazdagi
294b031fa4
Fixes incorrect usages of gazelle:ignore ( #8562 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-03-08 18:09:39 +00:00
Radosław Kapka
edd86fd358
Simplify API beacon pool tests ( #8564 )
...
* fix comment of FarFutureEpoch
* remove not needed validator configuration
2021-03-05 16:10:48 +00:00
Radosław Kapka
e36c3dd668
Ignore "safe" secrets in DeepsSource analysis ( #8555 )
2021-03-04 13:52:55 +00:00
Panagiotis Georgiadis
46f6bd6d08
A bit of cleanup based on goconst tool ( #8529 )
...
* Make 1 occurence of 'foo', 'bar' and 'fizz!'
* Make 1 occurence of 'merkleizing list that is too large, over limit' string
* Limit password occurrences
* Make only 1 occurence of 'strongPass'
* Limit testMnemonic occurrences
* Limit expected epoch error messages
* Rename errors and use constant
* Update bazel dependencies
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2021-03-02 11:39:54 +00:00
Preston Van Loon
b3dcbfe2a4
Update snappy to fix ARM64 with go.1.16 (Reverts #8538 ) ( #8539 )
...
* Revert "Revert "Update to go 1.16" (#8538 )"
This reverts commit a92b20d2bb
.
* Update snappy
2021-03-02 16:54:16 +08:00
Nishant Das
a92b20d2bb
Revert "Update to go 1.16" ( #8538 )
...
This reverts commit f4adc0ea86
.
2021-03-02 05:35:08 +00:00
Nishant Das
8a27449595
Increase default peer limit from 30 to 45 ( #8530 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-03-01 18:35:27 +00:00
Eduard Klementiev
a3781e2ffc
Add prysm version to prometheus ( #8527 )
...
* Add prysm version to prometheus
* gofmt
* apply suggestion
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-03-01 17:50:20 +00:00
Radosław Kapka
9547f53e88
Migration package tests ( #8524 )
...
* first few tests
* rest of tests
* gzl
* test block hydration
* compare roots
* gzl
* compare exit roots
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-03-01 13:52:07 +00:00
ahadda5
29d1959b81
Recursively Find Validator Database File In Slashing Protection Commands ( #8518 )
...
* issue/feature 8500 find validator.db automatically
* gazelle build
* remove less! why there?
* fixed errors import
* fixed errors import
* unit tested
* adding the find validator.db fileutil func to export and import slashing
* deleted the comment
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-02-26 11:04:18 -06:00
Preston Van Loon
f4adc0ea86
Update to go 1.16 ( #8521 )
...
* Update to go 1.16
* Also update go.mod
* rm go.sum then run go mod tidy
* go mod tidy with go 1.16
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-02-25 21:38:19 +00:00
terence tsao
b400098296
Remove unused code ( #8517 )
...
* Remove unused code
* Go mod tidy
* Gazelle
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-25 18:13:13 +00:00
pinglamb
5db5ca7056
Use eth2-types SSZUint64 ( #8514 )
2021-02-25 05:51:26 -08:00