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

Function assembleErrorMessage

src/protocol.py:253–260  ·  view source on GitHub ↗
(fatal=0, banTime=0, inventoryVector='', errorText='')

Source from the content-addressed store, hash-verified

251 return CreatePacket('version', payload)
252
253def assembleErrorMessage(fatal=0, banTime=0, inventoryVector='', errorText=''):
254 payload = encodeVarint(fatal)
255 payload += encodeVarint(banTime)
256 payload += encodeVarint(len(inventoryVector))
257 payload += inventoryVector
258 payload += encodeVarint(len(errorText))
259 payload += errorText
260 return CreatePacket('error', payload)
261
262# Packet decoding
263

Callers

nothing calls this directly

Calls 2

encodeVarintFunction · 0.90
CreatePacketFunction · 0.85

Tested by

no test coverage detected