forked from bitshares/python-bitshares
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstorage.py
More file actions
26 lines (20 loc) · 704 Bytes
/
Copy pathstorage.py
File metadata and controls
26 lines (20 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from graphenestorage import (
InRamConfigurationStore,
InRamEncryptedKeyStore,
InRamPlainKeyStore,
SqliteConfigurationStore,
SqliteEncryptedKeyStore,
SQLiteFile,
SqlitePlainKeyStore,
)
url = "wss://node.bitshares.eu"
InRamConfigurationStore.setdefault("node", url)
SqliteConfigurationStore.setdefault("node", url)
def get_default_config_store(*args, **kwargs):
if "appname" not in kwargs:
kwargs["appname"] = "bitshares"
return SqliteConfigurationStore(*args, **kwargs)
def get_default_key_store(config, *args, **kwargs):
if "appname" not in kwargs:
kwargs["appname"] = "bitshares"
return SqliteEncryptedKeyStore(config=config, **kwargs)