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:
parent
c04cbfe34f
commit
4f3ed5d1c4
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue