Skip to content

Commit 791bd39

Browse files
committed
crc: use const for default max_fee_rate, #6250
1 parent 4426fe6 commit 791bd39

File tree

1 file changed

+2
-1
lines changed
  • stacks-node/src/burnchains/rpc/bitcoin_rpc_client

1 file changed

+2
-1
lines changed

stacks-node/src/burnchains/rpc/bitcoin_rpc_client/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,8 +586,9 @@ impl BitcoinRpcClient {
586586
max_fee_rate: Option<f64>,
587587
max_burn_amount: Option<u64>,
588588
) -> BitcoinRpcClientResult<Txid> {
589+
const DEFAULT_FEE_RATE_BTC_KVB: f64 = 0.10;
589590
let tx_hex = serialize_hex(tx)?;
590-
let max_fee_rate = max_fee_rate.unwrap_or(0.10);
591+
let max_fee_rate = max_fee_rate.unwrap_or(DEFAULT_FEE_RATE_BTC_KVB);
591592
let max_burn_amount = max_burn_amount.unwrap_or(0);
592593

593594
let response = self.global_ep.send::<TxidWrapperResponse>(

0 commit comments

Comments
 (0)