mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-13 19:18:56 +00:00
core: build protobuf
This commit is contained in:
parent
1532c96b0e
commit
9ed77afd12
@ -29,6 +29,8 @@ class MoneroTransactionData(p.MessageType):
|
||||
rsig_data: MoneroTransactionRsigData = None,
|
||||
integrated_indices: List[int] = None,
|
||||
client_version: int = None,
|
||||
hard_fork: int = None,
|
||||
monero_version: bytes = None,
|
||||
) -> None:
|
||||
self.version = version
|
||||
self.payment_id = payment_id
|
||||
@ -43,6 +45,8 @@ class MoneroTransactionData(p.MessageType):
|
||||
self.rsig_data = rsig_data
|
||||
self.integrated_indices = integrated_indices if integrated_indices is not None else []
|
||||
self.client_version = client_version
|
||||
self.hard_fork = hard_fork
|
||||
self.monero_version = monero_version
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
@ -60,4 +64,6 @@ class MoneroTransactionData(p.MessageType):
|
||||
11: ('rsig_data', MoneroTransactionRsigData, 0),
|
||||
12: ('integrated_indices', p.UVarintType, p.FLAG_REPEATED),
|
||||
13: ('client_version', p.UVarintType, 0),
|
||||
14: ('hard_fork', p.UVarintType, 0),
|
||||
15: ('monero_version', p.BytesType, 0),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user