legacy: fix not showing MultisigRedeemScriptType.nodes count correctly in GetAddress

pull/650/head
Pavol Rusnak 5 years ago
parent 93062c4cc2
commit c145db7dd2
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -221,7 +221,9 @@ void fsm_msgGetAddress(const GetAddress *msg) {
if (msg->has_multisig) {
strlcpy(desc, "Multisig __ of __:", sizeof(desc));
const uint32_t m = msg->multisig.m;
const uint32_t n = msg->multisig.pubkeys_count;
const uint32_t n = msg->multisig.nodes_count
? msg->multisig.nodes_count
: msg->multisig.pubkeys_count;
desc[9] = (m < 10) ? ' ' : ('0' + (m / 10));
desc[10] = '0' + (m % 10);
desc[15] = (n < 10) ? ' ' : ('0' + (n / 10));

Loading…
Cancel
Save