temporarily disabled onionrblockapi metadata
parent
4bc5317b63
commit
829dba45cc
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue