Commit graph

21 commits

Author SHA1 Message Date
Ken Sedgwick
1a0008458f Add clboss-feerates RPC
- Register and implement the new clboss-feerates command in OnchainFeeMonitor
    - Document the command in README and note it in the changelog
    - Update RPC manifest tests to include the new command
2025-07-07 11:21:09 -07:00
Ken Sedgwick
c8cf41d423 log h2l, mid, l2h, and last_value 2024-07-16 16:02:32 -07:00
Ken Sedgwick
eab672dc16 Improve Initialization of OnchainFeeMonitor with Conservative Synthetic History
Previously, CLBOSS initialized the OnchainFeeMonitor with 2 weeks of
synthetic data collected at an arbitrary time on an unknown
system. This historical data often failed to accurately determine
low/high fee conditions until 2 weeks had passed.

This update changes the initialization to use a smaller amount of
deliberately conservative history. This approach discourages CLBOSS
from prematurely declaring a low-fee environment, while still allowing
it to recognize low fees after a few days.

The new size is designed to have 50% influence on the lower 20th
percentile after 24 hours (24 * 6 * 20% * 0.5 = 14.4). This influence
decreases over time: to 25% after two days, 10% after five days, and
continues to decay until it has no effect after two weeks.

It's important to note that CLBOSS will still function in high fee
environments to manage initial liquidity, so this change does not
impact its ability to operate effectively.
2024-07-16 16:02:32 -07:00
ZmnSCPxj jxPCSnmZ
2d491377c5 Boss/Mod/OnchainFeeMonitor.cpp: Handle long periods of minimum-feerate better. 2021-12-11 09:50:42 +08:00
ZmnSCPxj jxPCSnmZ
38c5f3431c Boss/Mod/OnchainFeeMonitor.cpp: Correct typo. 2021-08-11 18:51:34 +08:00
ZmnSCPxj jxPCSnmZ
b6541bae02 Boss/Msg/OnchainFee.hpp: Include feerate in message. 2021-08-11 18:18:05 +08:00
ZmnSCPxj jxPCSnmZ
2898c0d863 Boss/Mod/OnchainFeeMonitor.cpp: Be a little more tightwad. 2021-05-19 08:16:38 +08:00
ZmnSCPxj jxPCSnmZ
91f8f0b63a Boss/Mod/OnchainFeeMonitor.cpp: Avoid DELETE...ORDER BY, which might not be enabled on some SQLITE3 installs. 2020-11-28 19:04:16 +08:00
ZmnSCPxj jxPCSnmZ
6c1eb0077e Boss/Mod/OnchainFeeMonitor.cpp: Change to use percentile-based judgment.
Fixes: #12
2020-11-19 15:35:19 +08:00
ZmnSCPxj jxPCSnmZ
860323c0ae Boss/Mod/OnchainFeeMonitor.cpp: Add facility to get percentile data from samples table. 2020-11-19 15:21:18 +08:00
ZmnSCPxj jxPCSnmZ
ffdee43158 Boss/Mod/OnchainFeeMonitor.cpp: Load initial data. 2020-11-19 15:00:58 +08:00
ZmnSCPxj jxPCSnmZ
ef427a7b82 Boss/Mod/OnchainFeeMonitor.cpp: Also move initial fee judgment to background, to prevent blocking of init. 2020-11-10 22:32:00 +08:00
ZmnSCPxj jxPCSnmZ
c52c79af56 Boss/Mod/OnchainFeeMonitor.cpp: Save feerates in database.
This is in preparation for #12.
For now, just save it so we can get data we can hardcode to initialize
future CLBOSS versions.
2020-11-04 15:21:09 +08:00
ZmnSCPxj jxPCSnmZ
41bd7bc6af *: Silence clang warnings. 2020-11-02 19:02:35 +08:00
ZmnSCPxj jxPCSnmZ
4ef7ee9408 Boss/Mod/OnchainFeeMonitor.cpp: Add missing update to last_feerate_perkw in periodic handler. 2020-10-10 18:14:14 +08:00
ZmnSCPxj jxPCSnmZ
695d8b8b5e Boss/Mod/OnchainFeeMonitor.cpp: Use data from existing node as initial data. 2020-09-26 00:10:32 +08:00
ZmnSCPxj jxPCSnmZ
aed8b43350 Boss/Mod/: Report status of various modules. 2020-09-18 07:19:21 +08:00
ZmnSCPxj jxPCSnmZ
954bb10ceb Boss/Mod/OnchainFeeMonitor.cpp: Use 'periodic' instead of 'hourly' since this is no longer hourly. 2020-09-17 10:07:39 +08:00
ZmnSCPxj jxPCSnmZ
a99f482cec Boss/Mod/OnchainFeeMonitor.cpp: Check every 10 minutes instead of hourly. 2020-09-16 15:33:14 +08:00
ZmnSCPxj jxPCSnmZ
d8eb897517 Boss/Mod/OnchainFeeMonitor.cpp: Emit OnchainFee messages. 2020-09-15 13:26:41 +08:00
ZmnSCPxj jxPCSnmZ
371331d2db Boss/Mod/OnchainFeeMonitor.cpp: Monitor for onchain fees. 2020-09-12 19:45:37 +08:00