1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-19 21:08:07 +00:00
trezor-firmware/legacy/firmware
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
..
protob core: rework wait_layout() 2020-06-04 16:18:46 +02:00
u2f
.gitignore
bl_check.c
bl_check.h
bl_data.py legacy: use local copy of the previously built bootloader 2019-04-23 21:26:18 +02:00
bootloader.dat
ChangeLog core, legacy: update Changelogs to reflect the release 2020-06-03 15:35:30 +00:00
coin_info.c.mako all: add overwintered field to coin specification 2020-03-20 14:18:27 +00:00
coin_info.h.mako
coins.c
coins.h
config.c
config.h
crypto.c
crypto.h
debug.c
debug.h
defs
ethereum_networks.h.mako
ethereum_tokens.c.mako
ethereum_tokens.h.mako
ethereum.c
ethereum.h
fsm_msg_coin.h all: make timestamp mandatory on timestamp-enabled coins 2020-03-20 14:19:07 +00:00
fsm_msg_common.h common: rename ClearSession to LockDevice, introduce EndSession 2020-06-04 16:18:46 +02:00
fsm_msg_crypto.h legacy: support Signify Ed25519 signatures + add device test 2019-08-19 18:11:08 +02:00
fsm_msg_debug.h
fsm_msg_ethereum.h
fsm_msg_lisk.h
fsm_msg_nem.h legacy: show xpubs with multisig get_address 2020-02-24 17:36:50 +01:00
fsm_msg_stellar.h
fsm.c
fsm.h common: rename ClearSession to LockDevice, introduce EndSession 2020-06-04 16:18:46 +02:00
gettext.h
header.S
layout2.c legacy: use 2 page pagination to show xpubs in multisig get_address 2020-02-27 11:42:52 +00:00
layout2.h
lisk.c
lisk.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
Makefile
messages.c core+legacy: update nanopb api to version 0.4 2020-02-04 17:18:27 +00:00
messages.h
nem2.c
nem2.h
nem_mosaics.c.mako
nem_mosaics.h.mako
otp.c
otp.h
pinmatrix.c
pinmatrix.h
protect.c legacy, tests: Check for invalid PIN. 2020-03-17 11:53:48 +01:00
protect.h
recovery-table.h
recovery.c legacy: add ToS dialog to recovery 2020-05-28 14:52:56 +02:00
recovery.h
reset.c
reset.h
signing.c core/bitcoin: drop decred_script_version 2020-05-21 19:14:39 +02:00
signing.h
stellar.c
stellar.h
transaction.c core/bitcoin: drop decred_script_version 2020-05-21 19:14:39 +02:00
transaction.h
trezor.c
trezor.h
u2f_knownapps.h.mako
u2f.c
u2f.h
udp.c
usb.c Merge pull request #847 from trezor/prusnak/bootloader-restart 2020-02-19 18:20:49 +01:00
usb.h
version.h core, legacy: bump versions 2020-06-03 15:39:25 +00:00