+ added POW announce for node (now POST)

* fixed bug where core hsAddress was not available on first startup
This commit is contained in:
Kevin Froman 2018-08-08 14:26:02 -05:00
parent 0ae052336c
commit bc95d8855d
No known key found for this signature in database
GPG key ID: 0D414D0FE405B63B
5 changed files with 86 additions and 26 deletions

View file

@ -78,6 +78,12 @@ class Core:
sys.exit(1)
return
def refreshFirstStartVars(self):
'''Hack to refresh some vars which may not be set on first start'''
if os.path.exists('data/hs/hostname'):
with open('data/hs/hostname', 'r') as hs:
self.hsAddress = hs.read().strip()
def addPeer(self, peerID, powID, name=''):
'''
Adds a public key to the key database (misleading function name)