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=''):
'''Perform a get request to a peer'''
if len(peer) == 0:
return False
logger.info('Performing ' + action + ' with ' + peer + ' on port ' + str(self.proxyPort))
url = 'http://' + peer + '/public/?action=' + action
if len(data) > 0:

View File

@ -168,7 +168,7 @@ class Block:
blockFile.write(self.getRaw().encode())
self.update()
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()
return self.getHash()
else: