1
0

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:
Neil Booth
2015-09-10 22:27:50 +09:00
parent a735fbabe0
commit f710d872c7
2 changed files with 7 additions and 8 deletions

View File

@@ -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):