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