diff options
| author | Matt Corallo <[email protected]> | 2016-12-04 20:44:37 -0800 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2017-01-10 14:48:42 -0500 |
| commit | 93380c5247526e2248248a7d539233ec48d11bdd (patch) | |
| tree | 6e174a66769400485cebf2b2b8dcee1dd1202e3f /src/net_processing.cpp | |
| parent | Keep shared_ptrs to recently-replaced txn for compact blocks (diff) | |
| download | discoin-93380c5247526e2248248a7d539233ec48d11bdd.tar.xz discoin-93380c5247526e2248248a7d539233ec48d11bdd.zip | |
Use replaced transactions in compact block reconstruction
Diffstat (limited to 'src/net_processing.cpp')
| -rw-r--r-- | src/net_processing.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index c549b9eb9..8e23e54e0 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -1879,7 +1879,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, } PartiallyDownloadedBlock& partialBlock = *(*queuedBlockIt)->partialBlock; - ReadStatus status = partialBlock.InitData(cmpctblock); + ReadStatus status = partialBlock.InitData(cmpctblock, vExtraTxnForCompact); if (status == READ_STATUS_INVALID) { MarkBlockAsReceived(pindex->GetBlockHash()); // Reset in-flight state in case of whitelist Misbehaving(pfrom->GetId(), 100); @@ -1921,7 +1921,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, // Optimistically try to reconstruct anyway since we might be // able to without any round trips. PartiallyDownloadedBlock tempBlock(&mempool); - ReadStatus status = tempBlock.InitData(cmpctblock); + ReadStatus status = tempBlock.InitData(cmpctblock, vExtraTxnForCompact); if (status != READ_STATUS_OK) { // TODO: don't ignore failures return true; |