openvcash / vcash

A decentralized currency for the internet.
https://vcash.info
GNU Affero General Public License v3.0
36 stars 35 forks source link

[RPC] importprivkey account re-assigning even though it returns an error #10

Closed whphhg closed 7 years ago

whphhg commented 7 years ago

Using importprivkey with an already imported private key, but different account name will re-assign that address to the new account, even though it was previously imported and you're getting an error response.

whphhg commented 7 years ago

It now no longer returns an error when you try to import an existing private key.

Edit: going over the docs I found out that the default is to return null if the private key is successfully imported or already part of the wallet. It was a neat distinction to show better error to the user.