fsm: return xpub for multisig

pull/25/head
Pavol Rusnak 6 years ago
parent ca24156eb5
commit b1725e7264
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -63,7 +63,7 @@ void fsm_msgGetPublicKey(const GetPublicKey *msg)
}
resp->has_xpub = true;
if (coin->xpub_magic && script_type == InputScriptType_SPENDADDRESS) {
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
if (coin->has_segwit && coin->xpub_magic_segwit_p2sh && script_type == InputScriptType_SPENDP2SHWITNESS) {

Loading…
Cancel
Save