+ added POW announce for node (now POST)
* fixed bug where core hsAddress was not available on first startup
This commit is contained in:
parent
0ae052336c
commit
bc95d8855d
5 changed files with 86 additions and 26 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue