0
I've been running bitcoin core 0.15 as regtest, and had X bitcoin in my balance all are from legacy output addresses, As I upgraded to 0.16 core version check in debug the legacy addresses are still validated as mine. but no balance. I wonder will this happen as I will upgrade my wallet at the mainnet as well ?
I wish to be able and support creation of legacy address and SegWit on the same wallet and as of comments on How to generate SegWit address I see I will need to run bitcoin core each time with a new param "-addresstype=legacy" to enable it, so is there a better way ?
[edit 1] - I should/need to run with same "-datadir" arg ?
[edit 2] - I run it under same -datadir.
[edit 3] - I’ve opened issue
https://github.com/bitcoin/bitcoin/issues/12872
That sounds like a bug. Are you sure? There is extensive testing before release. No balance should ever disappear when upgrading; all your old legacy addresses remain valid; the default addresstype just affects the type of newly created ones. – Pieter Wuille – 2018-04-03T18:51:25.143
This is regtest. I had bitcoin core 0.15.1 running regtest with balance of 5000 bitcoins and after upgrading to 0.16 I have 0 balance while on console window validateaddress of legacy address from the 0.15.1 version regtest returns "ismine": true. – Haddar Macdasi – 2018-04-03T18:56:01.783
If you go back to 0.15.1, is the balance still there? Are you sure it's fully synchronized, running in the same directory, ... If you believe the balance actually disappeared in 0.16, please file a bug: https://github.com/bitcoin/bitcoin/issues
– Pieter Wuille – 2018-04-03T19:01:18.910I want back to 0.15.1, I can see in transaction tab only the newly mined from the 0.16, when I generate payment address it's legacy. when I validate the SegWit address it's valid mine but no issegwit key. So I believe that all got to do with the fact that all this testing done on regtest env. – Haddar Macdasi – 2018-04-03T19:11:57.083
Yes of course you should run with the same
-datadir. Otherwise you're working in a completely independent environment with its own wallet. – Pieter Wuille – 2018-04-03T19:17:45.577I run with the same, I have a .bat file with "-datadir" arg inside. – Haddar Macdasi – 2018-04-03T19:18:54.260
That's why it validates different address from different core version as "ismine : true". – Haddar Macdasi – 2018-04-03T19:21:27.913