Prevent multiple LOCK_TX_B_SEEN events, use rpcwallet for lockunspent.

This commit is contained in:
tecnovert
2024-02-01 00:58:14 +02:00
parent 1ec1764012
commit d57366c0b2
4 changed files with 6 additions and 3 deletions

View File

@@ -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()])