1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
crateix!;
/**
| -paytxfee default
|
*/
pub const DEFAULT_PAY_TX_FEE: Amount = 0;
/**
| -fallbackfee default
|
*/
pub const DEFAULT_FALLBACK_FEE: Amount = 0;
/**
| -discardfee default
|
*/
pub const DEFAULT_DISCARD_FEE: Amount = 10000;
/**
| -mintxfee default
|
*/
pub const DEFAULT_TRANSACTION_MINFEE: Amount = 1000;
/**
| -consolidatefeerate default
|
*/
pub const DEFAULT_CONSOLIDATE_FEERATE: Amount = 10000; // 10 sat/vbyte
/**
| maximum fee increase allowed to do partial
| spend avoidance, even for nodes with
| this feature disabled by default
|
| A value of -1 disables this feature completely.
|
| A value of 0 (current default) means
| to attempt to do partial spend avoidance,
| and use its results if the fees remain
| *unchanged*
|
| A value > 0 means to do partial spend avoidance
| if the fee difference against a regular
| coin selection instance is in the range
| [0..value].
|
*/
pub const DEFAULT_MAX_AVOIDPARTIALSPEND_FEE: Amount = 0;
/**
| discourage APS fee higher than this
| amount
|
*/
pub const HIGH_APS_FEE: Amount = ;
/**
| minimum recommended increment for
| BIP 125 replacement txs
|
*/
pub const WALLET_INCREMENTAL_RELAY_FEE: Amount = 5000;
/**
| Default for -spendzeroconfchange
|
*/
pub const DEFAULT_SPEND_ZEROCONF_CHANGE: bool = true;
/**
| Default for -walletrejectlongchains
|
*/
pub const DEFAULT_WALLET_REJECT_LONG_CHAINS: bool = false;
/**
| -txconfirmtarget default
|
*/
pub const DEFAULT_TX_CONFIRM_TARGET: u32 = 6;
/**
| -walletrbf default
|
*/
pub const DEFAULT_WALLET_RBF: bool = false;
pub const DEFAULT_WALLETBROADCAST: bool = true;
pub const DEFAULT_DISABLE_WALLET: bool = false;
/**
-maxtxfee default
*/
pub const DEFAULT_TRANSACTION_MAXFEE: Amount = COIN / 10;
/**
| Discourage users to set fees higher
| than this amount (in satoshis) per kB
|
*/
pub const HIGH_TX_FEE_PER_KB: Amount = COIN / 100;
/**
| -maxtxfee will warn if called with a
| higher fee than this amount (in satoshis)
|
*/
pub const HIGH_MAX_TX_FEE: Amount = 100 * HIGH_TX_FEE_PER_KB;
/**
| Pre-calculated constants for input
| size estimation in *virtual size*
|
*/
pub const DUMMY_NESTED_P2WPKH_INPUT_SIZE: usize = 91;
/**
| Default for -addresstype
|
*/
pub const DEFAULT_ADDRESS_TYPE: OutputType = BECH32;