From e78007fc1a8f1891078d4f6bfe7583a77dda7ee9 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Wed, 15 May 2019 00:21:11 -0400 Subject: Make and get the multisig redeemscript and destination in one function instead of two Instead of creating a redeemScript with CreateMultisigRedeemscript and then getting the destination with AddAndGetDestinationForScript, do both in the same function. CreateMultisigRedeemscript is changed to AddAndGetMultisigDestination. It creates the redeemScript and returns it via an output parameter. Then it calls AddAndGetDestinationForScript to add the destination to the keystore and get the proper destination. This allows us to inspect the public keys in the redeemScript before creating the destination so that the correct destination is used when uncompressed pubkeys are in the multisig. Github-Pull: #16026 Rebased-From: a49503402b6bc21e3878e151c07529941d36aed0 --- src/rpc/util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/rpc/util.h') diff --git a/src/rpc/util.h b/src/rpc/util.h index f1bd2c89df..d4d8694053 100644 --- a/src/rpc/util.h +++ b/src/rpc/util.h @@ -6,6 +6,7 @@ #define BITCOIN_RPC_UTIL_H #include +#include #include #include #include