<p></p>
<h3>Description</h3>
<p>Bisq creates an invalid timelock payout transaction in certain circumstances</p>
<h4>Version</h4>
<p>v1.2.4</p>
<h3>Steps to reproduce</h3>
<p>Still investigating.</p>
<h3>Expected behaviour</h3>
<p>Payout TX is valid and can be broadcast to the Bitcoin network anytime after the lock_time.</p>
<h3>Actual behaviour</h3>
<p>Payout TX is rejected by the Bitcoin network for "bad-txns-in-belowout" error, which means the sum of the outputs is greater than the sum of the inputs.</p>
<h4>Device or machine</h4>
<p>Linux</p>
<h4>Additional info</h4>
<p>A user requested support for a closed trade which should have been donated to the Bisq donation address, but was never donated. After manually dumping the payout TX, I found it was invalid due to the following outputs > inputs. Perhaps an input is missing from the calculation</p>
<pre><code>    "inputs": [
        {
...
            "output_value": 7753800, 
...
       }
    ], 
    "outputs": [
        {
            "addresses": [
                "3EtUWqsGThPtjwUczw27YCo6EWvQdaPUyp"
            ], 
...
            "value": 8750000
        }
    ], 
</code></pre>

<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/issues/4071">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNR57HGC57XFIRL5H7TRH5KTDANCNFSM4LNJSMYQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNV5Z5FOUUIGDCUBWLTRH5KTDA5CNFSM4LNJSMY2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IV625RA.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/bisq/issues/4071",
"url": "https://github.com/bisq-network/bisq/issues/4071",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>