store contacts and invoices in wallet file. fix #1482
This commit is contained in:
@@ -62,6 +62,8 @@ from verifier import SPV
|
||||
from mnemonic import Mnemonic
|
||||
|
||||
import paymentrequest
|
||||
from paymentrequest import InvoiceStore
|
||||
from contacts import Contacts
|
||||
|
||||
|
||||
TX_STATUS = [
|
||||
@@ -127,6 +129,11 @@ class Abstract_Wallet(PrintError):
|
||||
if self.storage.get('wallet_type') is None:
|
||||
self.storage.put('wallet_type', self.wallet_type)
|
||||
|
||||
# invoices and contacts
|
||||
self.invoices = InvoiceStore(self.storage)
|
||||
self.contacts = Contacts(self.storage)
|
||||
|
||||
|
||||
def diagnostic_name(self):
|
||||
return self.basename()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user