[bisq-network/bisq] Add API test harness for Linux & OSX (#4366)

Stan notifications at github.com
Thu Aug 13 15:11:26 UTC 2020


@ghubstan commented on this pull request.



> @@ -55,6 +55,7 @@ public void start() throws InterruptedException, IOException {
                 + " -txindex=1"
                 + " -peerbloomfilters=1"
                 + " -debug=net"
+                + " -fallbackfee=0.0002"

This new fallbackfee setting would change the behaviour of bitcoind in mainnet mode -- from the default 0.00 to 0.0002.  But `apitest` cannot run on mainnet unless the code is hacked, and `apitest` should never run on mainnet -- it should never spend mainnet BTC, do a trade on mainnet, etc.

>> Then the concern is that the apitest testing harness will have a different bitcoind environment than a production daemon would.

Yes, it does mean that the `apitest` harness will have a different `bitcoind` environment than a production daemon would, but that is what we want.  The bitcoin-core change ([PR 16524](https://github.com/bitcoin/bitcoin/pull/16524)) 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.

We want bitcoin-core v0.20 to behave like it did before the bitcoin-core PR 16524 change.

In the context of `apitest`, the fallbackfee affects the behaviour of the bitcoin-cli `sendtoaddress` command, where we use the `subtractfeefromamount=false` parameter.  (See `FundWalletScenarioTest#testFundWallet()`)  This `bitcoin-cli` command errors if the fallbackfee is disabled on bitcoin-core v0.20.  Enabling it on `bitcoind` ensures this command behaves the same way it does on v0.19.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/4366#discussion_r470025175
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200813/0cced0a3/attachment.html>


More information about the bisq-github mailing list