prysm-pulse/validator/rpc
dv8silencer 7664eab32d
Introduce checks for existing wallets into two edge cases (#7349)
* Add check for preexisting wallet

* Reminder

* Create another check.  Adjust tests

* Wording in comment

* Remove unnecessary logic.  Add another regression test.

* Spacing

* Prepare to merge master

* Refactor wallet checks

* Fixed test

* Revert back to original location of check

* Fix test

* Fix test

* Address linter feedback

* Align CreateWallet() with recent changes

* Align RecoverWallet with recent changes

* Correct test error message

* Refactor test to minimize duplication

* rename to isValid and adjust function code

* refactor

* Improve IsValid()

* Fix tests

* Remove comment

* Fix documentation of IsValid()

* Align behavior of OpenWalletOrElseCli

* Fix tests

* Realigning error msg with prior behavior

* Fix another test

* Correct logic

* small change in logic

* Fix err messages

* Create consts for repeated strings

* Add comments to new constants

* gofmt

* Adjust WalletConfig behavior so it is closer to prior-to-PR.  Adjust test accordingly

* adjust error messages

Co-authored-by: dv8silencer <15720668+dv8silencer@users.noreply.github.com>
2020-09-30 16:13:37 +02:00
..
gateway Implement Create and List Accounts Validator RPC (#7172) 2020-09-04 00:58:36 +00:00
accounts_test.go Remaining Proto Definitions for Validator RPC Methods (#7368) 2020-09-29 01:58:14 +00:00
accounts.go Remaining Proto Definitions for Validator RPC Methods (#7368) 2020-09-29 01:58:14 +00:00
auth_test.go Store Hashed Password to Wallet Path (#7295) 2020-09-22 14:49:07 +00:00
auth.go Introduce checks for existing wallets into two edge cases (#7349) 2020-09-30 16:13:37 +02:00
BUILD.bazel Implement Wallet Config and HasWallet Endpoints (#7341) 2020-09-24 15:37:59 -05:00
health_test.go Fix Small Issue in Validator RPC Health Endpoint (#7195) 2020-09-08 22:35:31 +00:00
health.go Fix Small Issue in Validator RPC Health Endpoint (#7195) 2020-09-08 22:35:31 +00:00
intercepter_test.go Add Node Connection Endpoint to Validator Client (#7171) 2020-09-03 23:25:56 +00:00
intercepter.go Implement Wallet Config and HasWallet Endpoints (#7341) 2020-09-24 15:37:59 -05:00
server_test.go Add Authentication Functions to Validator RPC (#6968) 2020-08-13 20:27:42 +00:00
server.go Restructure Prysm Wallet V2 Package to Prevent Import Cycles (#7247) 2020-09-16 20:34:42 -05:00
wallet_test.go Introduce checks for existing wallets into two edge cases (#7349) 2020-09-30 16:13:37 +02:00
wallet.go Introduce checks for existing wallets into two edge cases (#7349) 2020-09-30 16:13:37 +02:00