Browse Source

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.
master
Adam Gibson 5 years ago
parent
commit
57f4720b98
No known key found for this signature in database
GPG Key ID: 141001A1AF77F20B
  1. 4
      jmclient/test/test_payjoin.py

4
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

Loading…
Cancel
Save