When using the new Bitcoin Core v0.17.0, and trying to pass -upgradewallet to upgrade to HD, results in an error.
- Bitcoin-Qt shows a popup box entitled “Runaway exception” with “A fatal error occurred. Bitcoin can no longer continue safely and will quit.” Terminal output shows:
EXCEPTION: St13runtime_error
DeriveNewSeed: AddKeyPubKey failed
bitcoin in Runaway exceptionbitcoin-qt: /usr/include/boost/thread/pthread/condition_variable_fwd.hpp:116: boost::condition_variable::~condition_variable(): Assertion `!ret’ failed. Aborted
When attempting to do so via bitcoind -upgradewallet, the following is displayed before a shutdown:
2018-10-07T05:24:05Z [default wallet] nFileVersion = 170000 2018-10-07T05:24:05Z [default wallet] Keys: 0 plaintext, 1158 encrypted, 1158 w/ metadata, 1158 total. Unknown wallet records: 2 2018-10-07T05:24:06Z [default wallet] Performing wallet upgrade to 169900 2018-10-07T05:24:06Z [default wallet] Upgrading wallet to HD 2018-10-07T05:24:06Z [default wallet] Releasing wallet 2018-10-07T05:24:06Z
EXCEPTION: St13runtime_error
DeriveNewSeed: AddKeyPubKey failed
bitcoin in AppInit()
EXCEPTION: St13runtime_error
DeriveNewSeed: AddKeyPubKey failed
bitcoin in AppInit()2018-10-07T05:24:06Z Shutdown: In progress… 2018-10-07T05:24:06Z scheduler thread interrupt 2018-10-07T05:24:06Z Shutdown: done
The wallet is shown correctly, and with the correct balance, if I run it without -upgradewallet