You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
789 B
29 lines
789 B
14 years ago
|
// Copyright (c) 2009-2010 Satoshi Nakamoto
|
||
11 years ago
|
// Copyright (c) 2009-2013 The Bitcoin developers
|
||
14 years ago
|
// Distributed under the MIT/X11 software license, see the accompanying
|
||
13 years ago
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||
12 years ago
|
|
||
10 years ago
|
#ifndef H_BITCOIN_WALLET_ISMINE
|
||
|
#define H_BITCOIN_WALLET_ISMINE
|
||
14 years ago
|
|
||
12 years ago
|
#include "key.h"
|
||
10 years ago
|
#include "script/script.h"
|
||
14 years ago
|
|
||
12 years ago
|
class CKeyStore;
|
||
14 years ago
|
|
||
11 years ago
|
/** IsMine() return codes */
|
||
|
enum isminetype
|
||
|
{
|
||
11 years ago
|
ISMINE_NO = 0,
|
||
|
ISMINE_WATCH_ONLY = 1,
|
||
|
ISMINE_SPENDABLE = 2,
|
||
|
ISMINE_ALL = ISMINE_WATCH_ONLY | ISMINE_SPENDABLE
|
||
11 years ago
|
};
|
||
11 years ago
|
/** used for bitflags of isminetype */
|
||
|
typedef uint8_t isminefilter;
|
||
11 years ago
|
|
||
|
isminetype IsMine(const CKeyStore& keystore, const CScript& scriptPubKey);
|
||
11 years ago
|
isminetype IsMine(const CKeyStore& keystore, const CTxDestination& dest);
|
||
13 years ago
|
|
||
10 years ago
|
#endif // H_BITCOIN_SCRIPT
|