Add fee priority setting for XMR.

This commit is contained in:
tecnovert
2020-12-22 13:21:25 +02:00
parent 31bf80f579
commit 2f47fd0d5c
8 changed files with 62 additions and 40 deletions

View File

@@ -326,7 +326,7 @@ class Test(unittest.TestCase):
print(dumpj(js_n0))
path = [swap_clients[0]._network._network_pubkey, swap_clients[2]._network._network_pubkey]
swap_clients[1].test_onion(path)
swap_clients[1]._network.test_onion(path)
delay_for(delay_event, 1000)

View File

@@ -548,6 +548,8 @@ class Test(unittest.TestCase):
offers = swap_clients[1].listOffers(filters={'offer_id': offer_id})
offer = offers[0]
swap_clients[1].ci(Coins.XMR).setFeePriority(3)
bid_id = swap_clients[1].postXmrBid(offer_id, offer.amount_from)
wait_for_bid(delay_event, swap_clients[0], bid_id, BidStates.BID_RECEIVED)
@@ -560,6 +562,8 @@ class Test(unittest.TestCase):
wait_for_bid(delay_event, swap_clients[0], bid_id, BidStates.SWAP_COMPLETED, wait_for=180)
wait_for_bid(delay_event, swap_clients[1], bid_id, BidStates.SWAP_COMPLETED, sent=True)
swap_clients[1].ci(Coins.XMR).setFeePriority(0)
def test_06_multiple_swaps(self):
logging.info('---------- Test Multiple concurrent swaps')
swap_clients = self.swap_clients