aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_ismine.h
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2015-06-09 23:36:36 -0700
committerMatt Corallo <git@bluematt.me>2015-07-20 16:01:37 -0700
commitd3354c52d7c0c6446cad4074c1d0e04bb1b3d84e (patch)
tree610f23431c46b756b040b40feb40bb68385115a4 /src/wallet/wallet_ismine.h
parent5c17059872c9b63a1e05c7aa8aea32a03c3ec73a (diff)
Add have-pubkey distinction to ISMINE flags
This indicates that, eg, we have a public key for a key which may be used as a pay-to-pubkey-hash. It generally means that we can create a valid scriptSig except for missing private key(s) with which to create signatures.
Diffstat (limited to 'src/wallet/wallet_ismine.h')
-rw-r--r--src/wallet/wallet_ismine.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/wallet/wallet_ismine.h b/src/wallet/wallet_ismine.h
index 5b9b0e0841..12afad1751 100644
--- a/src/wallet/wallet_ismine.h
+++ b/src/wallet/wallet_ismine.h
@@ -16,8 +16,12 @@ class CScript;
enum isminetype
{
ISMINE_NO = 0,
- ISMINE_WATCH_ONLY = 1,
- ISMINE_SPENDABLE = 2,
+ //! Indicates that we dont know how to create a scriptSig that would solve this if we were given the appropriate private keys
+ ISMINE_WATCH_NOPUBKEY = 1,
+ //! Indicates that we know how to create a scriptSig that would solve this if we were given the appropriate private keys
+ ISMINE_WATCH_PUBKEY = 2,
+ ISMINE_WATCH_ONLY = ISMINE_WATCH_NOPUBKEY | ISMINE_WATCH_PUBKEY,
+ ISMINE_SPENDABLE = 4,
ISMINE_ALL = ISMINE_WATCH_ONLY | ISMINE_SPENDABLE
};
/** used for bitflags of isminetype */