aboutsummaryrefslogtreecommitdiff
path: root/src/script.cpp
diff options
context:
space:
mode:
authorJaSK <temp@temp.temp>2014-07-01 11:00:22 +0200
committerJaSK <temp@temp.temp>2014-07-02 15:48:40 +0200
commita3e192a3274817517671f624d5744297905e20d2 (patch)
tree33ad109f1fa040134cfd29b8c321614816db2978 /src/script.cpp
parent53a2148f0c182b83da255972acb3110a74e9957a (diff)
replaced MINE_ with ISMINE_
Diffstat (limited to 'src/script.cpp')
-rw-r--r--src/script.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/script.cpp b/src/script.cpp
index 89f752bd1f..238a25e72d 100644
--- a/src/script.cpp
+++ b/src/script.cpp
@@ -1469,8 +1469,8 @@ isminetype IsMine(const CKeyStore &keystore, const CScript& scriptPubKey)
txnouttype whichType;
if (!Solver(scriptPubKey, whichType, vSolutions)) {
if (keystore.HaveWatchOnly(scriptPubKey))
- return MINE_WATCH_ONLY;
- return MINE_NO;
+ return ISMINE_WATCH_ONLY;
+ return ISMINE_NO;
}
CKeyID keyID;
@@ -1482,12 +1482,12 @@ isminetype IsMine(const CKeyStore &keystore, const CScript& scriptPubKey)
case TX_PUBKEY:
keyID = CPubKey(vSolutions[0]).GetID();
if (keystore.HaveKey(keyID))
- return MINE_SPENDABLE;
+ return ISMINE_SPENDABLE;
break;
case TX_PUBKEYHASH:
keyID = CKeyID(uint160(vSolutions[0]));
if (keystore.HaveKey(keyID))
- return MINE_SPENDABLE;
+ return ISMINE_SPENDABLE;
break;
case TX_SCRIPTHASH:
{
@@ -1495,7 +1495,7 @@ isminetype IsMine(const CKeyStore &keystore, const CScript& scriptPubKey)
CScript subscript;
if (keystore.GetCScript(scriptID, subscript)) {
isminetype ret = IsMine(keystore, subscript);
- if (ret == MINE_SPENDABLE)
+ if (ret == ISMINE_SPENDABLE)
return ret;
}
break;
@@ -1509,14 +1509,14 @@ isminetype IsMine(const CKeyStore &keystore, const CScript& scriptPubKey)
// in shared-wallet situations.
vector<valtype> keys(vSolutions.begin()+1, vSolutions.begin()+vSolutions.size()-1);
if (HaveKeys(keys, keystore) == keys.size())
- return MINE_SPENDABLE;
+ return ISMINE_SPENDABLE;
break;
}
}
if (keystore.HaveWatchOnly(scriptPubKey))
- return MINE_WATCH_ONLY;
- return MINE_NO;
+ return ISMINE_WATCH_ONLY;
+ return ISMINE_NO;
}
bool ExtractDestination(const CScript& scriptPubKey, CTxDestination& addressRet)