Bitcoin Core  27.99.0
P2P Digital Currency
types.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2021 The Bitcoin Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
12 
13 #ifndef BITCOIN_WALLET_TYPES_H
14 #define BITCOIN_WALLET_TYPES_H
15 
16 #include <type_traits>
17 
18 namespace wallet {
40 enum isminetype : unsigned int {
41  ISMINE_NO = 0,
43  ISMINE_SPENDABLE = 1 << 1,
44  ISMINE_USED = 1 << 2,
48 };
50 using isminefilter = std::underlying_type<isminetype>::type;
51 
60 enum class AddressPurpose {
61  RECEIVE,
62  SEND,
63  REFUND,
64 };
65 } // namespace wallet
66 
67 #endif // BITCOIN_WALLET_TYPES_H
std::underlying_type< isminetype >::type isminefilter
used for bitflags of isminetype
Definition: wallet.h:43
isminetype
IsMine() return codes, which depend on ScriptPubKeyMan implementation.
Definition: types.h:40
@ ISMINE_USED
Definition: types.h:44
@ ISMINE_NO
Definition: types.h:41
@ ISMINE_SPENDABLE
Definition: types.h:43
@ ISMINE_WATCH_ONLY
Definition: types.h:42
@ ISMINE_ALL
Definition: types.h:45
@ ISMINE_ALL_USED
Definition: types.h:46
@ ISMINE_ENUM_ELEMENTS
Definition: types.h:47
AddressPurpose
Address purpose field that has been been stored with wallet sending and receiving addresses since BIP...
Definition: types.h:60
@ REFUND
Never set in current code may be present in older wallet databases.