API support for updating node configuration online
#3,361 opened on 2022年10月28日
Repository metrics
- Stars
- (3,063 stars)
- PR merge metrics
- (PR metrics pending)
説明
Is your feature request related to a problem? Please describe. No
Describe the solution you'd like
It would be nice to have an API endpoint to update node configuration on-the-fly (online), specifically for miners, and more specifically the satoshis_per_byte and burn_fee_cap parameters. Since (as I've understood it) there is a penalty of 6 blocks for miners who have just joined. An API endpoint would be preferred over command-line commands so that it can be scripted (eventually from a separate machine/VM/container responsible for strategy calculations).
Describe alternatives you've considered At the moment (again, if I've understood correctly) restarting a mining node will incur a penalty of 6 blocks. While I don't see any practical alternatives at the moment (except somehow scripting an RBF for every transaction once the node has started..), another possible solution would be to allow nodes to disappear for [x amount of] time (minutes?), to allow for node updates/config updates without penalty. This might actually be the fairest in the long run, as node updates should be encouraged and not penalized (maybe not necessarily related to this feature request).
Additional context
The documentation was slightly unclear when it comes to the satoshis_per_byte configuration parameter, and I was quite surprised when I was paying $7/commitment in just fees. I then set this manually according to current bitcoin fees, but if fees were to rise I want to be able to control the node with my own logic, and not be penalized for restarting the node to read new configuration.