mirror of
https://github.com/basicswap/basicswap.git
synced 2024-11-16 15:58:17 +00:00
Fix LTC create UTXO.
This commit is contained in:
parent
6e4feb33d7
commit
0aaf3f8bcc
2 changed files with 11 additions and 0 deletions
|
@ -32,6 +32,16 @@ class LTCInterface(BTCInterface):
|
|||
return self.rpc_wallet_mweb('sendtoaddress', params)
|
||||
return self.rpc_wallet('sendtoaddress', params)
|
||||
|
||||
def createUTXO(self, value_sats: int):
|
||||
# Create a new address and send value_sats to it
|
||||
|
||||
spendable_balance = self.getSpendableBalance()
|
||||
if spendable_balance < value_sats:
|
||||
raise ValueError('Balance too low')
|
||||
|
||||
address = self.getNewAddress(self._use_segwit, 'create_utxo')
|
||||
return self.withdrawCoin(self.format_amount(value_sats), 'plain', address, False), address
|
||||
|
||||
def getWalletInfo(self):
|
||||
rv = super(LTCInterface, self).getWalletInfo()
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
- `rpctimeout`, `walletrpctimeout` and `walletrpctimeoutlong` in the Monero section of basicswap.json.
|
||||
- `wallet_update_timeout` in basicswap.json to set how long the wallet ui page waits for an rpc response.
|
||||
- ui: Renamed unconfirmed balance to pending and include immature balance in pending.
|
||||
- Fixed LTC create utxo
|
||||
|
||||
|
||||
0.12.6
|
||||
|
|
Loading…
Reference in a new issue