Author

Topic: { [Error: CWallet::GenerateNewKey() : AddKey failed] code: -1 } (Read 1378 times)

legendary
Activity: 3472
Merit: 4801
Thanks, I'll try it for longer.

On a related note. If I unlock my wallet for say 30min and then make a copy of my wallet in that time without re locking it, will the copy be encrypted?

Yes.
newbie
Activity: 21
Merit: 0
Thanks, I'll try it for longer.

On a related note. If I unlock my wallet for say 30min and then make a copy of my wallet in that time without re locking it, will the copy be encrypted?
legendary
Activity: 1358
Merit: 1001
https://gliph.me/hUF
newbie
Activity: 21
Merit: 0
yeah, currently doing

bitcoind walletpassphrase myreallysafepassword 5

and the permissions on my wallet.dat are

-rw------- or 600
legendary
Activity: 1358
Merit: 1001
https://gliph.me/hUF

Do you unlock the wallet with some time argument, i.e. 600?
sr. member
Activity: 325
Merit: 250
Is the wallet accessible file permission wise?
newbie
Activity: 21
Merit: 0
Any idea what error code -1 means and what could be causing this?

I'm trying to refill my keypool and then back up my wallet.dat so first I call walletpassphrase followed by keypoolrefill and then I get the error

{ [Error: CWallet::GenerateNewKey() : AddKey failed] code: -1 }

Not quite sure what could be causing this since the same unlock pattern works for send on this same wallet.

Gavin documents the error codes here (https://bitcointalksearch.org/topic/json-rpc-error-code-format-33122) but unfortunately left out -1.
Jump to: