1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 04:18:10 +00:00
trezor-firmware/legacy/firmware/protob
matejcik 6f53ca0ac6 core: rework wait_layout()
The original wait_layout was unreliable, because there are no guarantees
re order of arrival of the respective events. Still, TT's event handling
is basically deterministic, so as long as the host sent its messages
close enough to each other, the order worked out.

This is no longer the case with the introduction of loop.spawn: TT's
behavior is still deterministic, but now ButtonAck is processed *before*
the corresponding wait_layout, so the waiting side waits forever.

In the new process, the host must first register to receive layout
events, and then receives all of them (so the number of calls to
wait_layout must match the number of layout changes).

DebugLinkWatchLayout message must be version-gated, because of an
unfortunate collection of bugs in previous versions wrt unknown message
handling; and this interests us because upgrade-tests are using
wait_layout feature.
2020-06-04 16:18:46 +02:00
..
.gitignore MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
Makefile core: rework wait_layout() 2020-06-04 16:18:46 +02:00
messages_map.py common: add proper markers for deprecated messages 2020-02-10 15:38:26 +01:00
messages-bitcoin.options all: drop Horizen and BIP-115 support [NO BACKPORT] 2020-03-20 14:19:07 +00:00
messages-bitcoin.proto MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages-common.options common: restore PassphraseAck.state 2020-02-24 15:15:09 +01:00
messages-common.proto MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages-crypto.options MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages-crypto.proto MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages-debug.options legacy: fix CALLBACK checker 2020-02-12 17:18:51 +01:00
messages-debug.proto MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages-ethereum.options legacy: don't process EthereumAddress.old_address via callback 2019-06-24 15:02:58 +02:00
messages-ethereum.proto MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages-lisk.options MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages-lisk.proto MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages-management.options legacy: new passphrase redesign draft 2020-02-07 11:40:59 +00:00
messages-management.proto MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages-nem.options MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages-nem.proto MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages-stellar.options MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages-stellar.proto MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages.options MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages.proto MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00