mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 22:58:32 +01: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
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue