<p>This is basically the same PR as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="396274059" data-permission-text="Title is private" data-url="https://github.com/bisq-network/bitcoinj/issues/21" data-hovercard-type="pull_request" data-hovercard-url="/bisq-network/bitcoinj/pull/21/hovercard" href="https://github.com/bisq-network/bitcoinj/pull/21">#21</a> but it's now a real issue. This PR also clones <code>purpose</code> which wasn't done in the earlier PR.</p>
<p>Atomic transactions that have inputs and outputs relating to two wallets are received from the network and added through <code>receivePending()</code>. To avoid adding the same instance of a transaction to two wallets a clone is made and added instead. These transactions come from the network so they don't yet have any wallet data associated with them.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/bisq-network/bitcoinj/pull/37'>https://github.com/bisq-network/bitcoinj/pull/37</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Clone transaction before committing to wallet</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bitcoinj/pull/37/files#diff-a2b6e1494960b94ec06cea180f8c1ec0fd51cfefa7e0ecb11f7ab5e0133bcbbc">core/src/main/java/org/bitcoinj/wallet/Wallet.java</a>
    (16)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/bisq-network/bitcoinj/pull/37.patch'>https://github.com/bisq-network/bitcoinj/pull/37.patch</a></li>
  <li><a href='https://github.com/bisq-network/bitcoinj/pull/37.diff'>https://github.com/bisq-network/bitcoinj/pull/37.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bitcoinj/pull/37">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNTIK3RHGOZX6IHGU7TTR5NBVANCNFSM46L6DKMA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNSQDLA2ZRMXW66FCDTTR5NBVA5CNFSM46L6DKMKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4NU3I4IQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bitcoinj/pull/37",
"url": "https://github.com/bisq-network/bitcoinj/pull/37",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>