FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Finalize storage · Codaone/python-bitshares@2cdaabd · GitHub

Commit 2cdaabd

Browse files
committed
Finalize storage
1 parent f5e7ede commit 2cdaabd

8 files changed

Lines changed: 407 additions & 365 deletions

File tree

‎bitshares/bitshares.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from bitsharesapi.bitsharesnoderpc import BitSharesNodeRPC
55
from bitsharesbase.account import PublicKey
66
from bitsharesbase import operations
7-
from .storage import DefaultConfigurationStore
7+
from .storage import SqliteConfigurationStore
88
from .instance import set_shared_blockchain_instance, shared_blockchain_instance
99
from .asset import Asset
1010
from .account import Account
@@ -138,7 +138,7 @@ def __init__(self,
138138
# Store self.config for access through other Classes
139139
self.config = kwargs.get(
140140
"config_store",
141-
DefaultConfigurationStore()
141+
SqliteConfigurationStore()
142142
)
143143

144144
if not self.offline:

‎bitshares/message.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
InvalidMemoKeyException,
1313
WrongMemoKey
1414
)
15-
from .storage import configStorage as config
1615

1716

1817
log = logging.getLogger(__name__)
@@ -61,8 +60,8 @@ def sign(self, account=None, **kwargs):
6160
:returns: the signed message encapsulated in a known format
6261
"""
6362
if not account:
64-
if "default_account" in config:
65-
account = config["default_account"]
63+
if "default_account" in self.blockchain.config:
64+
account = self.blockchain.config["default_account"]
6665
if not account:
6766
raise ValueError("You need to provide an account")
6867

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL