mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-06 02:38:11 +01:00
Prevent multiple LOCK_TX_B_SEEN events, use rpcwallet for lockunspent.
This commit is contained in:
@@ -981,7 +981,7 @@ class BTCInterface(CoinInterface):
|
||||
inputs = []
|
||||
for pi in tx.vin:
|
||||
inputs.append({'txid': i2h(pi.prevout.hash), 'vout': pi.prevout.n})
|
||||
self.rpc('lockunspent', [True, inputs])
|
||||
self.rpc_wallet('lockunspent', [True, inputs])
|
||||
|
||||
def signTxWithWallet(self, tx: bytes) -> bytes:
|
||||
rv = self.rpc_wallet('signrawtransactionwithwallet', [tx.hex()])
|
||||
|
||||
Reference in New Issue
Block a user