From 57f4720b9829885e0104e075a9633068f11421aa Mon Sep 17 00:00:00 2001 From: Adam Gibson Date: Mon, 28 Jun 2021 11:28:14 +0100 Subject: [PATCH] Fix payjoin test of lowfeerate The default minfeerate in payjoin is 1.1 sat/vbyte, however the randomization of 20% for all transactions created with direct_send means that the previous value of 1.3 could fall to below 1.1 probabilistically, it is therefore bumped to a value that never falls below 1.1 after randomization. --- jmclient/test/test_payjoin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jmclient/test/test_payjoin.py b/jmclient/test/test_payjoin.py index 9def036..fcb13c5 100644 --- a/jmclient/test/test_payjoin.py +++ b/jmclient/test/test_payjoin.py @@ -150,7 +150,9 @@ class TrialTestPayjoin4(PayjoinTestBase, unittest.TestCase): jm_single().config.set("POLICY", "txfees", self.old_txfees) def test_low_feerate(self): self.old_txfees = jm_single().config.get("POLICY", "tx_fees") - jm_single().config.set("POLICY", "tx_fees", "1300") + # set such that randomization cannot pull it below minfeerate + # (default of 1.1 sat/vbyte): + jm_single().config.set("POLICY", "tx_fees", "1376") d = self.do_test_payment(SegwitWallet, SegwitWallet) d.addCallback(self.reset_fee) return d