mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
bitcoin: add tx_feerate() to reverse-calculate feerate a tx paid.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -156,8 +156,8 @@ struct bitcoin_tx *commit_tx(const tal_t *ctx,
|
||||
base_fee = commit_tx_base_fee(feerate_per_kw, untrimmed,
|
||||
option_anchor_outputs);
|
||||
|
||||
SUPERVERBOSE("# base commitment transaction fee = %"PRIu64"\n",
|
||||
base_fee.satoshis /* Raw: spec uses raw numbers */);
|
||||
SUPERVERBOSE("# base commitment transaction fee = %"PRIu64" for %zu untrimmed\n",
|
||||
base_fee.satoshis /* Raw: spec uses raw numbers */, untrimmed);
|
||||
|
||||
/* BOLT #3:
|
||||
* If `option_anchors` applies to the commitment
|
||||
|
||||
Reference in New Issue
Block a user