I have password-encrypted wallet.dat on windows computer. On windows, I want to refill keypool with 5000 addresses (keypoolrefill )And I want to move this wallet to linux.Bitcoin Core 0.15 on both computers.

Is that works? Any future problems with wallet encryption or keypool refill?

When the default keypool was only 100, I once set it to 10,000. Now it's back to the default value (1000), I'm not sure at what point it got lower again, but it did. Keep this in mind!If at all possible, can you move to a new HD wallet? With a HD wallet you don't have to worry about keypools again (unless you change the password).

One last thought: although it works fine to use the same wallet on two computers, your address book entries will only show up on the computer that created them.

You should be able to just move it without any issues as long as the backup was made correctly and isn't missing anything, and isn't corrupted. You should check that it works first before moving it over.

It should be fine to just move it into the Linux machine, but I would suggest you keep a backup on a USB or something anyway just to be safe.

I have password-encrypted wallet.dat on windows computer. On windows, I want to refill keypool with 5000 addresses (keypoolrefill )And I want to move this wallet to linux.Bitcoin Core 0.15 on both computers.

Is that works? Any future problems with wallet encryption or keypool refill?

Thanks

Do you have the original password you generated when you created the wallet.dat? if you have it then there shouldn't be a problem for the import.

But what i recommend is to get a backup of your privatekeys, that way you will be able to import your addys to any wallet in the future, no matter the operative system or the wallet by it self, at end all of them support importing a private key.

When the default keypool was only 100, I once set it to 10,000. Now it's back to the default value (1000), I'm not sure at what point it got lower again, but it did. Keep this in mind!If at all possible, can you move to a new HD wallet? With a HD wallet you don't have to worry about keypools again (unless you change the password).

One last thought: although it works fine to use the same wallet on two computers, your address book entries will only show up on the computer that created them.

Thats why i'm asking. I dont want to loose all new keys after keypoolrefill.

Can you please remember, maybe you update your Bitcoin Core and after you got just 1000 keys in keypool?

If you created your wallet in 0.15, yes.If you created your wallet in an old version (< 0.13, i think) and upgraded it, yes.If you created your wallet before 0.13 and didn't upgrade the wallet with the startup command -upgradewallet, then no.

Are you sure I dont have to enter password and decrypt wallet to refill my keypool? Because I dont think so. And I dont want to enter password for this wallet on online computer.

You don't have to "refill your keypool".You can simply generate addresses on demand, without having to worry about inconsistency.The first 100 generated addresses on your linux machine will be equivalent to the first 100 generated addresses on your windows machine. The next 1000 (created on linux) will match those 1000 (created on windows), and so on.

Are you sure I dont have to enter password and decrypt wallet to refill my keypool? Because I dont think so. And I dont want to enter password for this wallet on online computer.

You don't have to "refill your keypool".You can simply generate addresses on demand, without having to worry about inconsistency.

@bob123: I think you're wrong here: as far as I know, you need to enter your password to refill keypool.

Click Help > Debug window > Console, and enter getwalletinfo. It tells you the keypool size:

Code:

"keypoolsize": 1000,

Suggestion: if you copy your wallet.dat from the offline to the online computer before your keypool runs out, you don't have to enter your password on the online computer. Unless you use a lot of new addresses, this will work. I would last years with 1000 addresses.

If you created your wallet in 0.15, yes.If you created your wallet in an old version (< 0.13, i think) and upgraded it, yes.If you created your wallet before 0.13 and didn't upgrade the wallet with the startup command -upgradewallet, then no.

Are you sure I dont have to enter password and decrypt wallet to refill my keypool? Because I dont think so. And I dont want to enter password for this wallet on online computer.

You don't have to "refill your keypool".You can simply generate addresses on demand, without having to worry about inconsistency.The first 100 generated addresses on your linux machine will be equivalent to the first 100 generated addresses on your windows machine. The next 1000 (created on linux) will match those 1000 (created on windows), and so on.

So, first, when my keypool empty - I cannot generate new bitcoin addresses = Payment system not workingSecond - I have to enter password for wallet. On online computer. It's bad.

That is correct, you cannot generate new addresses to refill the keypool without unlocking your wallet. This is for security reasons. The private key needs to be stored somewhere once it has been generated. It cannot be stored unencrypted as that would be a security violation. The only way to store it encrypted is to provide the password so that the private key can be encrypted.