* Removed hard coded data dir in daemon launch

* Documented subprocess pow better
* Calculate block size better for pow
+ Added monero donation address
This commit is contained in:
Kevin Froman 2019-06-07 00:09:14 -05:00
parent 3322778ff4
commit 7e058b29e0
No known key found for this signature in database
GPG key ID: 0D414D0FE405B63B
4 changed files with 46 additions and 42 deletions

View file

@ -29,9 +29,9 @@ def daemon(o_inst):
'''
# remove runcheck if it exists
if os.path.isfile('data/.runcheck'):
if os.path.isfile('%s/.runcheck' % (o_inst.onionrCore.dataDir,)):
logger.debug('Runcheck file found on daemon start, deleting in advance.')
os.remove('data/.runcheck')
os.remove('%s/.runcheck' % (o_inst.onionrCore.dataDir,))
Thread(target=api.API, args=(o_inst, o_inst.debug, onionr.API_VERSION)).start()
Thread(target=api.PublicAPI, args=[o_inst.getClientApi()]).start()