wallet: make labels private, and access to need lock
e.g. labels plugin iterated over wallet.labels on asyncio thread while user could trigger an edit from Qt thread
This commit is contained in:
@@ -297,7 +297,7 @@ class TxDialog(Factory.Popup):
|
||||
def label_dialog(self):
|
||||
from .label_dialog import LabelDialog
|
||||
key = self.tx.txid()
|
||||
text = self.app.wallet.get_label(key)
|
||||
text = self.app.wallet.get_label_for_txid(key)
|
||||
def callback(text):
|
||||
self.app.wallet.set_label(key, text)
|
||||
self.update()
|
||||
|
||||
Reference in New Issue
Block a user