Bitcoin Core
31.1.0
P2P Digital Currency
Toggle main menu visibility
Loading...
Searching...
No Matches
src
wallet
types.h
Go to the documentation of this file.
1
// Copyright (c) 2009-2010 Satoshi Nakamoto
2
// Copyright (c) 2009-present 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 <
policy/fees/block_policy_estimator.h
>
18
19
namespace
wallet
{
28
enum class
AddressPurpose
{
29
RECEIVE
,
30
SEND
,
31
REFUND
,
32
};
33
34
struct
CreatedTransactionResult
35
{
36
CTransactionRef
tx
;
37
CAmount
fee
;
38
FeeCalculation
fee_calc
;
39
std::optional<unsigned int>
change_pos
;
40
41
CreatedTransactionResult
(
CTransactionRef
_tx,
CAmount
_fee, std::optional<unsigned int> _change_pos,
const
FeeCalculation
& _fee_calc)
42
:
tx
(_tx),
fee
(_fee),
fee_calc
(_fee_calc),
change_pos
(_change_pos) {}
43
};
44
45
}
// namespace wallet
46
47
#endif
// BITCOIN_WALLET_TYPES_H
CAmount
int64_t CAmount
Amount in satoshis (Can be negative).
Definition
amount.h:12
block_policy_estimator.h
wallet
Definition
wallet_balance.cpp:26
wallet::AddressPurpose
AddressPurpose
Address purpose field that has been been stored with wallet sending and receiving addresses since BIP...
Definition
types.h:28
wallet::AddressPurpose::REFUND
@ REFUND
Never set in current code may be present in older wallet databases.
Definition
types.h:31
wallet::AddressPurpose::RECEIVE
@ RECEIVE
Definition
types.h:29
wallet::AddressPurpose::SEND
@ SEND
Definition
types.h:30
CTransactionRef
std::shared_ptr< const CTransaction > CTransactionRef
Definition
transaction.h:403
FeeCalculation
Definition
block_policy_estimator.h:92
wallet::CreatedTransactionResult::fee
CAmount fee
Definition
types.h:37
wallet::CreatedTransactionResult::fee_calc
FeeCalculation fee_calc
Definition
types.h:38
wallet::CreatedTransactionResult::tx
CTransactionRef tx
Definition
types.h:36
wallet::CreatedTransactionResult::CreatedTransactionResult
CreatedTransactionResult(CTransactionRef _tx, CAmount _fee, std::optional< unsigned int > _change_pos, const FeeCalculation &_fee_calc)
Definition
types.h:41
wallet::CreatedTransactionResult::change_pos
std::optional< unsigned int > change_pos
Definition
types.h:39
Generated on
for Bitcoin Core by
1.17.0