pay: Rename overall_capacity to just capacity

Suggested-by: Rusty Russell <@rustyrussell>
This commit is contained in:
Christian Decker
2024-08-11 15:14:37 +02:00
parent 37a204df41
commit cf09314b3b
3 changed files with 15 additions and 12 deletions

View File

@@ -467,7 +467,7 @@ static void channel_hints_update(struct payment *p,
newhint.timestamp = timestamp;
newhint.scid.scid = scid;
newhint.scid.dir = direction;
newhint.overall_capacity = overall_capacity;
newhint.capacity = overall_capacity;
if (local) {
newhint.local = tal(root->channel_hints, struct local_hint);
assert(htlc_budget);
@@ -3539,7 +3539,7 @@ static void direct_pay_override(struct payment *p) {
p->route[0].scid = hint->scid.scid;
p->route[0].direction = hint->scid.dir;
p->route[0].node_id = *p->route_destination;
p->route[0].total_amount = hint->overall_capacity;
p->route[0].total_amount = hint->capacity;
paymod_log(p, LOG_DBG,
"Found a direct channel (%s) with sufficient "
"capacity, skipping route computation.",