Properly deserialize PubIntroMessages' relayed var

pull/1147/head
Stephen Shelton 4 years ago
parent c0fbe06c0f
commit a8623f09e9
No known key found for this signature in database
GPG Key ID: EE4BADACCE8B631C

@ -21,16 +21,34 @@ namespace llarp
bool read = false;
if(!BEncodeMaybeReadDictEntry("I", introset, read, key, val))
return false;
if(read)
return true;
if(!BEncodeMaybeReadDictInt("O", relayOrder, read, key, val))
return false;
if(read)
return true;
uint64_t relayedInt = (relayed ? 1 : 0);
if(!BEncodeMaybeReadDictInt("R", relayedInt, read, key, val))
return false;
if(read)
{
relayed = relayedInt;
return true;
}
if(!BEncodeMaybeReadDictInt("T", txID, read, key, val))
return false;
if(read)
return true;
if(!BEncodeMaybeReadDictInt("V", version, read, key, val))
return false;
return read;
if(read)
return true;
return false;
}
bool

Loading…
Cancel
Save