progress in removing core

This commit is contained in:
Kevin Froman 2019-07-20 01:02:30 -05:00
parent e351710189
commit 348ec1081f
23 changed files with 78 additions and 1454 deletions

View file

@ -1,9 +1,10 @@
from utils import identifyhome
import filepaths
home = identifyhome.identify_home()
if not home.endswith('/'): home += '/'
block_meta_db = '%sblock-metadata.db' % (home,)
block_data_db = '%sblocks/block-data.db' % (home,)
block_meta_db = '%sblock-metadata.db' % (home)
block_data_db = '%s/block-data.db' % (filepaths.block_data_location,)
daemon_queue_db = '%sdaemon-queue.db' % (home,)
address_info_db = '%saddress.db' % (home,)
user_id_info_db = '%susers.db' % (home,)

View file

@ -64,7 +64,7 @@ def add_address(address):
if type(address) is None or len(address) == 0:
return False
if stringvalidators.validate_transport(address):
if address == gettransports.transports[0]:
if address == gettransports.get()[0]:
return False
conn = sqlite3.connect(dbfiles.address_info_db, timeout=30)
c = conn.cursor()