<p></p>
<p><b>@oscarguindzberg</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/bisq-network/bisq/pull/4612#discussion_r510230634">core/src/main/java/bisq/core/trade/protocol/tasks/buyer/BuyerSignsDelayedPayoutTx.java</a>:</p>
<pre style='color:#555'>>              BtcWalletService btcWalletService = processModel.getBtcWalletService();
+            NetworkParameters params = btcWalletService.getParams();
+            Transaction preparedDepositTx = new Transaction(params, processModel.getPreparedDepositTx());
+            Coin delayedPayoutTxInputValue = preparedDepositTx.getOutput(0).getValue();
+
</pre>
<p>In bitcoin (the protocol) inputs do not include the amount.<br>
In bitcoinj (the library) you can connect a TransactionInput to its related TransactionOutput and then ask the TransactionInput its value. But it is only possible if you connected both of them.<br>
I moved the code to obtain the input value to TradeWalletService.</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/bisq/pull/4612#discussion_r510230634">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNS7G6TNOU3F7IU6Z3TSMBB3VANCNFSM4SKTGGBA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNSLJLKBCX3R6Y2HRX3SMBB3VA5CNFSM4SKTGGBKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOD2XYY2Y.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/pull/4612#discussion_r510230634",
"url": "https://github.com/bisq-network/bisq/pull/4612#discussion_r510230634",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>