mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-25 07:48:10 +00:00
common: add proper markers for deprecated messages
This commit is contained in:
parent
41aa818c4c
commit
ff702c7d7f
@ -130,6 +130,7 @@ message PassphraseAck {
|
||||
* @next Deprecated_PassphraseStateAck
|
||||
*/
|
||||
message Deprecated_PassphraseStateRequest {
|
||||
option deprecated = true;
|
||||
optional bytes state = 1; // actual device state
|
||||
}
|
||||
|
||||
@ -139,6 +140,7 @@ message Deprecated_PassphraseStateRequest {
|
||||
* @auxend
|
||||
*/
|
||||
message Deprecated_PassphraseStateAck {
|
||||
option deprecated = true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -66,8 +66,8 @@ enum MessageType {
|
||||
|
||||
// Deprecated messages, kept for protobuf compatibility.
|
||||
// Both are marked wire_out so that we don't need to implement incoming handler for legacy
|
||||
MessageType_Deprecated_PassphraseStateRequest = 77 [(wire_out) = true];
|
||||
MessageType_Deprecated_PassphraseStateAck = 78 [(wire_out) = true];
|
||||
MessageType_Deprecated_PassphraseStateRequest = 77 [deprecated = true];
|
||||
MessageType_Deprecated_PassphraseStateAck = 78 [deprecated = true];
|
||||
|
||||
// Bootloader
|
||||
MessageType_FirmwareErase = 6 [(wire_in) = true, (wire_bootloader) = true];
|
||||
|
@ -109,6 +109,8 @@ fl.write(
|
||||
messages = defaultdict(list)
|
||||
|
||||
for message in MessageType.DESCRIPTOR.values:
|
||||
if message.GetOptions().deprecated:
|
||||
continue
|
||||
extension = get_wire_extension(message)
|
||||
messages[extension].append(message)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user