Changeset View
Changeset View
Standalone View
Standalone View
src/script/ismine.h
Show All 10 Lines | |||||
#include <cstdint> | #include <cstdint> | ||||
class CKeyStore; | class CKeyStore; | ||||
class CScript; | class CScript; | ||||
/** IsMine() return codes */ | /** IsMine() return codes */ | ||||
enum isminetype { | enum isminetype { | ||||
ISMINE_NO = 0, | ISMINE_NO = 0, | ||||
//! Indicates that we don't know how to create a scriptSig that would solve | ISMINE_WATCH_ONLY = 1, | ||||
//! this if we were given the appropriate private keys | ISMINE_SPENDABLE = 2, | ||||
ISMINE_WATCH_UNSOLVABLE = 1, | |||||
//! Indicates that we know how to create a scriptSig that would solve this | |||||
//! if we were given the appropriate private keys | |||||
ISMINE_WATCH_SOLVABLE = 2, | |||||
ISMINE_WATCH_ONLY = ISMINE_WATCH_SOLVABLE | ISMINE_WATCH_UNSOLVABLE, | |||||
ISMINE_SPENDABLE = 4, | |||||
ISMINE_ALL = ISMINE_WATCH_ONLY | ISMINE_SPENDABLE | ISMINE_ALL = ISMINE_WATCH_ONLY | ISMINE_SPENDABLE | ||||
}; | }; | ||||
/** used for bitflags of isminetype */ | /** used for bitflags of isminetype */ | ||||
typedef uint8_t isminefilter; | typedef uint8_t isminefilter; | ||||
/** | /** | ||||
* isInvalid becomes true when the script is found invalid by consensus or | * isInvalid becomes true when the script is found invalid by consensus or | ||||
Show All 12 Lines |