bitcoind-0.7.0.3 -loadblock flushing wallet.dat like crazy after block 193002 #1887

issue sdsdalr opened this issue on September 29, 2012
  1. sdsdalr commented at 12:34 PM on September 29, 2012: none

    I'm currently importing the blockchain .dat files from http://eu1.bitcoincharts.com/blockchain/ using

    bitcoind -loadblock=/var/lib/bitcoin/blockchain/blk0001.dat -loadblock=/var/lib/bitcoin/blockchain/blk0002.dat -detachdb
    

    This has been running for two days (it's a very slow computer), and I noticed that since block 193002, bitcoind 0.7.0.3 is flushing wallet.dat after almost every imported block (before that, there's only one flush after block 225). I'm not sure what's going on here. It's a fresh ~/.bitcoin profile. I think block 193002 comes around the time blk0001.dat filled up and it switched to blk0002.dat, maybe that triggered something in the bitcoin-wallet thread? (There's a comment "// Don't do this if any databases are in use" in walletdb.cpp, but I'm not familiar enough with the code.)

  2. sdsdalr commented at 12:39 PM on September 29, 2012: none

    Shortened debug.log: https://gist.github.com/3803884 For clarification, it's now at block 194379 and the flushing continues.

  3. hjfreyer commented at 10:38 PM on May 22, 2013: none

    I'm seeing the same issue in 0.8.1 after block 225431.

  4. sipa commented at 10:47 PM on May 22, 2013: member

    Should be fixed in git head / 0.8.2rc2

  5. laanwj closed this on Oct 22, 2013

  6. KolbyML referenced this in commit 901480fc01 on Dec 5, 2020
  7. bitcoin locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:56 UTC