1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

remove unnecessary code

the signed_bt_dict field is not used for a Version 0 RC anyway, so no need to handle it here.  That was my bad.
This commit is contained in:
Thomas Winget 2020-10-02 11:41:21 -04:00 committed by GitHub
parent c04cbfe34f
commit 4f3ed5d1c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -266,12 +266,7 @@ namespace llarp
bool
RouterContact::DecodeVersion_0(llarp_buffer_t* buf)
{
auto begin = reinterpret_cast<char*>(buf->cur);
if (not bencode_decode_dict(*this, buf))
return false;
auto end = reinterpret_cast<char*>(buf->cur);
signed_bt_dict = std::string(begin, std::distance(begin, end));
return true;
return bencode_decode_dict(*this, buf);
}
bool