<p>The answer you linked explains how to migrate without using <code>upgradewallet</code> in the section "Versions of Bitcoin Core prior to 0.17`. You will need to follow those steps instead.</p>

CC BY-SA 4.0
2019-10-14T02:43:07.697Z
I am using the latest v0.18.1, is it safe to follow these pre-0.17 steps?
TRX
CC BY-SA 4.0
2019-10-14T04:34:59.597Z
Yes it is safe.
Ava Chow
CC BY-SA 4.0
2019-10-14T12:00:30.023Z
I see, one more question, can I reduce the transaction fee to 0? And can I import my old BTC address to the new wallet so I can continue use it?
TRX
CC BY-SA 4.0
2019-10-14T14:53:46.913Z
No, you cannot reduce the transaction fee to 0. Yes, you can import your old private keys into the new wallet to continue to use them. However this is not recommended as it is address reuse (which is not recommended for privacy reasons).
Ava Chow
CC BY-SA 4.0
2019-10-15T02:08:40.490Z
Thanks. My old address is published on the web for a while, so I want to monitor it in case of any income coming in the future.
TRX
CC BY-SA 4.0
2019-10-14T01:38:49.837Z
2019-10-14T01:38:49.837Z
Ava Chow
<p>I am trying to follow these <a href="https://bitcoin.stackexchange.com/a/61025">steps</a> to migrate my wallet to an HD wallet. But it failed, the debug log has errors like this:</p>

<pre><code>EXCEPTION: St13runtime_error
DeriveNewSeed: AddKeyPubKey failed
bitcoin in AppInit()
</code></pre>

<p>After some quick search, I found the <a href="https://github.com/bitcoin/bitcoin/issues/14422" rel="nofollow noreferrer"><code>#issue14422</code></a> of bitcoin is related to this issue, which says the <code>upgradewallet</code> option does not work when the wallet is encrypted. The issue is still open and no solution is given. So how can I upgrade my wallet to the HD wallet?</p>

<bitcoin-core><bip32-hd-wallets><wallet.dat>
Try to migrate Bitcoin Core wallet to an HD wallet but get "St13runtime" exception
TRX
# Try to migrate Bitcoin Core wallet to an HD wallet but get "St13runtime" exception

(Asked by: username_0 on 2019-10-13)

I am trying to follow these steps to migrate my wallet to an HD wallet. But it failed, the debug log has errors like this:
EXCEPTION: St13runtime_error
DeriveNewSeed: AddKeyPubKey failed
bitcoin in AppInit()

After some quick search, I found the #issue14422 of bitcoin is related to this issue, which says the upgradewallet option does not work when the wallet is encrypted. The issue is still open and no solution is given. So how can I upgrade my wallet to the HD wallet?

**Tags:** bitcoin-core, bip32-hd-wallets, wallet.dat


---

## 1 answers

### Answer by username_1 on 2019-10-14. Score: 1

The answer you linked explains how to migrate without using `upgradewallet` in the section "Versions of Bitcoin Core prior to 0.17`. You will need to follow those steps instead.

> **Comments:**
> **username_0**: I am using the latest v0.18.1, is it safe to follow these pre-0.17 steps?  
> **username_1**: Yes it is safe.  
> **username_0**: I see, one more question, can I reduce the transaction fee to 0? And can I import my old BTC address to the new wallet so I can continue use it?  
> **username_1**: No, you cannot reduce the transaction fee to 0. Yes, you can import your old private keys into the new wallet to continue to use them. However this is not recommended as it is address reuse (which is not recommended for privacy reasons).  
> **username_0**: Thanks. My old address is published on the web for a while, so I want to monitor it in case of any income coming in the future.  

---

