mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-03 22:34:21 +01:00
Makefile: check for direct amount_sat/amount_msat access.
We need to do it in various places, but we shouldn't do it lightly: the primitives are there to help us get overflow handling correct. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -464,7 +464,7 @@ enum watch_result onchaind_funding_spent(struct channel *channel,
|
||||
return KEEP_WATCHING;
|
||||
}
|
||||
|
||||
feerate = fee.satoshis / measure_tx_weight(tx);
|
||||
feerate = fee.satoshis / measure_tx_weight(tx); /* Raw: reverse feerate extraction */
|
||||
if (feerate < feerate_floor())
|
||||
feerate = feerate_floor();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user