MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / sendgetdata

Method sendgetdata

src/class_receiveDataThread.py:527–532  ·  view source on GitHub ↗
(self, hashes)

Source from the content-addressed store, hash-verified

525 # Send a getdata message to our peer to request the object with the given
526 # hash
527 def sendgetdata(self, hashes):
528 if len(hashes) == 0:
529 return
530 logger.debug('sending getdata to retrieve %i objects', len(hashes))
531 payload = encodeVarint(len(hashes)) + ''.join(hashes)
532 self.sendDataThreadQueue.put((0, 'sendRawData', protocol.CreatePacket('getdata', payload)), False)
533
534
535 # We have received a getdata request from our peer

Callers 1

processDataMethod · 0.95

Calls 2

encodeVarintFunction · 0.85
putMethod · 0.80

Tested by

no test coverage detected