File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 14
14
class CWallet ;
15
15
class CScript ;
16
16
17
- /* * IsMine() return codes */
17
+ /* *
18
+ * IsMine() return codes, which depend on ScriptPubKeyMan implementation.
19
+ * Not every ScriptPubKeyMan covers all types, please refer to
20
+ * https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-0.21.0.md#ismine-semantics
21
+ * for better understanding.
22
+ *
23
+ * For LegacyScriptPubKeyMan,
24
+ * ISMINE_NO: the scriptPubKey is not in the wallet;
25
+ * ISMINE_WATCH_ONLY: the scriptPubKey has been imported into the wallet;
26
+ * ISMINE_SPENDABLE: the scriptPubKey corresponds to an address owned by the wallet user (can spend with the private key);
27
+ * ISMINE_USED: the scriptPubKey corresponds to a used address owned by the wallet user;
28
+ * ISMINE_ALL: all ISMINE flags except for USED;
29
+ * ISMINE_ALL_USED: all ISMINE flags including USED;
30
+ * ISMINE_ENUM_ELEMENTS: the number of isminetype enum elements.
31
+ *
32
+ * For DescriptorScriptPubKeyMan and future ScriptPubKeyMan,
33
+ * ISMINE_NO: the scriptPubKey is not in the wallet;
34
+ * ISMINE_SPENDABLE: the scriptPubKey matches a scriptPubKey in the wallet.
35
+ * ISMINE_USED: the scriptPubKey corresponds to a used address owned by the wallet user.
36
+ *
37
+ */
18
38
enum isminetype : unsigned int
19
39
{
20
40
ISMINE_NO = 0 ,
You can’t perform that action at this time.
0 commit comments