diff options
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/connection.h | 4 |
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; |