mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-08 22:08:00 +00:00
bugfix: properly accept tracker response even if followers==0. fix #159
This commit is contained in:
parent
074fb5b2d0
commit
2d87266108
@ -132,10 +132,10 @@ void dht_get_observer::reply(msg const& m)
|
||||
// pretend it is a normal dht resource to the caller
|
||||
dht_get *dget( static_cast<dht_get*>(m_algorithm.get()) );
|
||||
if( dget->m_targetResource == "tracker" && dget->m_multi ) {
|
||||
int followers = r->dict_find_int_value("followers");
|
||||
const lazy_entry *followers = r->dict_find("followers");
|
||||
if( followers ) {
|
||||
entry::dictionary_type v;
|
||||
v["followers"] = followers;
|
||||
v["followers"] = followers->int_value();
|
||||
|
||||
entry::dictionary_type target;
|
||||
target["n"] = dget->m_targetUser;
|
||||
|
@ -8,7 +8,7 @@
|
||||
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
|
||||
#define CLIENT_VERSION_MAJOR 0
|
||||
#define CLIENT_VERSION_MINOR 9
|
||||
#define CLIENT_VERSION_REVISION 15
|
||||
#define CLIENT_VERSION_REVISION 16
|
||||
#define CLIENT_VERSION_BUILD 0
|
||||
|
||||
// Set to true for release, false for prerelease or test build
|
||||
|
Loading…
Reference in New Issue
Block a user