mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-09 06:18:02 +00:00
change "values" to "data" in getData to differentiate from tracker values (which are not authenticated/signed)
This commit is contained in:
parent
5a9613297a
commit
80f23d56e8
@ -85,7 +85,7 @@ void dht_get_observer::reply(msg const& m)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// look for peers
|
// look for peers
|
||||||
lazy_entry const* n = r->dict_find_list("values");
|
lazy_entry const* n = r->dict_find_list("data");
|
||||||
if (n)
|
if (n)
|
||||||
{
|
{
|
||||||
#ifdef TORRENT_DHT_VERBOSE_LOGGING
|
#ifdef TORRENT_DHT_VERBOSE_LOGGING
|
||||||
|
@ -1404,8 +1404,8 @@ void node_impl::incoming_request(msg const& m, entry& e)
|
|||||||
if (i != m_storage_table.end())
|
if (i != m_storage_table.end())
|
||||||
{
|
{
|
||||||
hasData = true;
|
hasData = true;
|
||||||
reply["values"] = entry::list_type();
|
reply["data"] = entry::list_type();
|
||||||
entry::list_type &values = reply["values"].list();
|
entry::list_type &values = reply["data"].list();
|
||||||
|
|
||||||
dht_storage_list_t const& lsto = i->second;
|
dht_storage_list_t const& lsto = i->second;
|
||||||
for (dht_storage_list_t::const_iterator j = lsto.begin()
|
for (dht_storage_list_t::const_iterator j = lsto.begin()
|
||||||
|
Loading…
Reference in New Issue
Block a user