From 57423c9f542a5fee83a044d540b0d0d6f803f29f Mon Sep 17 00:00:00 2001 From: Tomas Susanka Date: Tue, 12 Mar 2019 15:10:45 +0100 Subject: [PATCH] firmware: set bitcoin's has_node The field has been changed to optional in https://github.com/trezor/trezor-common/commit/84f5a0e39376409863c58a9ede1b61403306894b . --- firmware/fsm_msg_coin.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/firmware/fsm_msg_coin.h b/firmware/fsm_msg_coin.h index 3357ade4ba..7e07cadcce 100644 --- a/firmware/fsm_msg_coin.h +++ b/firmware/fsm_msg_coin.h @@ -48,6 +48,7 @@ void fsm_msgGetPublicKey(const GetPublicKey *msg) } } + resp->has_node = true; resp->node.depth = node->depth; resp->node.fingerprint = fingerprint; resp->node.child_num = node->child_num; @@ -61,8 +62,8 @@ void fsm_msgGetPublicKey(const GetPublicKey *msg) /* ed25519 public key */ resp->node.public_key.bytes[0] = 0; } - resp->has_xpub = true; + resp->has_xpub = true; if (coin->xpub_magic && (script_type == InputScriptType_SPENDADDRESS || script_type == InputScriptType_SPENDMULTISIG)) { hdnode_serialize_public(node, fingerprint, coin->xpub_magic, resp->xpub, sizeof(resp->xpub)); } else