pay: Use the total_mast amount as the upper limit for channel_hints

This commit is contained in:
Christian Decker
2024-07-25 17:40:58 +02:00
parent 1eb878be82
commit 5225218094
6 changed files with 62 additions and 25 deletions

View File

@@ -91,6 +91,10 @@ struct channel_hint {
/* Non-null if we are one endpoint of this channel */
struct local_hint *local;
/* The total `amount_msat` that were used to fund the
* channel. This is always smaller gte the
* estimated_capacity */
struct amount_msat overall_capacity;
};
/* Each payment goes through a number of steps that are always processed in