Mercurial > hg > bitcoin
changeset 1433:48e7bb4a2924 draft blockheaders
Saving work...
author | Gavin Andresen <gavinandresen@gmail.com> |
---|---|
date | Tue, 25 Oct 2011 11:36:52 -0400 |
parents | be6d55c727e5 |
children | |
files | src/main.cpp |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main.cpp +++ b/src/main.cpp @@ -1004,6 +1004,9 @@ BOOST_FOREACH(CTransaction& tx, vtx) { // TODO: if fClient, OK if we don't have previous txns + CDiskTxPos posThisTx(pindex->nFile, pindex->nBlockPos, nTxPos); + nTxPos += ::GetSerializeSize(tx, SER_DISK); + if (!tx.ConnectInputs(txdb, mapQueuedChanges, posThisTx, pindex, nFees, true, false) && !fClient) return false; }