Fix BCH exchange name, pipe daemon output to file from prepare.

This commit is contained in:
tecnovert
2024-11-13 19:02:46 +02:00
parent ca5b9e5e00
commit 6f0123e13e
4 changed files with 11 additions and 8 deletions

View File

@@ -82,8 +82,8 @@ class BCHInterface(BTCInterface):
# bch does not have segwit, but we return true here to avoid extra checks in basicswap.py
return True
def getExchangeName(self, exchange_name):
return 'bch'
def getExchangeName(self, exchange_name: str) -> str:
return 'bitcoin-cash'
def getNewAddress(self, use_segwit: bool = False, label: str = 'swap_receive') -> str:
args = [label]

View File

@@ -42,7 +42,7 @@ class FIROInterface(BTCInterface):
# No multiwallet support
self.rpc_wallet = make_rpc_func(self._rpcport, self._rpcauth, host=self._rpc_host)
def getExchangeName(self, exchange_name):
def getExchangeName(self, exchange_name: str) -> str:
return 'zcoin'
def initialiseWallet(self, key):