aboutsummaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
Diffstat (limited to 'src/network')
-rw-r--r--src/network/connection.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/connection.h b/src/network/connection.h
index 1ee4f6762..289c79125 100644
--- a/src/network/connection.h
+++ b/src/network/connection.h
@@ -586,6 +586,10 @@ enum PeerChangeType
};
struct PeerChange
{
+ PeerChange(PeerChangeType t, u16 _peer_id, bool _timeout):
+ type(t), peer_id(_peer_id), timeout(_timeout) {}
+ PeerChange() = delete;
+
PeerChangeType type;
u16 peer_id;
bool timeout;