feat(server): ProposalKind::ReplaceOperator

This commit is contained in:
CleverWild
2026-06-13 16:46:04 +02:00
committed by Skipper
parent 9e4ba24ac9
commit 52c204b654
3 changed files with 89 additions and 0 deletions

View File

@@ -53,6 +53,9 @@ async fn handle_create(
client_id: p.client_id,
},
Some(ProtoKind::ApproveServerUpdate(_)) => ProposalKind::ApproveServerUpdate,
Some(ProtoKind::ReplaceOperator(p)) => ProposalKind::ReplaceOperator {
new_pubkey: p.new_pubkey,
},
None => return Err(Status::invalid_argument("Missing proposal kind")),
};
let ttl_secs = req.ttl_secs.map(i64::from);