0.8.2rc1 - testnet datadir behavior changed



Summary:

Gavin Andresen has announced that Bitcoin-Qt version 0.8.2 release candidate 1 is now available from a SourceForge link provided in an email he sent on May 10, 2013. However, after testing the new version, there appears to be a glitch with something breaking. When firing up bitcoin-qt.exe -datadir=c:\testnet (with a testnet=1 bitcoin.conf file option in that directory) stored wallet/blocks/chainstate in the root with previous versions. Now the root datadir data is ignored except for the config file and a new hierarchy was created in subdirectory /testnet3. The issue seems to be related to https://github.com/bitcoin/bitcoin/issues/2605 which merged one day from being opened to committed, released six days later with no changelog. Gavin Andresen stated his confusion about the bug since the datadir previously worked as he expected with both bitcoin-qt and bitcoind interacting without problems when simply specifying a command-line datadir. However, the previous behavior might be dangerous if the config file was removed. He tested this theory by removing the config file, resulting in a cool freakout where his testnet wallet balance looked like real BTC and Bitcoin tried to reorg 67662 blocks starting from the genesis block. After receiving real block 73354 per debug log, a nice unrecoverable crash occurred with "Assertion failed!" File: src/main.cpp Line 1745 Expression: pfork != NULL. This needs to be added to the changelog because dropping in this binary will break testnet stuff if anybody is using Bitcoin this way for their testnet faucet etc. Therefore, the testnet data is now stored in the testnet3 subdirectory, enforced even when specifying datadir on command line (manually move your data first).


Updated on: 2023-06-06T16:51:23.369130+00:00