commit_tx: make fee msat vs sat explicit.

Suggested-by: @niftynei
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-12-15 10:39:45 +10:30
committed by Christian Decker
parent a8e0e1709a
commit 72b68845ca
6 changed files with 19 additions and 13 deletions

View File

@@ -92,7 +92,7 @@ struct bitcoin_tx *initial_commit_tx(const tal_t *ctx,
* 2. Calculate the base [commitment transaction
* fee](#fee-calculation).
*/
base_fee_msat = commit_tx_base_fee(feerate_per_kw, untrimmed) * 1000;
base_fee_msat = commit_tx_base_fee_msat(feerate_per_kw, untrimmed);
/* BOLT #3:
*