-regtest -reindex: Assertion `mapBlockIndex.count(hashBlock)' failed. Aborted (core dumped) #7234

issue MarcoFalke opened this issue on December 19, 2015
  1. MarcoFalke commented at 8:09 PM on December 19, 2015: member

    This happens after #7105 when doing a reindex in regtest. Can't reproduce in mainnet or testnet. Without wallet or without reindex I can run just fine.

    $ src/qt/bitcoin-qt -printtoconsole -regtest -datadir=/tmp/test11  -reindex
    
    bitcoin-qt: wallet/wallet.cpp:776: void CWallet::MarkConflicted(const uint256&, const uint256&): Assertion `mapBlockIndex.count(hashBlock)' failed.
    Aborted (core dumped)
    
  2. laanwj commented at 1:12 PM on February 9, 2016: member

    I cannot reproduce this on master. Neither with a new regtest directory nor one that already contains hundreds of blocks.

  3. laanwj added the label UTXO Db and Indexes on Feb 9, 2016
  4. dcousens commented at 1:23 PM on February 9, 2016: contributor

    @laanwj were you able to reproduce it previously?

  5. laanwj commented at 1:55 PM on February 9, 2016: member

    I've never tried before.

  6. MarcoFalke commented at 5:55 PM on February 9, 2016: member

    @laanwj

    What you could do is

    $ cd /tmp/
    $ wget https://github.com/bitcoin/bitcoin/files/123491/regtest.zip
    $ unzip regtest.zip
    $ ~/workspace/bitcoin/src/qt/bitcoin-qt -regtest -datadir=/tmp
    bitcoin-qt: wallet/wallet.cpp:850: void CWallet::MarkConflicted(const uint256&, const uint256&): Assertion `mapBlockIndex.count(hashBlock)' failed.
    Aborted (core dumped)
    
    
  7. laanwj commented at 6:03 PM on February 9, 2016: member

    Right, with that data I can reproduce it:

    2016-02-09 18:02:45 init message: Loading wallet...
    bitcoind: wallet/wallet.cpp:850: void CWallet::MarkConflicted(const uint256&, const uint256&): Assertion `mapBlockIndex.count(hashBlock)' failed.
    Aborted (core dumped)
    
  8. laanwj referenced this in commit 40e7b61835 on Feb 9, 2016
  9. laanwj cross-referenced this on Feb 9, 2016 from issue wallet: Ignore MarkConflict if block hash is not known by laanwj
  10. laanwj commented at 7:54 PM on February 9, 2016: member

    See #7491

  11. sipa added the label Wallet on Feb 10, 2016
  12. sipa removed the label UTXO Db and Indexes on Feb 10, 2016
  13. laanwj closed this on Feb 10, 2016

  14. laanwj referenced this in commit 00ec73e062 on Feb 10, 2016
  15. instagibbs referenced this in commit 4770f3d6ec on Feb 25, 2016
  16. GamerSg referenced this in commit 1c6e8c1825 on Feb 27, 2016
  17. random-zebra referenced this in commit f90fa087f5 on Jul 28, 2020
  18. random-zebra cross-referenced this on Jul 28, 2020 from issue [Wallet] Ignore MarkConflict if block hash is not known by random-zebra
  19. random-zebra referenced this in commit 8ab63d3e5b on Jul 29, 2020
  20. Fuzzbawls referenced this in commit 7521065192 on Aug 13, 2020
  21. 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:55 UTC