mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-18 21:32:35 +01:00
AbstractBlockChain: when cloning a transaction don't loop through MessageSerializer
This commit is contained in:
parent
a26216fb50
commit
c1e83e53c4
@ -917,7 +917,7 @@ public abstract class AbstractBlockChain {
|
||||
try {
|
||||
falsePositives.remove(tx.getTxId());
|
||||
if (clone)
|
||||
tx = tx.params.getDefaultSerializer().makeTransaction(ByteBuffer.wrap(tx.bitcoinSerialize()));
|
||||
tx = new Transaction(tx.getParams(), ByteBuffer.wrap(tx.bitcoinSerialize()));
|
||||
listener.receiveFromBlock(tx, block, blockType, relativityOffset++);
|
||||
} catch (ScriptException e) {
|
||||
// We don't want scripts we don't understand to break the block chain so just note that this tx was
|
||||
|
Loading…
Reference in New Issue
Block a user