mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-16 04:05:50 +00:00
Don't throw away orphan block transactions before they are sent to listeners, even in SPV mode.
This commit is contained in:
parent
aa0312a6c8
commit
c82aa3b070
@ -113,10 +113,7 @@ public abstract class AbstractBlockChain {
|
|||||||
final boolean filtered = filteredTxHashes != null && filteredTxn != null;
|
final boolean filtered = filteredTxHashes != null && filteredTxn != null;
|
||||||
Preconditions.checkArgument((block.transactions == null && filtered)
|
Preconditions.checkArgument((block.transactions == null && filtered)
|
||||||
|| (block.transactions != null && !filtered));
|
|| (block.transactions != null && !filtered));
|
||||||
if (!shouldVerifyTransactions())
|
this.block = block;
|
||||||
this.block = block.cloneAsHeader();
|
|
||||||
else
|
|
||||||
this.block = block;
|
|
||||||
this.filteredTxHashes = filteredTxHashes;
|
this.filteredTxHashes = filteredTxHashes;
|
||||||
this.filteredTxn = filteredTxn;
|
this.filteredTxn = filteredTxn;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user