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

<hr>

<p>In <a href="https://github.com/bisq-network/bisq/pull/4366#discussion_r470025175">apitest/src/main/java/bisq/apitest/linux/BitcoinDaemon.java</a>:</p>
<pre style='color:#555'>> @@ -55,6 +55,7 @@ public void start() throws InterruptedException, IOException {
                 + " -txindex=1"
                 + " -peerbloomfilters=1"
                 + " -debug=net"
+                + " -fallbackfee=0.0002"
</pre>
<p>This new fallbackfee setting would change the behaviour of bitcoind in mainnet mode -- from the default 0.00 to 0.0002.  But <code>apitest</code> cannot run on mainnet unless the code is hacked, and <code>apitest</code> should never run on mainnet -- it should never spend mainnet BTC, do a trade on mainnet, etc.</p>
<blockquote>
<blockquote>
<p>Then the concern is that the apitest testing harness will have a different bitcoind environment than a production daemon would.</p>
</blockquote>
</blockquote>
<p>Yes, it does mean that the <code>apitest</code> harness will have a different <code>bitcoind</code> environment than a production daemon would, but that is what we want.  The bitcoin-core change (<a href="https://github.com/bitcoin/bitcoin/pull/16524" data-hovercard-type="pull_request" data-hovercard-url="/bitcoin/bitcoin/pull/16524/hovercard">PR 16524</a>) was to make the fallbackfee the same on all chains -- to fix bitcoin-core's inconsistency.  It was 0 (disabled) on mainnet, but 0.0002 for testnet/regtest chains.  Now (v0.20+), it is the same for all chains: 0 (disabled) by default for all chains.</p>
<p>We want bitcoin-core v0.20 to behave like it did before the bitcoin-core PR 16524 change.</p>
<p>In the context of <code>apitest</code>, the fallbackfee affects the behaviour of the bitcoin-cli <code>sendtoaddress</code> command, where we use the <code>subtractfeefromamount=false</code> parameter.  (See <code>FundWalletScenarioTest#testFundWallet()</code>)  This <code>bitcoin-cli</code> command errors if the fallbackfee is disabled on bitcoin-core v0.20.  Enabling it on <code>bitcoind</code> ensures this command behaves the same way it does on v0.19.</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/4366#discussion_r470025175">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNQJDJPSD2CYTU7XBNDSAP7B5ANCNFSM4OV5LEEQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNUGTG6SYCNZFLADOJ3SAP7B5A5CNFSM4OV5LEE2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGODPJ23RI.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/4366#discussion_r470025175",
"url": "https://github.com/bisq-network/bisq/pull/4366#discussion_r470025175",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>