Set Bitcoincash .conf file and port from basicswap.json.

This commit is contained in:
tecnovert
2024-11-02 11:17:00 +02:00
parent 52ae633c21
commit 60cca03d31
6 changed files with 82 additions and 43 deletions

View File

@@ -239,6 +239,7 @@ class BCHInterface(BTCInterface):
public_key: bytes = kwargs['public_key'] if 'public_key' in kwargs else Kal
timelock: int = kwargs['timelock']
# fmt: off
return CScript([
# // v4.1.0-CashTokens-Optimized
# // Based on swaplock.cash v4.1.0-CashTokens
@@ -313,6 +314,7 @@ class BCHInterface(BTCInterface):
# // BCH and/or CashTokens are simply forwarded to Refund contract.
OP_ENDIF
])
# fmt: on
def pubkey_to_segwit_address(self, pk: bytes) -> str:
raise NotImplementedError()