mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-25 16:08:32 +00:00
fix(core): halt on too-long-memo already during outputs confirmation phase
This commit is contained in:
parent
2728438aa2
commit
40cfba5a70
@ -102,6 +102,8 @@ class OrchardSigner:
|
||||
async def approve_outputs(self) -> None:
|
||||
for i in range(self.params.outputs_count):
|
||||
txo = await self.get_output(i)
|
||||
if txo.memo is not None and len(txo.memo.encode()) > 512:
|
||||
raise DataError("Memo is too long.")
|
||||
self.msg_acc.xor_message(txo, i) # add message to the accumulator
|
||||
if output_is_internal(txo):
|
||||
self.approver.add_orchard_change_output(txo)
|
||||
|
Loading…
Reference in New Issue
Block a user