Raul Jordan
f67f8dd6df
Configurable Interval for Debouncing Keystore Reloading in Validator Client ( #8149 )
...
* configurable keystores debounce interval
* use a time duration flag instead
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-01-05 00:52:12 +00:00
Jeff Widmer
0e5da504f4
Fix for prysm.bat issue 'Validator' is not recognized as an internal or external command ( #8097 )
...
Fix for the issue where if either the beacon, validator, or slasher are already up to date, then the message:
"'Validator/Beacon/Slasher' is not recognized as an internal or external command, operable program or batch file."
The issue was that the message "Validator/Beacon/Slasher is up to date." is not echoed to the console but it is trying to be run as a command.
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-01-04 23:27:38 +00:00
Cipio
f6af79f415
Fix file permission checks for Windows ( #8164 )
...
* Does bitwise compare for MKDIR
* Implemented a more global solution to windows permission issues
* Remove unneeded line I added earlier.
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-01-04 22:48:42 +00:00
Radosław Kapka
af2c36ec40
Add names to certain return values in accounts ( #8159 )
...
* add names to certain return values
* remove redundant
* rename selected public keys
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-01-04 21:44:15 +00:00
terence tsao
5dc8eb45d3
Add slot in epoch field for `Attestation schedule..." log ( #8166 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-01-04 21:10:32 +00:00
Victor Farazdagi
b54743edbf
Add mutex to params/config ( #8160 )
...
* add mutex to params/config
* split config files into test/prod
* add tags checker
* add regression test
* remove debug info
* update bazel config
* go fmt
* make sure that conditional file is kept by gazelle
* update build tag: test -> develop
* gazelle
* remove redundant import
* update deps.md (per Nishant's suggestion)
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-01-04 20:48:39 +00:00
Victor Farazdagi
04b2e0776d
Fix import shadowing of state package ( #8191 )
...
* update shadowed var name
* update var names
* remove unnecessary delta
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-01-04 20:07:12 +00:00
Shay Zluf
70da296a3b
Bring back disable slashing broadcast flag ( #8141 )
...
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>
2021-01-04 19:36:17 +00:00
Mohamed Mansour
2defff0886
Add new GetVersion API to Health Service ( #8167 )
...
* Add new GetVersion API to Health Service
This is to support showing version information in the web ui.
Since health.go is built through validator bazel, we can use
`shared.GetVersion` directly.
Backend for: prysmaticlabs/prysm-web-ui#107
* Run goimports and update-go-pbs
* go mod tidy
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-01-04 18:51:52 +00:00
Victor Farazdagi
ee8aacbbbf
Remove redundant lambda around cleanup code ( #8192 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-01-04 18:16:18 +00:00
terence tsao
4055841952
Update int -> string conversion to make go test happy ( #8183 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-01-04 17:53:59 +00:00
terence tsao
bf673ecb12
Validator nil duty should not panic ( #8171 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-01-04 17:28:00 +00:00
Victor Farazdagi
7c25d5c852
Compare strings using strings.EqualFold() ( #8193 )
2021-01-04 16:46:22 +00:00
Raul Jordan
4c6e0c5f46
Update Prysm Web UI to Beta.3 ( #8163 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-12-18 23:25:48 +00:00
Raul Jordan
768994550c
Fix Unknown Validator Edge Case in ListValidatorBalances ( #8162 )
...
* ensures unknown validators do not mess up rest of api response
* rem old test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-12-18 22:51:44 +00:00
Victor Farazdagi
f038d782c2
Fix issue with custom chain/network ID configuration ( #8147 )
...
* move chain/network id to beacon config
* go fmt
* improve tests
* validator params
* update deposit contract address
* complete tests
* re-arrange comments
* Less mis-leading comment, per Terence's review
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-12-18 22:22:48 +00:00
terence tsao
ff64fdcfb5
Flag to enable duty count down ( #8161 )
...
* Add a flag to enable count down
* Add tests
2020-12-18 21:12:57 +00:00
Victor Farazdagi
d8c31b79df
Fix import shadowing of db package ( #8158 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-12-18 19:12:30 +00:00
Nishant Das
ea88799585
Revert Inbound Peer Limit ( #8155 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-12-18 18:33:31 +00:00
Raul Jordan
72dc43989f
Stream Validator and Beacon Logs via gRPC Streams ( #8150 )
...
* implement validator logs stream
* fix test
* tidy
* proto regen
* add logs stream to the beacon node
* beacon logs working
* impl
* pass test
* gaz
* rem lock
* fix space
2020-12-18 18:03:24 +00:00
Victor Farazdagi
e772e8c8c2
Init sync: minor style fixes ( #8156 )
...
* simplify FSM calls
* improve calculateHeadAndTargetEpochs API
* simplify
* simplify nil assignment
2020-12-18 14:31:15 +00:00
terence tsao
df93affb4e
Move hot state cache to stategen ( #8153 )
...
* Move hot state cache to stategen
* Fix build.bazel
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-12-17 20:40:47 +00:00
Raul Jordan
d19c57cdb6
Remove Logout from Validator RPC Authenticated Paths ( #8151 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-12-17 19:46:27 +00:00
terence tsao
756ccbe5e4
Update Attestation schedule...
log for clarify ( #8148 )
...
* Don't use fraction, use different fields
* Update validator/client/validator.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Go fmt
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-12-17 19:12:41 +00:00
Nishant Das
46c67f1e9e
Fallback To Historical Sync For Powchain ( #8146 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-12-17 18:49:22 +00:00
Nishant Das
44c3adb367
Add Public Method To Retrieve Discovery Address ( #8143 )
...
* add method
* fix
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-12-17 18:03:18 +00:00
Radosław Kapka
25b151ab78
Make TLS mandatory by default when unmarshalling remote wallet options ( #8133 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2020-12-17 16:59:27 +00:00
Raul Jordan
f75b8a3be1
Implement Unified Validator API Endpoints for Beacon Chain Information ( #8139 )
...
* define all endpoints
* wrapper
* implement required validator endpoints
* begin impl
* implement remaining endpoint
* imports
* add in list validators
* intercepter
* test added
2020-12-17 16:26:32 +00:00
Nishant Das
dfdf77cb95
Add Instead of Subtract in Epoch Boundary Check ( #8145 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2020-12-17 14:31:05 +00:00
Radosław Kapka
d5bf8376c2
Clean up account logs and errors ( #8142 )
...
* small fixes in logs and errors
* fix error message in test
* found a period hiding in an error message
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-12-17 13:37:06 +00:00
Nishant Das
e2d7ec6f97
Refactor Method Signatures For Powchain ( #8110 )
...
* checkpoint
* fix tests
* fix visibility
* fix
* victor's review
* remove redundant LF
* remove redundant LF
Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
2020-12-17 12:33:34 +00:00
Raul Jordan
d650034734
Lock Only When Needed When Fetching Attesting History ( #8140 )
...
* lock when needed in attesting history
* rw
2020-12-17 00:18:38 +00:00
Preston Van Loon
a7cf77fc26
Update rules docker to include https://github.com/bazelbuild/rules_docker/pull/1666 , which updates the base images ( #8136 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-12-16 14:56:38 -06:00
terence tsao
0dcbf177aa
Fix participation query returning balances of orphaned chain ( #8137 )
...
* Check if block is canonical
* Add tests and better comments
* Grammar
* Update test for nil state
2020-12-16 13:31:34 -06:00
Nishant Das
82bba593eb
Do Not Verify Attestations When Packing Them ( #8135 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-12-16 18:06:49 +00:00
Raul Jordan
148e7fcd59
Consolidate Required Web UI Endpoints Into Single Protobuf File ( #8127 )
...
* define required endpoints for unifying backends
* proto definitions
* impl
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-12-16 17:30:48 +00:00
terence tsao
20dede7532
Move state summary cache to DB ( #8101 )
2020-12-16 08:56:21 -08:00
Preston Van Loon
3fb49433a1
Limit prometheus requests in flight, set timeout to reasonable 30 seconds ( #8130 )
2020-12-16 04:57:02 +00:00
Preston Van Loon
4326cbbf08
Validator database: use snappy compression on encoded attestation history ( #8129 )
...
* Remove old buckets, rename new buckets to be canonical
* Add migration and test
* Do the migrations
* Gazelle
* Clearify code, code review
* gofmt
2020-12-16 03:33:04 +00:00
terence tsao
dc27cd7a1e
Pass context to NewKVStore ( #8125 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-12-15 22:07:01 +00:00
terence tsao
0449cd3450
Allow update cache at last slot of the epoch ( #8094 )
...
* Epoch boundary updates at the last slot of the epoch
* Report metric on first slot
* Remove comment
* Add locks to param config
* Remove lock for copy
* Revert "Add locks to param config"
This reverts commit 79d5130b58ae7f80c72109e29cc9ea775c91b063.
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-12-15 21:19:02 +00:00
terence tsao
6244163770
FC test coverage improvement ( #8120 )
...
* Test coverage improvements
* Gazelle
* Update namings
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-12-15 20:44:35 +00:00
Victor Farazdagi
f5c87075f2
Fix issue with roaming data dir on Wins ( #8095 )
...
* patch beacon node
* make sure that check is executed before anything else
* fix format
* make sure that check is reusable by other executables
* debug infor
* fix typo
* more debug info
* use copydir
* cleanup
* better explanation
* gazelle
* go fmt
* debug tos permissions
* upadte copydir
* gazelle
* better check of tos acceptance
* expand path
* update validator
* move fixing func
* move fixing method
* make sure that updater works both on main and subcommands
* remove from startnode
* add copydir test
* add DirFiles method and tests
* fix test
* add and test HashDir
* update tests
* fix test
* add datadir removal
* update messages
* further update messages
2020-12-15 14:01:51 -06:00
Preston Van Loon
ad7d3c74cc
Validator DB cleanup: remove obsolete buckets ( #8122 )
2020-12-15 18:24:56 +00:00
Nishant Das
508c5fcf2f
More Efficient Validation of Proposer Index ( #8107 )
...
* metric
* make it better
* make it better
* gaz
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-12-15 16:27:05 +00:00
Victor Farazdagi
a0c475671c
Add extra methods to shared/fileutil ( #8117 )
...
* add extra methods to fileutil
* Shay's suggestion
* Update shared/fileutil/fileutil.go
Co-authored-by: Shay Zluf <thezluf@gmail.com>
* Adds reference to the original implementation
Co-authored-by: Shay Zluf <thezluf@gmail.com>
2020-12-15 14:18:15 +00:00
Preston Van Loon
72a92fe708
CI: Disable remote caching of GoStdLib ( #8111 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-12-15 05:58:52 +00:00
terence tsao
6a5589f99e
Skip proposer indices cache update if exists ( #8096 )
...
* Check if cache is empty before update
* Add tests
* Fix tests
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-12-15 00:09:30 +00:00
terence tsao
70c0bb106b
Beacon node code health improvements ( #8109 )
...
* Apply code health fixes after code inspect
* Remove attestationRoot
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-12-14 23:41:24 +00:00
Victor Farazdagi
0f18867f08
Remove duplicate package imports ( #8104 )
...
* remove duplicate imports
* remove unused lookupLimit
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-12-14 22:22:55 +00:00