mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-24 22:45:44 +00:00
reconnect function added to reset_database if statement
This commit is contained in:
parent
1d7f609d17
commit
6e16a6c0f1
@ -4,7 +4,6 @@
|
|||||||
# Code is Apache-2.0 and docs are CC-BY-4.0
|
# Code is Apache-2.0 and docs are CC-BY-4.0
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
from jsonschema import SchemaError
|
|
||||||
import tarantool
|
import tarantool
|
||||||
|
|
||||||
from planetmint.config import Config
|
from planetmint.config import Config
|
||||||
@ -24,9 +23,10 @@ class TarantoolDB:
|
|||||||
self.db_connect = tarantool.connect(host=self.host, port=self.port)
|
self.db_connect = tarantool.connect(host=self.host, port=self.port)
|
||||||
self.init_path = Config().get()["database"]["init_config"]["absolute_path"]
|
self.init_path = Config().get()["database"]["init_config"]["absolute_path"]
|
||||||
self.drop_path = Config().get()["database"]["drop_config"]["absolute_path"]
|
self.drop_path = Config().get()["database"]["drop_config"]["absolute_path"]
|
||||||
# if reset_database:
|
if reset_database:
|
||||||
# self.drop_database()
|
self.drop_database()
|
||||||
# self.init_database()
|
self.init_database()
|
||||||
|
self._reconnect()
|
||||||
self.SPACE_NAMES = ["abci_chains", "assets", "blocks", "blocks_tx",
|
self.SPACE_NAMES = ["abci_chains", "assets", "blocks", "blocks_tx",
|
||||||
"elections", "meta_data", "pre_commits", "validators",
|
"elections", "meta_data", "pre_commits", "validators",
|
||||||
"transactions", "inputs", "outputs", "keys"]
|
"transactions", "inputs", "outputs", "keys"]
|
||||||
|
|||||||
@ -1,57 +1,64 @@
|
|||||||
aiohttp==3.7.4
|
aiohttp==3.6.2
|
||||||
aniso8601==9.0.1
|
aniso8601==9.0.1
|
||||||
|
asn1crypto==1.4.0
|
||||||
async-timeout==3.0.1
|
async-timeout==3.0.1
|
||||||
attrs==21.4.0
|
attrs==21.4.0
|
||||||
base58==2.1.0
|
base58==1.0.3
|
||||||
bigchaindb-abci==1.0.7
|
BigchainDB==2.2.2
|
||||||
|
bigchaindb-abci==1.0.5
|
||||||
capturer==3.0
|
capturer==3.0
|
||||||
certifi==2021.10.8
|
certifi==2021.10.8
|
||||||
cffi==1.15.0
|
cffi==1.15.0
|
||||||
chardet==3.0.4
|
chardet==3.0.4
|
||||||
click==8.1.2
|
charset-normalizer==2.0.12
|
||||||
colorlog==5.0.1
|
click==8.0.3
|
||||||
cryptography==3.4.7
|
colorlog==4.1.0
|
||||||
Flask==2.0.1
|
cryptoconditions==0.8.0
|
||||||
Flask-Cors==3.0.10
|
cryptography==36.0.1
|
||||||
Flask-RESTful==0.3.9
|
Flask==1.1.2
|
||||||
gevent==21.1.2
|
Flask-Cors==3.0.8
|
||||||
greenlet==1.1.2
|
Flask-RESTful==0.3.8
|
||||||
gunicorn==20.1.0
|
gevent==20.6.2
|
||||||
|
greenlet==0.4.16
|
||||||
|
gunicorn==20.0.4
|
||||||
humanfriendly==10.0
|
humanfriendly==10.0
|
||||||
|
hypothesis==6.39.3
|
||||||
idna==2.10
|
idna==2.10
|
||||||
iniconfig==1.1.1
|
iniconfig==1.1.1
|
||||||
itsdangerous==2.1.2
|
itsdangerous==2.0.1
|
||||||
Jinja2==3.1.1
|
Jinja2==3.0.3
|
||||||
jsonschema==3.2.0
|
jsonschema==3.2.0
|
||||||
logstats==0.3.0
|
logstats==0.3.0
|
||||||
MarkupSafe==2.1.1
|
MarkupSafe==2.0.1
|
||||||
msgpack==1.0.3
|
msgpack==1.0.3
|
||||||
multidict==6.0.2
|
multidict==4.7.6
|
||||||
packaging==21.3
|
packaging==21.3
|
||||||
Planetmint==0.9.0
|
Planetmint==0.9.0
|
||||||
planetmint-cryptoconditions==0.9.4
|
planetmint-cryptoconditions==0.9.3
|
||||||
pluggy==1.0.0
|
pluggy==1.0.0
|
||||||
protobuf==3.17.2
|
protobuf==3.6.1
|
||||||
py==1.11.0
|
py==1.11.0
|
||||||
pyasn1==0.4.8
|
pyasn1==0.4.8
|
||||||
pycparser==2.21
|
pycparser==2.21
|
||||||
pymongo==3.11.4
|
pymongo==3.7.2
|
||||||
PyNaCl==1.4.0
|
PyNaCl==1.1.2
|
||||||
pyparsing==3.0.8
|
pyOpenSSL==22.0.0
|
||||||
|
pyparsing==3.0.7
|
||||||
pyrsistent==0.18.1
|
pyrsistent==0.18.1
|
||||||
pytest==7.1.1
|
pytest==7.0.1
|
||||||
python-rapidjson==1.0
|
python-rapidjson==0.9.1
|
||||||
pytz==2022.1
|
pytz==2021.3
|
||||||
PyYAML==5.4.1
|
PyYAML==5.3.1
|
||||||
requests==2.25.1
|
requests==2.23.0
|
||||||
setproctitle==1.2.2
|
setproctitle==1.1.10
|
||||||
six==1.16.0
|
six==1.16.0
|
||||||
|
sortedcontainers==2.4.0
|
||||||
tarantool==0.7.1
|
tarantool==0.7.1
|
||||||
tomli==2.0.1
|
tomli==2.0.1
|
||||||
typing-extensions==4.1.1
|
typing_extensions==4.1.1
|
||||||
urllib3==1.26.9
|
urllib3==1.25.11
|
||||||
Werkzeug==2.1.1
|
Werkzeug==2.0.3
|
||||||
yarl==1.7.2
|
yarl==1.7.2
|
||||||
zenroom==2.1.0.dev1649760309
|
zenroom==2.1.0.dev1647359536
|
||||||
zope.event==4.5.0
|
zope.event==4.5.0
|
||||||
zope.interface==5.5.0.dev0
|
zope.interface==5.5.0.dev0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user