File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -2247,7 +2247,9 @@ void CConnman::DisconnectNodes()
22472247 .grant = std::move (pnode->grantOutbound ),
22482248 .destination = pnode->m_dest ,
22492249 .conn_type = pnode->m_conn_type ,
2250- .use_v2transport = false });
2250+ .use_v2transport = false ,
2251+ .masternode_connection = pnode->m_masternode_connection ,
2252+ .masternode_probe_connection = pnode->m_masternode_probe_connection });
22512253 LogPrint (BCLog::NET, " retrying with v1 transport protocol for peer=%d\n " , pnode->GetId ());
22522254 }
22532255
@@ -5171,7 +5173,9 @@ void CConnman::PerformReconnections()
51715173 std::move (item.grant ),
51725174 item.destination .empty () ? nullptr : item.destination .c_str (),
51735175 item.conn_type ,
5174- item.use_v2transport );
5176+ item.use_v2transport ,
5177+ item.masternode_connection ? MasternodeConn::IsConnection : MasternodeConn::IsNotConnection,
5178+ item.masternode_probe_connection ? MasternodeProbeConn::IsConnection : MasternodeProbeConn::IsNotConnection);
51755179 }
51765180}
51775181
Original file line number Diff line number Diff line change @@ -1981,6 +1981,8 @@ friend class CNode;
19811981 std::string destination;
19821982 ConnectionType conn_type;
19831983 bool use_v2transport;
1984+ bool masternode_connection;
1985+ bool masternode_probe_connection;
19841986 };
19851987
19861988 /* *
You can’t perform that action at this time.
0 commit comments