[fix](trx-client): add missing protocol_version field to ClientEnvelope constructors

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-03-29 14:21:45 +02:00
parent 52a244da19
commit dd0ef49edb
+2
View File
@@ -363,6 +363,7 @@ async fn handle_spectrum_connection(
token: config.token.clone(), token: config.token.clone(),
rig_id: wire_rig_id, rig_id: wire_rig_id,
cmd: ClientCommand::GetSpectrum, cmd: ClientCommand::GetSpectrum,
protocol_version: Some(trx_protocol::types::PROTOCOL_VERSION),
}; };
match send_envelope_no_state_update(&mut writer, &mut reader, envelope).await { match send_envelope_no_state_update(&mut writer, &mut reader, envelope).await {
Ok(snapshot) => { Ok(snapshot) => {
@@ -569,6 +570,7 @@ fn build_envelope(
token: config.token.clone(), token: config.token.clone(),
rig_id: wire_rig_id, rig_id: wire_rig_id,
cmd, cmd,
protocol_version: Some(trx_protocol::types::PROTOCOL_VERSION),
} }
} }