skycoin / skycoin

Skycoin Core and Wallet

Home Page:https://www.skycoin.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Encrypt wallet with default crypto type when the wallet's crypto type filed is empty

iketheadore opened this issue · comments

We will see 500 Internal Server Error - crypto type field not set. error if we try to encrypt a wallet that has empty value of 'cryptoType' field. Although we should not have this happened in current version of wallet, but we still need to cover this case.

So use the default crypto type if the 'cryptoType' field is empty when encrypt a wallet. This should be applied to the API
/v1/wallet/encrypt for all kinds of wallet.