3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-15 11:45:51 +00:00

Don't throw away orphan block transactions before they are sent to listeners, even in SPV mode.

This commit is contained in:
Jameson Lopp 2016-01-05 15:16:30 -05:00 committed by Andreas Schildbach
parent aa0312a6c8
commit c82aa3b070

View File

@ -113,10 +113,7 @@ public abstract class AbstractBlockChain {
final boolean filtered = filteredTxHashes != null && filteredTxn != null;
Preconditions.checkArgument((block.transactions == null && filtered)
|| (block.transactions != null && !filtered));
if (!shouldVerifyTransactions())
this.block = block.cloneAsHeader();
else
this.block = block;
this.block = block;
this.filteredTxHashes = filteredTxHashes;
this.filteredTxn = filteredTxn;
}