Serialize / deserialize relayOrder @ FindIntroMessage

pull/1091/head
Stephen Shelton 4 years ago committed by Jason Rhinelander
parent 906803e387
commit 6ca2c11e59

@ -18,6 +18,12 @@ namespace llarp
{
bool read = false;
uint64_t tmp;
if(!BEncodeMaybeReadDictInt("O", tmp, read, k, val))
return false;
if (read)
relayOrder = tmp;
if(!BEncodeMaybeReadDictEntry("N", tagName, read, k, val))
return false;
@ -43,6 +49,10 @@ namespace llarp
if(!bencode_start_dict(buf))
return false;
// relay order
if(!BEncodeWriteDictInt("O", relayOrder, buf))
return false;
// message id
if(!BEncodeWriteDictMsgType(buf, "A", "F"))
return false;

Loading…
Cancel
Save