(fatal=0, banTime=0, inventoryVector='', errorText='')
| 251 | return CreatePacket('version', payload) |
| 252 | |
| 253 | def 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 |
nothing calls this directly
no test coverage detected