1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2014 The Bitcoin developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
6 #ifndef H_BITCOIN_WALLET_ISMINE
7 #define H_BITCOIN_WALLET_ISMINE
10 #include "script/script.h"
14 /** IsMine() return codes */
18 ISMINE_WATCH_ONLY = 1,
20 ISMINE_ALL = ISMINE_WATCH_ONLY | ISMINE_SPENDABLE
22 /** used for bitflags of isminetype */
23 typedef uint8_t isminefilter;
25 isminetype IsMine(const CKeyStore& keystore, const CScript& scriptPubKey);
26 isminetype IsMine(const CKeyStore& keystore, const CTxDestination& dest);
28 #endif // H_BITCOIN_WALLET_ISMINE