Is it safe to upgrade between distant versions?

9 replies 38 views
darkninjaMember
Posts: 8 · Reputation: 100
#1Nov 16, 2022, 12:16 PM
When it comes to wallet, chainstate, and block info, is it alright to move from one Core version to another that are years apart? I’m talking about upgrading from version 0.18.x to 28.x, which is roughly a 5-6 year gap. Plus, I’m using pruned block data.
3 Reply Quote Share
coin_sigmaLegendary
Posts: 1275 · Reputation: 5553
#2Nov 16, 2022, 02:19 PM
I think it's safe but it's recommended to keep up-to-date if there's a recent version release. And before upgrading the core to the most recent version, always make sure to make a backup copy of the wallet.dat file just in case the core has some issues after the upgrade, you can later fix the issue and recover the wallet.
2 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#3Nov 18, 2022, 09:43 AM
Your legacy wallet should still be compatible with v28.1. But not in v29.0 v30.0 once it's released, you'll have to migrate it into a descriptor wallet. For your UTXO Set and Blocks, the versions aren't too far apart and there's no incompatible changes listed in the Release Notes. To check it yourself: Meticulously read every release notes from v0.18.1 to v28.1, the part where it says: "How to Upgrade" where forwards/backwards compatibility is usually mentioned. But if you can backup the whole datadir (since it's pruned anyways), do it in case something happens with during upgrade.
3 Reply Quote Share
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#4Nov 18, 2022, 01:15 PM
That's what I wanted to add too It's only 15 GB, and fits even on a USB-stick.
5 Reply Quote Share
darkninjaMember
Posts: 8 · Reputation: 100
#5Nov 18, 2022, 05:04 PM
Thanks. If it won't be capable of converting it as needed, that's a surprise. Too bad there's no all-in-one changelog. Yes, though depends on your set prune size. Though I'm wondering more about potential "silent" problems. In theory, one would expect it to explicitly alert if something's not compatible, leave the data be, and exit gracefully. Core is typically pretty elaborate in data compatibility checking, and logging / alerting. I think it's pretty common in Bitcoin land not to update quickly. I'm not sure where one can find stats about "general" users, but stats on 22K nodes do show a spread of versions.
3 Reply Quote Share
bull_2019Senior Member
Posts: 296 · Reputation: 1992
#6Nov 21, 2022, 01:00 AM
Try Bitnodes.io Maybe it could be of help.. So far you have the required backup space then you can always archive it.. you can also test it by running it directly from the external drive before you start the upgrade as the copied folder  could have some corrupted files sometimes, you can do that by changing the -datadir path to the new external  drive path , if it works then you can revert the changes made and go on with your upgrade... make sure you revert it though.
0 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#7Nov 21, 2022, 05:13 AM
Update; there was an update in the proposed timeline edited 3 weeks ago that I haven't checked: You wont be able to load your legacy wallet in v30.0 instead of v29.0. In that release, Bitcoin Core will provide instructions on how to migrate your old wallet. But if you want to do it now, use "File->Migrate Wallet". Those are more typical to updated config, network, etc. which depends if you're using such options. Like for example, v28.0 and v28.1's update in bind settings which could break some setups. But for the Blockchain and Chainstate compatibility, it's should be explicitly noted in the release notes.
2 Reply Quote Share
alt21Senior Member
Posts: 398 · Reputation: 1732
#8Nov 21, 2022, 11:13 AM
You must refer to network's statistics. If so, you can check this website: https://bitcointicker.co/networkstats/ or the one that promise444c5 refers to below: If, on the other hand, you want to check statistics on your node's operations, a very cool project is https://statoshi.info/, which is implemented by Jameson Lopp. There is a great amount of cool stuff to see there.
4 Reply Quote Share
darkninjaMember
Posts: 8 · Reputation: 100
#9Nov 21, 2022, 01:50 PM
Seemed okay. The only minor log warning was about the ban list file, which changed to JSON format in v22: By the way, one unrelated oddity are a few stray random-looking but fixed characters at the end of some log lines, ones prefixed with "init message:".
1 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#10Nov 21, 2022, 07:10 PM
Those shouldn't be random-looking characters but "Ellipsis", the single-character triple dots. Perhaps your language doesn't support that character. I double-checked my logs since v28.0 to v29.0 to be sure and it's not showing as gibberish character.
4 Reply Quote Share

Related topics