ahadda5
ac4fe2db5a
Czech language support from go-bip39 incorporated ( #8861 )
...
* added Czech from go-bip39
* go mod tidy
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-05-05 20:51:05 +00:00
Preston Van Loon
2f66d1a46c
Use mock web3/powchain for fuzz test ( #8866 )
...
* Use mock web3/powchain for fuzz test
* gofmt
* build viz
2021-05-05 20:18:55 +00:00
Nishant Das
60c6cf7438
reduce map copies ( #8860 )
2021-05-05 16:28:35 +08:00
ahadda5
8dd2915d3c
Unify gRPC Gateways into Single, Shared lib ( #8799 )
...
* moved validator/rpc/gateway under shared, validator/rpc/web is not visiable to the new shared gateway
* decided to have one lib with two methods if needed, status and stop are the same, however New and Start are not
* moved beacon's gateway to shared and moved the main func to its own /server folder
* goftm
* gofmt
* removed the extra loggin
* reduce visibility
* tighter visibilty of the shared lib for beacon and validator only for now
* fix patterns , ctx needs to be first param
* fix comments
* gofmt
* added enum for the caller id
* added unit test for gateway
* deprecated .WithDialer to .WithContextDialer
* changed the string callerId to uint8, and rearranged the Gateway struct based on the compiler
* fix 1 based on comment
* iota type
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-05-04 17:20:58 +02:00
terence tsao
3c9b9e7bf5
Add interop write block and state to disk ( #8840 )
...
* Add interop write block and state to disk
* Comment why false
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-05-04 03:42:06 +00:00
kasey
a090650446
fixes #8848 -- scrape validator_(total|active) ( #8858 )
...
fixes #8848 -- scrape validator_total, validator_active
2021-05-03 17:24:27 -05:00
kasey
dace0f9b10
cli to push metrics to aggregator service ( #8835 )
...
* new prometheus metrics for client-stats metrics
* adds client-stats types beacause they are
used by some of the prometheus collection code.
* new prometheus collector for db disk size
* new prometheus collector for web3 client
connection status
* adds client-stats api push cli in cmd/client-stats
* adds api metadata to client-stats collector posts
* appease deepsource
* mop up copypasta
* use prysm assert package for testing
2021-05-03 09:57:26 -05:00
terence tsao
a6e1ff0e63
Run go imports ( #8851 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-05-03 13:44:58 +00:00
terence tsao
1dde588932
Revert "Invert next-slot-state-cache
flag ( #8830 )" ( #8855 )
...
This reverts commit 64bd9dba9b
.
2021-05-03 08:04:45 +08:00
Nishant Das
54d4d39ea1
Revert "Simplify Effective Balance Calculation ( #8743 )" ( #8844 )
...
* Revert "Simplify Effective Balance Calculation (#8743 )"
This reverts commit 45d2df1af7
.
* add flag
2021-05-01 13:07:38 -05:00
kasey
7be6fc1780
new prometheus metrics for client-stats metrics ( #8834 )
2021-04-30 13:37:38 -07:00
Radosław Kapka
2fdfda2804
Fix remote keymanager's dynamic key reload ( #8817 )
...
* Fix remote keymanager's dynamic key reload
* wait for activation test
* runner test
* rename mock creation func
* fix compile error
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-04-30 15:15:22 +00:00
Nishant Das
a063952abe
Fix Script ( #8842 )
...
* enable script
* add permission in
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-04-30 14:58:29 +00:00
Radosław Kapka
1a00121e60
Correct documentation for DepositsNumberAndRootAtHeight
( #8843 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-04-30 14:40:42 +00:00
terence tsao
8fffa6c92a
Remove junk files ( #8846 )
2021-04-30 16:20:14 +02:00
terence tsao
64bd9dba9b
Invert next-slot-state-cache
flag ( #8830 )
...
* Invert `next-slot-state-cache`
* Go fmt
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2021-04-30 12:47:44 +00:00
Preston Van Loon
f2767f4f8d
Update github.com/grailbio/bazel-toolchain. Fixes #8072 ( #8839 )
2021-04-29 14:57:16 +00:00
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
b6c50df435
Add New Method to Fuzz State ( #8823 )
2021-04-28 10:17:36 +00:00
Preston Van Loon
9b697d2c12
Partially revert PR #8809 ( #8829 )
2021-04-28 17:02:32 +08:00
Victor Farazdagi
d1a952a6fc
Spec tests: improve readability of rewards tests output ( #8826 )
...
* Spec tests: improve readability of rewards tests output
* fix minimal tests
* remove redundant var
* simplify
2021-04-27 16:14:11 +00:00
Nishant Das
58a81c704b
Remove Missing Logs Method ( #8825 )
...
* remove missing logs method
* gaz
* remove unused var
2021-04-27 19:12:47 +08:00
Nishant Das
5c9f361903
validate big num better ( #8822 )
2021-04-27 14:46:47 +08:00
Nishant Das
ef9f6c5b4d
Initialize Data Correctly For Powchain Service ( #8812 )
...
* initialize index correctly
* comments
* review comments
* Update beacon-chain/powchain/service.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-04-25 00:11:15 -05:00
Preston Van Loon
424e115331
Independent eth1 voting ( #8811 )
2021-04-24 18:32:45 -07:00
Radosław Kapka
f1d7c0f2c9
Create a new wallet on accounts import only when necessary ( #8801 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-04-24 08:26:41 +00:00
Raul Jordan
3d96e3c142
Amend DepositNumberAndRootAtHeight Function to Fix Off-By-One ( #8809 )
...
* amend deposit cache and add comprehensive unit tests to fix off-by-one error
* fix tests
* still need to +1 deposit index
2021-04-24 08:02:34 +00:00
Raul Jordan
8cda50f179
Optimized Slasher Database Methods ( #8805 )
...
* slasher kv additions
* gaz
* pass tests
2021-04-23 12:06:13 -05:00
Nishant Das
3574ee177d
vendor codecov script ( #8803 )
2021-04-23 09:50:03 -05: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
Raul Jordan
711f527efb
Amend E2E Test Path ( #8793 )
2021-04-20 16:54:38 +00:00
Raul Jordan
af8f444166
Upgrade Bazel Go-Ethereum ( #8791 )
...
* upgrade bazel go ethereum
* tidy
2021-04-20 15:28:07 +00:00
Raul Jordan
2634430f67
Update Go-Ethereum Dependency ( #8788 )
2021-04-20 06:57:26 -07:00
terence tsao
70dc22aa9a
Fix redundant err check ( #8790 )
2021-04-20 02:25:16 +00:00
Everest Stefan Munro-Zeisberger
ad269ee147
Set up Prysm for fuzz testing on Fuzzbuzz ( #8789 )
...
* Wrap beacon fuzz tests in go-fuzz compatible test functions
* Add fuzzbuzz.yaml
2021-04-19 19:00:46 +00:00
Nishant Das
cff7dbd015
Add Eth1 Header Timestamp Check ( #8771 )
...
* add time check
* unit test
* fix
* Update beacon-chain/powchain/service.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-04-17 13:55:41 +00:00
Preston Van Loon
afc0ace624
POW: remove context from log message ( #8782 )
2021-04-16 19:16:36 +00:00
terence tsao
400e42cc2d
Reuse ProcessBlockForStateRoot ( #8781 )
2021-04-16 10:18:59 -07:00
Victor Farazdagi
59ee339497
Move TestMain into dedicated file ( #8779 )
...
* Move TestMain into dedicated file
* update db_test
* formatting
2021-04-16 16:25:28 +00:00
Radosław Kapka
c53d0e1c5f
Codecov: ignore testing
directories ( #8777 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-04-16 08:44:36 -05:00
Raul Jordan
02a8ae7f36
Validator RPC Accounts Voluntary Exit ( #8776 )
...
* begin voluntary exits RPC
* added in exit logic
* complete exit func
* revert
* capitalize
* revert
* import
* rpc voluntary exit test
* fmt
2021-04-16 09:46:38 +02:00
terence tsao
a4ff97d24b
Refactor signature function's argument ( #8773 )
2021-04-15 11:35:53 -07:00
Victor Farazdagi
3d3b9d1217
Spec checker tool ( #8722 )
...
* Add specdocs static code analyzer
* docs pulling script
* update content pulling script
* add test
* better parsing of incoming docs
* update test
* implements analyzer
* separate tool
* remove analyzer code
* cleanup
* deep source fixes
* untrack raw specs files
* add back phase0 defs
* update spec texts
* re-arrange code
* updated spec list
* cleanup
* more comments and readme
* add merkle proofs specs
* add extra.md
* mark wrong length issue
* update readme
* update readme
* remove non-def snippets
* update comment
* check numrows
* ignore last empty line
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-04-15 14:54:07 +00:00
terence tsao
169cd78bbd
Refactor process operation function arguments ( #8767 )
...
* Pass slash validator func as argument
* Refactor ProcessBlockHeaderNoVerify
* Refactor Eth1Data and Randao
* Refactor ProposerSlashing
* Refactor AttesterSlashing
* Refactor VoluntaryExit
* Add VerifyNilBeaconBlock to ProcessBlock
Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
2021-04-15 13:58:54 +00:00
Nishant Das
405e2a1a03
Thread Context for HTR Methods ( #8770 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2021-04-15 12:17:55 +00:00