eos icon indicating copy to clipboard operation
eos copied to clipboard

i can't use nodes to visit keosd

Open XieWeiZM opened this issue 8 years ago • 10 comments

Example:http://localhost:8888/v1/wallet/unlock is error

but http://localhost:8900/v1/wallet/unlock is ok

XieWeiZM avatar Jul 17 '18 08:07 XieWeiZM

{ "code": 500, "message": "Internal Service Error", "error": { "code": 3120002, "name": "wallet_nonexistent_exception", "what": "Nonexistent wallet", "details": [] } } @jgiszczak

XieWeiZM avatar Jul 17 '18 08:07 XieWeiZM

root     19518 19517  1 14:57 ?        00:01:26 ./nodeos -e -p eosio --config-dir=/data/program/eos/build/programs/nodeos/config --data-dir=/data/program/eos/build/programs/nodeos/data --hard-replay-blockchain
root     21913     1  0 16:50 pts/2    00:00:00 /data/program/eos/build/programs/keosd/keosd --http-server-address=127.0.0.1:8900
root     21919 21183  0 16:50 pts/2    00:00:00 grep --color=auto eos

XieWeiZM avatar Jul 17 '18 08:07 XieWeiZM

@sergmetelin

XieWeiZM avatar Jul 17 '18 09:07 XieWeiZM

hi, have you added the 'wallet_api_plugin' in your plugin list when you boot the chain?

Elliot438b avatar Jul 17 '18 09:07 Elliot438b

@evsward image

XieWeiZM avatar Jul 17 '18 09:07 XieWeiZM

image @evsward

XieWeiZM avatar Jul 17 '18 09:07 XieWeiZM

image image

XieWeiZM avatar Jul 17 '18 09:07 XieWeiZM

@heifner

XieWeiZM avatar Jul 17 '18 09:07 XieWeiZM

i have update image it is ok,but why??

XieWeiZM avatar Jul 17 '18 09:07 XieWeiZM

nodeos configurations should have neither wallet_plugin nor wallet_api_plugin initialized, as the warning message states. keosd initializes both without config.ini intervention. It's hardcoded. Wallets inadvertently created on nodeos may be moved to keosd's wallet-dir without issue. They're completely compatible. Alternatively, if the keys in the nodeos wallet are still available elsewhere, they may simply be reimported into a keosd wallet and the nodeos wallet deleted.

http://localhost:8888/v1/wallet/unlock should not be made to work. It should always be an error, as that is nodeos by default, which should not configure a wallet.

jgiszczak avatar Jul 17 '18 22:07 jgiszczak