When using labels plugin write wallet once
Poor hook coupling would cause the wallet to be written twice unnecessarily when using the labels plugin and changing a label
This commit is contained in:
@@ -40,8 +40,6 @@ from mnemonic import Mnemonic
|
||||
|
||||
import paymentrequest
|
||||
|
||||
|
||||
|
||||
# internal ID for imported account
|
||||
IMPORTED_ACCOUNT = '/x'
|
||||
|
||||
@@ -365,9 +363,9 @@ class Abstract_Wallet(PrintError):
|
||||
changed = True
|
||||
|
||||
if changed:
|
||||
run_hook('set_label', self, name, text)
|
||||
self.storage.put('labels', self.labels, True)
|
||||
|
||||
run_hook('set_label', self, name, text, changed)
|
||||
return changed
|
||||
|
||||
def addresses(self, include_change = True):
|
||||
|
||||
Reference in New Issue
Block a user