@@ -86,18 +86,40 @@ pub const OP_TX_ANY_ESTIM_SIZE: u64 = fmax!(
86
86
OP_TX_VOTE_AGG_ESTIM_SIZE
87
87
) ;
88
88
89
+ /// Default maximum percentage of `satoshis_per_byte` that a Bitcoin fee rate
90
+ /// may be increased to when RBFing a transaction
89
91
const DEFAULT_MAX_RBF_RATE : u64 = 150 ; // 1.5x
92
+ /// Amount to increment the fee by, in Sats/vByte, when RBFing a Bitcoin
93
+ /// transaction
90
94
const DEFAULT_RBF_FEE_RATE_INCREMENT : u64 = 5 ;
95
+ /// Default number of reward cycles of blocks to sync in a non-full inventory
96
+ /// sync
91
97
const INV_REWARD_CYCLES_TESTNET : u64 = 6 ;
98
+ /// Default minimum time to wait between mining blocks in milliseconds. The
99
+ /// value must be greater than or equal to 1000 ms because if a block is mined
100
+ /// within the same second as its parent, it will be rejected by the signers.
92
101
const DEFAULT_MIN_TIME_BETWEEN_BLOCKS_MS : u64 = 1_000 ;
102
+ /// Default time in milliseconds to pause after receiving the first threshold
103
+ /// rejection, before proposing a new block.
93
104
const DEFAULT_FIRST_REJECTION_PAUSE_MS : u64 = 5_000 ;
105
+ /// Default time in milliseconds to pause after receiving subsequent threshold
106
+ /// rejections, before proposing a new block.
94
107
const DEFAULT_SUBSEQUENT_REJECTION_PAUSE_MS : u64 = 10_000 ;
108
+ /// Default time in milliseconds to wait for a Nakamoto block after seeing a
109
+ /// burnchain block before submitting a block commit.
95
110
const DEFAULT_BLOCK_COMMIT_DELAY_MS : u64 = 20_000 ;
111
+ /// Default percentage of the remaining tenure cost limit to consume each block
96
112
const DEFAULT_TENURE_COST_LIMIT_PER_BLOCK_PERCENTAGE : u8 = 25 ;
113
+ /// Default number of seconds to wait in-between polling the sortition DB to
114
+ /// see if we need to extend the ongoing tenure (e.g. because the current
115
+ /// sortition is empty or invalid).
97
116
const DEFAULT_TENURE_EXTEND_POLL_SECS : u64 = 1 ;
98
-
99
- // This should be greater than the signers' timeout. This is used for issuing fallback tenure extends
117
+ /// Default duration to wait before attempting to issue a tenure extend.
118
+ /// This should be greater than the signers' timeout. This is used for issuing
119
+ /// fallback tenure extends
100
120
const DEFAULT_TENURE_TIMEOUT_SECS : u64 = 180 ;
121
+ /// Default percentage of block budget that must be used before attempting a
122
+ /// time-based tenure extend
101
123
const DEFAULT_TENURE_EXTEND_COST_THRESHOLD : u64 = 50 ;
102
124
103
125
static HELIUM_DEFAULT_CONNECTION_OPTIONS : LazyLock < ConnectionOptions > =
@@ -1192,9 +1214,13 @@ pub struct BurnchainConfig {
1192
1214
pub process_exit_at_block_height : Option < u64 > ,
1193
1215
pub poll_time_secs : u64 ,
1194
1216
pub satoshis_per_byte : u64 ,
1217
+ /// Maximum percentage of `satoshis_per_byte` that a Bitcoin fee rate may
1218
+ /// be increased to when RBFing a transaction
1195
1219
pub max_rbf : u64 ,
1196
1220
pub leader_key_tx_estimated_size : u64 ,
1197
1221
pub block_commit_tx_estimated_size : u64 ,
1222
+ /// Amount to increment the fee by, in Sats/vByte, when RBFing a Bitcoin
1223
+ /// transaction
1198
1224
pub rbf_fee_increment : u64 ,
1199
1225
pub first_burn_block_height : Option < u64 > ,
1200
1226
pub first_burn_block_timestamp : Option < u32 > ,
0 commit comments