added introduce command

This commit is contained in:
Kevin Froman 2018-04-18 21:56:25 -05:00
parent d8d29b7c28
commit 8024d0e354
No known key found for this signature in database
GPG key ID: 0D414D0FE405B63B
3 changed files with 23 additions and 9 deletions

View file

@ -555,6 +555,13 @@ class Core:
'''
Introduces our node into the network by telling X many nodes our HS address
'''
nodeList = self.listAdders().split('\n')
self.daemonQueueAdd('announceNode', nodeList)
announceAmount = 2
nodeList = self.listAdders()
if len(nodeList) == 0:
self.addAddress('onionragxuddecmg.onion')
nodeList.append('onionragxuddecmg.onion')
if announceAmount > len(nodeList):
announceAmount = len(nodeList)
for i in range(announceAmount):
self.daemonQueueAdd('announceNode', nodeList[i])
return