Skip to content

Commit c9b8211

Browse files
author
minium
committed
Fixed netaddress_t type for getaddednodeinfo
1 parent 90b733a commit c9b8211

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bitcoinapi/bitcoinapi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ vector<nodeinfo_t> BitcoinAPI::getaddednodeinfo(bool dns) {
140140
net.address = val2["address"].asString();
141141

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

145145
node.addresses.push_back(net);
146146
}

src/bitcoinapi/types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
/* === Node types === */
3939
struct netaddress_t{
4040
std::string address;
41-
bool connected;
41+
std::string connected;
4242
};
4343

4444
struct nodeinfo_t{

0 commit comments

Comments
 (0)