Merge pull request #2013 from sipa/blockheader

Split off CBlockHeader from CBlock
This commit is contained in:
Pieter Wuille
2012-11-24 13:54:12 -08:00
5 changed files with 55 additions and 46 deletions

View File

@@ -756,7 +756,7 @@ int CWallet::ScanForWalletTransactions(CBlockIndex* pindexStart, bool fUpdate)
while (pindex)
{
CBlock block;
block.ReadFromDisk(pindex, true);
block.ReadFromDisk(pindex);
BOOST_FOREACH(CTransaction& tx, block.vtx)
{
if (AddToWalletIfInvolvingMe(tx.GetHash(), tx, &block, fUpdate))