Changeset View
Changeset View
Standalone View
Standalone View
src/script/ismine.h
Show All 22 Lines | |||||
/** 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 | ||||
* policy. This will terminate the recursion and return ISMINE_NO immediately, | * policy. This will terminate the recursion and return ISMINE_NO immediately, | ||||
* as an invalid script should never be considered as "mine". Currently the only | * as an invalid script should never be considered as "mine". Currently the only | ||||
* use of isInvalid is indicate uncompressed keys when | * use of isInvalid is for P2SH-inside-P2SH scripts (as a technicality, to | ||||
* SCRIPT_VERIFY_COMPRESSED_PUBKEYTYPE is specified, but could also be used in | * prevent infinite recursion). | ||||
* similar cases in the future. | |||||
*/ | */ | ||||
isminetype IsMine(const CKeyStore &keystore, const CScript &scriptPubKey, | isminetype IsMine(const CKeyStore &keystore, const CScript &scriptPubKey, | ||||
bool &isInvalid); | bool &isInvalid); | ||||
isminetype IsMine(const CKeyStore &keystore, const CScript &scriptPubKey); | isminetype IsMine(const CKeyStore &keystore, const CScript &scriptPubKey); | ||||
isminetype IsMine(const CKeyStore &keystore, const CTxDestination &dest); | isminetype IsMine(const CKeyStore &keystore, const CTxDestination &dest); | ||||
#endif // BITCOIN_SCRIPT_ISMINE_H | #endif // BITCOIN_SCRIPT_ISMINE_H |