Add `DisbandedCircuit` admin message type
Adds a `DisbandedCircuit` message to allow for member nodes of a circuit
being disbanded to be able to come to consensus before the services
associated with the circuit are removed.
@@ -303,6 +303,7 @@ message AdminMessage {
CONSENSUS_MESSAGE = 1;
PROPOSED_CIRCUIT = 2;
MEMBER_READY = 3;
+ DISBANDED_CIRCUIT = 4;
SERVICE_PROTOCOL_VERSION_REQUEST = 100;
SERVICE_PROTOCOL_VERSION_RESPONSE = 101;
@@ -313,6 +314,7 @@ message AdminMessage {
bytes consensus_message = 2;
ProposedCircuit proposed_circuit = 3;
MemberReady member_ready = 4;
+ DisbandedCircuit disbanded_circuit = 5;
// Messages to agree on protocol version
ServiceProtocolVersionRequest protocol_request = 100;
@@ -335,6 +337,12 @@ message MemberReady {
string member_node_id = 2;
}
+message DisbandedCircuit {
+ // the circuit being disbanded
+ string circuit_id = 1;
+ string member_node_id = 2;
+}
+
// This message is sent to a connection AdminService to agree upon protocol
// version.
//
