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

Function getBitfield

src/protocol.py:55–61  ·  view source on GitHub ↗
(address)

Source from the content-addressed store, hash-verified

53# Bitfield
54
55def getBitfield(address):
56 # bitfield of features supported by me (see the wiki).
57 bitfield = 0
58 # send ack
59 if not BMConfigParser().safeGetBoolean(address, 'dontsendack'):
60 bitfield |= BITFIELD_DOESACK
61 return pack('>I', bitfield)
62
63def checkBitfield(bitfieldBinary, flags):
64 bitfield, = unpack('>I', bitfieldBinary)

Callers

nothing calls this directly

Calls 2

BMConfigParserClass · 0.90
safeGetBooleanMethod · 0.80

Tested by

no test coverage detected