mirror of
https://github.com/basicswap/basicswap.git
synced 2025-04-06 14:27:30 +00:00
Fix PIVX.
This commit is contained in:
parent
cc57d3537d
commit
5e5b404a48
3 changed files with 4 additions and 7 deletions
|
@ -4668,7 +4668,7 @@ class BasicSwap(BaseApp):
|
|||
+ (len(txn_script)).to_bytes(1, "big")
|
||||
+ txn_script
|
||||
)
|
||||
refund_txn = ci.setTxScriptSig(bytes.fromhex(refund_txn), 0, script)
|
||||
refund_txn = ci.setTxScriptSig(bytes.fromhex(refund_txn), 0, script).hex()
|
||||
|
||||
if coin_type in (Coins.NAV, Coins.DCR):
|
||||
# Only checks signature
|
||||
|
|
|
@ -34,9 +34,6 @@ class PIVXInterface(BTCInterface):
|
|||
self._rpcport, self._rpcauth, host=self._rpc_host
|
||||
)
|
||||
|
||||
def checkWallets(self) -> int:
|
||||
return 1
|
||||
|
||||
def signTxWithWallet(self, tx):
|
||||
rv = self.rpc("signrawtransaction", [tx.hex()])
|
||||
return bytes.fromhex(rv["hex"])
|
||||
|
|
|
@ -701,9 +701,9 @@ class Test(unittest.TestCase):
|
|||
offer_id = swap_clients[0].postOffer(
|
||||
Coins.PIVX,
|
||||
Coins.BTC,
|
||||
0.001 * COIN,
|
||||
0.01 * COIN,
|
||||
1.0 * COIN,
|
||||
0.001 * COIN,
|
||||
0.01 * COIN,
|
||||
SwapTypes.SELLER_FIRST,
|
||||
TxLockTypes.ABS_LOCK_TIME,
|
||||
)
|
||||
|
@ -718,7 +718,7 @@ class Test(unittest.TestCase):
|
|||
swap_clients[0].getChainClientSettings(Coins.BTC)["override_feerate"] = 10.0
|
||||
swap_clients[0].getChainClientSettings(Coins.PIVX)[
|
||||
"override_feerate"
|
||||
] = 10.0
|
||||
] = 100.0
|
||||
wait_for_bid(
|
||||
delay_event, swap_clients[0], bid_id, BidStates.BID_ERROR, wait_for=60
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue