-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: automatically adjust fee rate #999
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do a rebase and try to pass the CI?
and automatically reset submission txs when a block cannot be confirmed for an extended period of time.
@@ -180,14 +181,25 @@ pub struct PscConfig { | |||
pub submitted_limit: u64, | |||
/// Minimum delay between blocks. Default is 8 seconds. | |||
pub block_interval_secs: u64, | |||
pub min_fee_rate: u64, | |||
pub max_fee_rate: u64, | |||
pub fee_rate_pid: Option<Pid<f64>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have a tested config example for fee_rate_pid?
@sopium
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The sim program outputs PID params on exit, e.g.:
setpoint = 0.6
output_limit = 1.0
kp = -0.8
ki = -0.08
kd = 0.0
p_limit = 1.0
i_limit = 1.0
d_limit = 0.0
integral_term = -1.0
and automatically reset submission txs when a block cannot be confirmed for an extended period of time.
Manually tested by altering ckb-miner parameters in kicker.