temporarily disabled onionrblockapi metadata

master
Kevin Froman 2018-06-21 02:17:20 -05:00
parent 4bc5317b63
commit 829dba45cc
2 changed files with 3 additions and 1 deletions

View File

@ -197,6 +197,8 @@ class OnionrCommunicatorDaemon:
def peerAction(self, peer, action, data=''): def peerAction(self, peer, action, data=''):
'''Perform a get request to a peer''' '''Perform a get request to a peer'''
if len(peer) == 0:
return False
logger.info('Performing ' + action + ' with ' + peer + ' on port ' + str(self.proxyPort)) logger.info('Performing ' + action + ' with ' + peer + ' on port ' + str(self.proxyPort))
url = 'http://' + peer + '/public/?action=' + action url = 'http://' + peer + '/public/?action=' + action
if len(data) > 0: if len(data) > 0:

View File

@ -168,7 +168,7 @@ class Block:
blockFile.write(self.getRaw().encode()) blockFile.write(self.getRaw().encode())
self.update() self.update()
else: else:
self.hash = self.getCore().insertBlock(self.getContent(), header = self.getType(), sign = sign, metadata = self.getMetadata()) self.hash = self.getCore().insertBlock(self.getContent(), header = self.getType(), sign = sign)
self.update() self.update()
return self.getHash() return self.getHash()
else: else: