<p>Introduces parsing of unconfirmed transactions to allow for spending of pending BSQ transactions.</p>
<p>I'm not really clear how the UI should handle the pending amounts, but the accounting needs an overhaul anyway so I plan to do that in a different PR.</p>
<p>Also fixes some other issues found along the way while testing.</p>

<hr>

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

<h4>Commit Summary</h4>
<ul>
  <li>Initialize Set to avoid nullpointer access</li>
  <li>Add option to parse unconfirmed tx</li>
  <li>Allow spend of pending BSQ</li>
  <li>Fix #2123</li>
  <li>Don't burn BSQ for failed compensation request</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2171/files#diff-0">core/src/main/java/bisq/core/btc/wallet/BsqWalletService.java</a>
    (24)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2171/files#diff-1">core/src/main/java/bisq/core/dao/exceptions/IncompleteBitcoinjTransactionException.java</a>
    (26)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2171/files#diff-2">core/src/main/java/bisq/core/dao/governance/bond/Bond.java</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2171/files#diff-3">core/src/main/java/bisq/core/dao/governance/voteresult/issuance/IssuanceService.java</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2171/files#diff-4">core/src/main/java/bisq/core/dao/node/full/RawTx.java</a>
    (22)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2171/files#diff-5">core/src/main/java/bisq/core/dao/node/full/RawTxOutput.java</a>
    (21)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2171/files#diff-6">core/src/main/java/bisq/core/dao/node/parser/GenesisTxParser.java</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2171/files#diff-7">core/src/main/java/bisq/core/dao/node/parser/TxInputParser.java</a>
    (11)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2171/files#diff-8">core/src/main/java/bisq/core/dao/node/parser/TxOutputParser.java</a>
    (7)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2171/files#diff-9">core/src/main/java/bisq/core/dao/node/parser/TxParser.java</a>
    (22)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2171/files#diff-10">core/src/main/java/bisq/core/dao/state/DaoStateService.java</a>
    (57)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2171/files#diff-11">core/src/main/java/bisq/core/dao/state/model/UnconfirmedState.java</a>
    (51)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2171/files#diff-12">core/src/main/java/bisq/core/dao/state/model/blockchain/TxInput.java</a>
    (11)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2171/files#diff-13">core/src/test/java/bisq/core/dao/state/DaoStateSnapshotServiceTest.java</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2171/files#diff-14">desktop/src/main/java/bisq/desktop/main/funds/withdrawal/WithdrawalView.java</a>
    (2)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/bisq-network/bisq/pull/2171.patch'>https://github.com/bisq-network/bisq/pull/2171.patch</a></li>
  <li><a href='https://github.com/bisq-network/bisq/pull/2171.diff'>https://github.com/bisq-network/bisq/pull/2171.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/bisq/pull/2171">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AkpZtn3Ihk6bf6cg_fm1KpbErNGDlsTsks5u8od_gaJpZM4ZhNMg">mute the thread</a>.<img src="https://github.com/notifications/beacon/AkpZtoRTY6YphGYVTjOgiZOsVJjdK5Shks5u8od_gaJpZM4ZhNMg.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/bisq","title":"bisq-network/bisq","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/bisq"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Spend pending BSQ (#2171)"}],"action":{"name":"View Pull Request","url":"https://github.com/bisq-network/bisq/pull/2171"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/pull/2171",
"url": "https://github.com/bisq-network/bisq/pull/2171",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>