Bitcoin Core  28.1.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 
13 
14 #ifndef BITCOIN_WALLET_TYPES_H
15 #define BITCOIN_WALLET_TYPES_H
16 
17 #include <type_traits>
18 
19 namespace wallet {
41 enum isminetype : unsigned int {
42  ISMINE_NO = 0,
44  ISMINE_SPENDABLE = 1 << 1,
45  ISMINE_USED = 1 << 2,
49 };
51 using isminefilter = std::underlying_type<isminetype>::type;
52 
61 enum class AddressPurpose {
62  RECEIVE,
63  SEND,
64  REFUND,
65 };
66 } // namespace wallet
67 
68 #endif // BITCOIN_WALLET_TYPES_H
Never set in current code may be present in older wallet databases.
AddressPurpose
Address purpose field that has been been stored with wallet sending and receiving addresses since BIP...
Definition: types.h:61
std::underlying_type< isminetype >::type isminefilter
used for bitflags of isminetype
Definition: wallet.h:48
isminetype
IsMine() return codes, which depend on ScriptPubKeyMan implementation.
Definition: types.h:41