mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-06-17 10:51:22 +08:00
plumb through new config option max_rbf
This commit is contained in:
@@ -1032,9 +1032,14 @@ impl BitcoinRegtestController {
|
||||
}
|
||||
}
|
||||
|
||||
// Stop as soon as the fee_rate is 1.50 higher, stop RBF
|
||||
if ongoing_op.fees.fee_rate > (self.config.burnchain.satoshis_per_byte * 150 / 100) {
|
||||
warn!("RBF'd block commits reached 1.5x satoshi per byte fee rate, not resubmitting");
|
||||
// Stop as soon as the fee_rate is ${self.config.burnchain.max_rbf} percent higher, stop RBF
|
||||
if ongoing_op.fees.fee_rate
|
||||
> (self.config.burnchain.satoshis_per_byte * self.config.burnchain.max_rbf / 100)
|
||||
{
|
||||
warn!(
|
||||
"RBF'd block commits reached {}% satoshi per byte fee rate, not resubmitting",
|
||||
self.config.burnchain.max_rbf
|
||||
);
|
||||
self.ongoing_block_commit = Some(ongoing_op);
|
||||
return None;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user