bugfix: properly accept tracker response even if followers==0. fix #159

This commit is contained in:
Miguel Freitas 2014-02-20 00:21:47 -03:00
parent 074fb5b2d0
commit 2d87266108
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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