public inbox for bitcoindev@googlegroups.com
 help / color / mirror / Atom feed
From: Jay F <jayf@outlook.com>
To: Bitcoin Dev <bitcoin-development@lists.sourceforge.net>
Subject: Re: [Bitcoin-development] 0.8.2rc1 - testnet datadir behavior changed
Date: Sat, 11 May 2013 23:35:59 -0700	[thread overview]
Message-ID: <BLU0-SMTP1220FEEDADCF33F27D6113AC8A70@phx.gbl> (raw)
In-Reply-To: <CABsx9T0sqhpFEe-VKwVC9q-0y+kOkkXO9TE0EoBgbQDC+czXVA@mail.gmail.com>

On 5/10/2013 8:39 AM, Gavin Andresen wrote:
> Bitcoin-Qt version 0.8.2 release candidate 1 is now available from:
>    http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.8.2/test/
>

Testnet glitch, something broke...

Fired up 0.8.2rc, and .... where's the coins? Where's the blocks?

I get a new empty datadir/testnet3 subdirectory.

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 the 
config file) and a new hierarchy was created in subdirectory 
[b]/testnet3[/b].

So what's happening?

This looks to be done by https://github.com/bitcoin/bitcoin/issues/2605 
... after searching the code for the change and then finding the commit.

1 day from opened to committed, released six days later... no changelog.


The datadir previously worked as I expected with both bitcoin-qt and 
bitcoind interacting with no problems, when simply specifying a 
command-line datadir, so I don't see the bug.

I can see how the previous behavior might be dangerous if the config 
file was removed. I just did that, and there's a cool freakout where my 
testnet wallet balance looks like real BTC and Bitcoin tries to reorg 
67662 blocks starting from the genesis block. After receiving real block 
73354 per debug log, a nice unrecoverable crash:

"Assertion failed!"
File: src/main.cpp Line 1745
Expression: pfork != NULL


This needs to be added to the changelog, since dropping in this binary 
will break testnet stuff if anybody is using Bitcoin this way for their 
testnet faucet, etc:

" * testnet data now stored in testnet3 subdirectory, enforced even when 
specifying datadir on command line (manually move your data first)"



  reply	other threads:[~2013-05-12  6:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-10 15:39 [Bitcoin-development] 0.8.2rc1 ready for testing Gavin Andresen
2013-05-12  6:35 ` Jay F [this message]
2013-05-12  9:04   ` [Bitcoin-development] 0.8.2rc1 - testnet datadir behavior changed Pieter Wuille

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BLU0-SMTP1220FEEDADCF33F27D6113AC8A70@phx.gbl \
    --to=jayf@outlook.com \
    --cc=bitcoin-development@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox