use different path for simulator

This commit is contained in:
Yostra 2020-03-25 18:34:04 -07:00 committed by Richard Kiss
parent b22d02ef05
commit 3f16e33af5
2 changed files with 2 additions and 1 deletions

View File

@ -78,6 +78,7 @@ full_node:
# Run multiple nodes with different databases by changing the database_path
database_path: blockchain_v3.db
simulator_database_path: simulator_blockchain_v3.db
# If True, starts an RPC server at the following port
start_rpc_server: True

View File

@ -32,7 +32,7 @@ async def main():
log = logging.getLogger(__name__)
server_closed = False
db_path = Path(config["database_path"])
db_path = Path(config["simulator_database_path"])
# Create the store (DB) and full node instance
store = await FullNodeStore.create(db_path)