aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorAmiti Uttarwar <amiti@uttarwar.org>2020-08-10 18:30:04 -0700
committerAmiti Uttarwar <amiti@uttarwar.org>2020-09-21 19:01:29 -0700
commit49c10a9ca40967d28ae16dfea9cccc6f3a6624a1 (patch)
tree46b2eb17cde91c46c4d17c56ab6251fa46d9744f /src/net.h
parent77376034d4abab292be6ade8486bc472c5f75fe3 (diff)
downloadbitcoin-49c10a9ca40967d28ae16dfea9cccc6f3a6624a1.tar.xz
[log] Add connection type to log statement
In addition to adding more specificity to the log statement about the type of connection, this change also consolidates two statements into one. Previously, the second one should have never been hit, since block-relay connections would match the "!IsInboundConn()" condition and return early.
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index 0366fa0f5b..61a208802c 100644
--- a/src/net.h
+++ b/src/net.h
@@ -1145,6 +1145,8 @@ public:
std::string GetAddrName() const;
//! Sets the addrName only if it was not previously set
void MaybeSetAddrName(const std::string& addrNameIn);
+
+ std::string ConnectionTypeAsString() const;
};
/** Return a timestamp in the future (in microseconds) for exponentially distributed events. */