X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fscript.cpp;h=e8bfab53cf1c48e053f3be070cfb8fba5e65ef74;hb=c69eb1bd70e0dc94095d63b0de50dc8d2910ea0e;hp=b79dc23923a4591ff68179ec405502c554f0db3f;hpb=231bc10a4b86e0a45d6cca292c707ac76d74bbdc;p=novacoin.git diff --git a/src/script.cpp b/src/script.cpp index b79dc23..e8bfab5 100644 --- a/src/script.cpp +++ b/src/script.cpp @@ -1507,14 +1507,9 @@ isminetype IsMine(const CKeyStore &keystore, const CScript& scriptPubKey) case TX_PUBKEY_DROP: { CPubKey key = CPubKey(vSolutions[0]); - if (keystore.HaveKey(key.GetID())) + CPubKey R = CPubKey(vSolutions[1]); + if (keystore.CheckOwnership(key, R)) return MINE_SPENDABLE; - else - { - CPubKey R = CPubKey(vSolutions[1]); - if (keystore.CheckOwnership(key, R)) - return MINE_SPENDABLE; - } } break; case TX_PUBKEYHASH: @@ -1559,7 +1554,7 @@ bool ExtractDestination(const CScript& scriptPubKey, CTxDestination& addressRet) if (!Solver(scriptPubKey, whichType, vSolutions)) return false; - if (whichType == TX_PUBKEY || whichType == TX_PUBKEY_DROP) + if (whichType == TX_PUBKEY) { addressRet = CPubKey(vSolutions[0]).GetID(); return true; @@ -1623,7 +1618,7 @@ bool ExtractDestinations(const CScript& scriptPubKey, txnouttype& typeRet, vecto vector vSolutions; if (!Solver(scriptPubKey, typeRet, vSolutions)) return false; - if (typeRet == TX_NULL_DATA) + if (typeRet == TX_NULL_DATA || typeRet == TX_PUBKEY_DROP) return true; if (typeRet == TX_MULTISIG)