mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
funder: subtract the fee of the utxo from the available amount
Adjust our total available funds downward, to account for the fees we'll be charged to spend them.
This commit is contained in:
@@ -213,9 +213,6 @@ calculate_our_funding(struct funder_policy policy,
|
||||
if (amount_sat_greater(our_funding, policy.per_channel_max))
|
||||
our_funding = policy.per_channel_max;
|
||||
|
||||
/* FIXME: net_available_funds needs to know feerate, and make
|
||||
* worst-case UTXO assumptions? */
|
||||
|
||||
/* Is our_funding more than we have available? if so
|
||||
* set to max available */
|
||||
if (amount_sat_greater(our_funding, net_available_funds))
|
||||
|
||||
Reference in New Issue
Block a user