From cc4687021ac60ae3100497f3e9a9833be3d85851 Mon Sep 17 00:00:00 2001 From: Arinerron Date: Fri, 2 Mar 2018 23:37:46 -0800 Subject: [PATCH] Migrate from old dev-enabled to devmode --- onionr/communicator.py | 6 +++--- onionr/dev-enabled | 0 2 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 onionr/dev-enabled diff --git a/onionr/communicator.py b/onionr/communicator.py index 802a6ab6..8079e72c 100755 --- a/onionr/communicator.py +++ b/onionr/communicator.py @@ -20,7 +20,7 @@ and code to operate as a daemon, getting commands from the command queue databas along with this program. If not, see . ''' import sqlite3, requests, hmac, hashlib, time, sys, os, math, logger, urllib.parse -import core, onionrutils, onionrcrypto, onionrproofs, btc +import core, onionrutils, onionrcrypto, onionrproofs, btc, config class OnionrCommunicate: def __init__(self, debug, developmentMode): @@ -41,7 +41,7 @@ class OnionrCommunicate: except: logger.fatal('Failed to start Bitcoin Node, exiting...') exit(1) - + blockProcessTimer = 0 blockProcessAmount = 5 heartBeatTimer = 0 @@ -218,7 +218,7 @@ class OnionrCommunicate: shouldRun = False debug = True developmentMode = False -if os.path.exists('dev-enabled'): +if logger.get('devmode', True): developmentMode = True try: if sys.argv[1] == 'run': diff --git a/onionr/dev-enabled b/onionr/dev-enabled deleted file mode 100644 index e69de29b..00000000