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

Method encode

src/messagetypes/vote.py:12–19  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

10 self.vote = data["vote"]
11
12 def encode(self, data):
13 super(Vote, self).encode()
14 try:
15 self.data["msgid"] = data["msgid"]
16 self.data["vote"] = data["vote"]
17 except KeyError as e:
18 logger.error("Missing key %s", e.name)
19 return self.data
20
21 def process(self):
22 logger.debug("msgid: %s", self.msgid)

Callers 15

getAddressFunction · 0.45
subscribeFunction · 0.45
createChanFunction · 0.45
joinChanFunction · 0.45
listAddFunction · 0.45
genAddFunction · 0.45
genMilAddrFunction · 0.45
attachmentFunction · 0.45
sendMsgFunction · 0.45
sendBrdFunction · 0.45
replyMsgFunction · 0.45
addAddressToAddressBookFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected