Skip to content

Commit

Permalink
Add empty config. Add aux_genesis_helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
blitzstern5 committed Feb 5, 2019
1 parent 709d118 commit 2008738
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 3 deletions.
45 changes: 45 additions & 0 deletions examples/config.empty.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
PRODUCT_BRAND_NAME = 'Genesis'
PRODUCT_NAME = ('%s %s' % (PRODUCT_BRAND_NAME, 'Block Explorer'))
CSRF_ENABLED = True
SECRET_KEY = 'TWBt-1Cuz-GPtN-3vm2'
TIME_FORMAT = '%a, %d %b %Y %H:%M:%S'
CELERY_BROKER_URL = 'redis://localhost:16379/0'
CELERY_RESULT_BACKEND = 'redis://localhost:16379/0'
REDIS_URL = 'redis://localhost:16379/0'
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_DATABASE_URI = 'sqlite:///:memory:'
SQLALCHEMY_BINDS = {
'db_engine': 'sqlite:///:memory:',
'genesis_helpers': 'sqlite:///:memory:',
'aux_genesis_helpers': 'sqlite:///:memory:',
}
ENABLE_DATABASE_EXPLORER = True
ENABLE_DATABASE_SELECTOR = False
DB_ENGINE_DISCOVERY_MAP = {
}
AUX_HELPERS_BIND_NAME = 'aux_genesis_helpers'
AUX_DB_ENGINE_DISCOVERY_MAP = {
}
SOCKETIO_HOST = '127.0.0.1'
SOCKETIO_PORT = 8080
FETCH_NUM_OF_BLOCKS = 50
BACKEND_API_URLS = {
}
BACKEND_VERSION_FEATURES_MAP = {
'20180830': {
'github-branch': 'master',
'github-commmit': ' e5ddc76',
'url': 'https://github.com/GenesisKernel/go-genesis/pull/513',
'features': ['blocks_tx_info_api_endpoint', 'system_parameters_at_ecosystem', 'image_id_instead_of_avatar', 'member_info_at_members', 'keys_tables_delete_to_blocked'],
},
'20180512': {
'github-branch': 'develop',
'github-commmit': '4b69b8e',
'url': 'https://github.com/GenesisKernel/go-genesis/pull/290',
'features': ['system_parameters_at_ecosystem', 'image_id_instead_of_avatar', 'member_info_at_members'],
},
}
DISKCACHE_PATH = '/tmp/genesis_block_explorer_diskcache'
DISKCACHE_DBEX_DATABASE_TIMEOUT = 10000
POSTS_PER_PAGE = 3
MAX_SEARCH_RESULTS = 50
4 changes: 1 addition & 3 deletions examples/config.qs-ext-dev.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@

import os
basedir = os.path.abspath(os.path.dirname(__file__))
PRODUCT_BRAND_NAME = 'Genesis'
PRODUCT_NAME = ('%s %s' % (PRODUCT_BRAND_NAME, 'Block Explorer'))
CSRF_ENABLED = True
Expand All @@ -14,6 +11,7 @@
SQLALCHEMY_BINDS = {
'db_engine': 'sqlite:///:memory:',
'genesis_helpers': 'sqlite:///:memory:',
'aux_genesis_helpers': 'sqlite:///:memory:',
'genesis1': 'postgresql://postgres:genesis@localhost:15432/genesis1',
'genesis2': 'postgresql://postgres:genesis@localhost:15432/genesis2',
'genesis3': 'postgresql://postgres:genesis@localhost:15432/genesis3',
Expand Down

0 comments on commit 2008738

Please sign in to comment.