-
Notifications
You must be signed in to change notification settings - Fork 895
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
Bitcoin backend: batch fee estimation requests #3570
Bitcoin backend: batch fee estimation requests #3570
Commits on Mar 27, 2020
-
onchaind: a feerate per transaction type
This allows us to set more fine-grained feerate for onchain resolution. We still give it the same feerate for all types, but this will change as we move feerates to bcli.
Configuration menu - View commit details
-
Copy full SHA for 05f6a69 - Browse repository at this point
Copy the full SHA 05f6a69View commit details -
Configuration menu - View commit details
-
Copy full SHA for cfba7cc - Browse repository at this point
Copy the full SHA cfba7ccView commit details -
chaintopology: better feerate targets differentiation
We kept track of an URGENT, a NORMAL, and a SLOW feerate. They were used for opening (NORMAL), mutual (NORMAL), UNILATERAL (URGENT) transactions as well as minimum and maximum estimations, and onchain resolution. We now keep track of more fine-grained feerates: - `opening` used for funding and also misc transactions - `mutual_close` used for the mutual close transaction - `unilateral_close` used for unilateral close (commitment transactions) - `delayed_to_us` used for resolving our output from our unilateral close - `htlc_resolution` used for resolving onchain HTLCs - `penalty` used for resolving revoked transactions We don't modify our requests to our Bitcoin backend, as the next commit will batch them ! Changelog-deprecated: The "urgent", "slow", and "normal" field of the `feerates` command are now deprecated. Changelog-added: The fields "opening", "mutual_close", "unilateral_close", "delayed_to_us", "htlc_resolution" and "penalty" have been added to the `feerates` command.
Configuration menu - View commit details
-
Copy full SHA for 45c6613 - Browse repository at this point
Copy the full SHA 45c6613View commit details -
lightning/bitcoind: adapt and batch fees estimations
This adapts our fee estimations requests to the Bitcoin backend to the new semantic, and batch the requests. This makes our request for fees much simpler, and leaves some more flexibility for a plugin to do something smart (it could still lie before but now it's explicit, at least.) as we don't explicitly request estimation for a specific mode and a target. Changelog-Changed: We now batch the requests for fee estimation to our Bitcoin backend. Changelog-Changed: We now get more fine-grained fee estimation from our Bitcoin backend.
Configuration menu - View commit details
-
Copy full SHA for a23e569 - Browse repository at this point
Copy the full SHA a23e569View commit details -
bcli: adapt interface to the new fees estimation interface
We keep the same behaviour as lightningd before.
Configuration menu - View commit details
-
Copy full SHA for a2f4c9d - Browse repository at this point
Copy the full SHA a2f4c9dView commit details -
chaintopology: Add the cost of HTLCs transactions to json_feerates
Changelog-Changed: "htlc_timeout_satoshis" and "htlc_success_satoshis" fields have been added to the `feerates` command.
Configuration menu - View commit details
-
Copy full SHA for 8b23168 - Browse repository at this point
Copy the full SHA 8b23168View commit details -
Configuration menu - View commit details
-
Copy full SHA for 54f10d2 - Browse repository at this point
Copy the full SHA 54f10d2View commit details -
bcli: register --dev-max-fee-multiplier on our side
That way we pass the real min_acceptable (SLOW/2) and max_acceptable (URGENT * 10) feerates to lightningd.
Configuration menu - View commit details
-
Copy full SHA for eff7241 - Browse repository at this point
Copy the full SHA eff7241View commit details