Skip to content

Commit

Permalink
Fixed netaddress_t type for getaddednodeinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
minium committed Feb 21, 2016
1 parent 90b733a commit c9b8211
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bitcoinapi/bitcoinapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ vector<nodeinfo_t> BitcoinAPI::getaddednodeinfo(bool dns) {
net.address = val2["address"].asString();

//TODO: Bug in here. Always shows true instead of false.
net.connected = val2["connected"].asBool();
net.connected = val2["connected"].asString();

node.addresses.push_back(net);
}
Expand Down
2 changes: 1 addition & 1 deletion src/bitcoinapi/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
/* === Node types === */
struct netaddress_t{
std::string address;
bool connected;
std::string connected;
};

struct nodeinfo_t{
Expand Down

0 comments on commit c9b8211

Please sign in to comment.