From 311c10210ed8edca195066a9fdd09036db31f89a Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 19 Feb 2016 21:48:29 +0300 Subject: [PATCH] A proper initialization of nReqSigs. --- src/script.cpp | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/script.cpp b/src/script.cpp index 90be3eb..c7c2b29 100644 --- a/src/script.cpp +++ b/src/script.cpp @@ -1618,8 +1618,11 @@ bool ExtractDestinations(const CScript& scriptPubKey, txnouttype& typeRet, vecto vector vSolutions; if (!Solver(scriptPubKey, typeRet, vSolutions)) return false; - if (typeRet == TX_NULL_DATA || typeRet == TX_PUBKEY_DROP) + if (typeRet == TX_NULL_DATA) + { + nRequiredRet = 0; return true; + } if (typeRet == TX_MULTISIG) { @@ -1633,6 +1636,8 @@ bool ExtractDestinations(const CScript& scriptPubKey, txnouttype& typeRet, vecto else { nRequiredRet = 1; + if (typeRet == TX_PUBKEY_DROP) + return true; CTxDestination address; if (!ExtractDestination(scriptPubKey, address)) return false; -- 1.7.1