diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2012-04-15 13:27:00 +0200 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2012-04-15 19:43:45 -0400 |
commit | 1bdfa94a0164f73b453633861b91c67bb6bf10d8 (patch) | |
tree | 8d71cdbb9ce91ea76c82a5c9ffa5ad73391f111a /src/db.cpp | |
parent | 9c236a945c7dc5f401b0ae51b69e2b658c62654c (diff) | |
download | bitcoin-1bdfa94a0164f73b453633861b91c67bb6bf10d8.tar.xz |
fix warnings: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
Diffstat (limited to 'src/db.cpp')
-rw-r--r-- | src/db.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db.cpp b/src/db.cpp index 2a09e2e673..60e04a218e 100644 --- a/src/db.cpp +++ b/src/db.cpp @@ -647,6 +647,7 @@ bool CTxDB::LoadBlockIndex() // check level 4: check whether spent txouts were spent within the main chain int nOutput = 0; if (nCheckLevel>3) + { BOOST_FOREACH(const CDiskTxPos &txpos, txindex.vSpent) { if (!txpos.IsNull()) @@ -687,9 +688,11 @@ bool CTxDB::LoadBlockIndex() } nOutput++; } + } } // check level 5: check whether all prevouts are marked spent if (nCheckLevel>4) + { BOOST_FOREACH(const CTxIn &txin, tx.vin) { CTxIndex txindex; @@ -700,6 +703,7 @@ bool CTxDB::LoadBlockIndex() pindexFork = pindex->pprev; } } + } } } } |