<p>I don't think any of those fixes would solve the issue I found. The problem I encountered was that when txA (a tx sending some BTC from BTC wallet to BSQ wallet) was broadcast it was first added in the BTC wallet and on broadcast completion the same txA was added to the BSQ wallet. When spending from the BSQ wallet the spend txB is committed to first the BTC wallet and then to the BSQ wallet. In the commit to the BTC wallet, a txA output used by txB will be tagged as spent and when the BSQ wallet tries to do the same thing the txA output is no longer spendable and the wallet ends up in a bad state.</p>

<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/18#issuecomment-449878851">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AkpZtg4E8vYEEbBBh--J8leXbNaoUMc3ks5u8rOMgaJpZM4Zgibw">mute the thread</a>.<img src="https://github.com/notifications/beacon/AkpZtooSi-w28cd1l4bXrT9DvxARVQZ6ks5u8rOMgaJpZM4Zgibw.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/bisq-network/bitcoinj","title":"bisq-network/bitcoinj","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/bisq-network/bitcoinj"}},"updates":{"snippets":[{"icon":"PERSON","message":"@sqrrm in #18: I don't think any of those fixes would solve the issue I found. The problem I encountered was that when txA (a tx sending some BTC from BTC wallet to BSQ wallet) was broadcast it was first added in the BTC wallet and on broadcast completion the same txA was added to the BSQ wallet. When spending from the BSQ wallet the spend txB is committed to first the BTC wallet and then to the BSQ wallet. In the commit to the BTC wallet, a txA output used by txB will be tagged as spent and when the BSQ wallet tries to do the same thing the txA output is no longer spendable and the wallet ends up in a bad state."}],"action":{"name":"View Pull Request","url":"https://github.com/bisq-network/bitcoinj/pull/18#issuecomment-449878851"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bitcoinj/pull/18#issuecomment-449878851",
"url": "https://github.com/bisq-network/bitcoinj/pull/18#issuecomment-449878851",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>