1
0

commands: add 'freeze_utxo' cmd; to expose this to CLI/RPC

This commit is contained in:
SomberNight
2021-01-22 16:47:22 +01:00
parent da777caa0b
commit bc6f2926f4
4 changed files with 20 additions and 5 deletions

View File

@@ -1953,7 +1953,8 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):
self.utxo_list.update()
def set_frozen_state_of_coins(self, utxos: Sequence[PartialTxInput], freeze: bool):
self.wallet.set_frozen_state_of_coins(utxos, freeze)
utxos_str = {utxo.prevout.to_str() for utxo in utxos}
self.wallet.set_frozen_state_of_coins(utxos_str, freeze)
self.utxo_list.update()
def create_list_tab(self, l, toolbar=None):