Fix unlock.

This commit is contained in:
tecnovert 2023-12-30 10:31:41 +02:00
parent 38fa498b0b
commit 03fdf44220
No known key found for this signature in database
GPG key ID: 8ED6D8750C4E3F93

View file

@ -8,7 +8,6 @@ import os
import re import re
import sys import sys
import zmq import zmq
import copy
import json import json
import time import time
import base64 import base64
@ -866,11 +865,8 @@ class BasicSwap(BaseApp):
yield c yield c
def getListOfWalletCoins(self): def getListOfWalletCoins(self):
coins_list = copy.deepcopy(self.activeCoins())
# Always unlock Particl first # Always unlock Particl first
if Coins.PART in coins_list: coins_list = [Coins.PART, ] + [c for c in self.activeCoins() if c != Coins.PART]
coins_list.pop(Coins.PART)
coins_list = [Coins.PART,] + coins_list
if Coins.LTC in coins_list: if Coins.LTC in coins_list:
coins_list.append(Coins.LTC_MWEB) coins_list.append(Coins.LTC_MWEB)
return coins_list return coins_list