[bisq-network/bisq] Add API test harness for Linux (#4366)
dmos62
notifications at github.com
Fri Jul 17 14:18:22 UTC 2020
@dmos62 commented on this pull request.
> + @Order(1)
+ public void testFundWallet() {
+ long balance = getBalance(); // bisq wallet was initialized with 10 btc
+ assertEquals(1000000000, balance);
+
+ String unusedAddress = getUnusedBtcAddress();
+
+ // Given the default tx fee rate, we want to send 2.5 + the fee,
+ // so the new wallet balance will be exactly 12.5 btc.
+ // We should calculate the fee based on the fee rate and tx size
+ // instead of hard coding the fee amount.
+ double btc = parseDouble("2.5") + parseDouble("0.0000336");
+ bitcoinCli.sendToAddress(unusedAddress, btc);
+
+ bitcoinCli.generateBlocks(1);
+ sleep(1500);
`bitcoind` has the `blocknotify` callback for this. Not really a problem now, but something to consider if the number of "sleeps" grows cumbersome.
--
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#pullrequestreview-450696232
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200717/ed61cdee/attachment.html>
More information about the bisq-github
mailing list