Skip to content

Commit

Permalink
fixup! fixup! pay: Use the total_mast amount as the upper limit for c…
Browse files Browse the repository at this point in the history
…hannel_hints
  • Loading branch information
cdecker committed Jul 31, 2024
1 parent f66bad9 commit 92b6cc1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
3 changes: 2 additions & 1 deletion plugins/test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ plugins/test/run-route-overlong: \
common/fp16.o \
common/gossmap.o \
common/node_id.o \
common/route.o
common/route.o \
gossipd/gossip_store_wiregen.o

plugins/test/run-route-calc: \
common/fp16.o \
Expand Down
13 changes: 10 additions & 3 deletions plugins/test/run-route-overlong.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <common/gossip_store.h>
#include <common/setup.h>
#include <common/utils.h>
#include <gossipd/gossip_store_wiregen.h>
#include <stdio.h>
#include <unistd.h>

Expand Down Expand Up @@ -372,10 +373,16 @@ static void add_connection(int store_fd,
ids[0], ids[1],
&dummy_key, &dummy_key);
write_to_store(store_fd, msg);
tal_free(msg);

update_connection(store_fd, from, to, scid, min, max,
base_fee, proportional_fee,
delay, false);
/* Also needs a hint as to the funding size. */
struct amount_sat capacity = AMOUNT_SAT(100000000);
msg = towire_gossip_store_channel_amount(tmpctx, capacity);
write_to_store(store_fd, msg);
tal_free(msg);

update_connection(store_fd, from, to, scid, min, max, base_fee,
proportional_fee, delay, false);
}

static void node_id_from_privkey(const struct privkey *p, struct node_id *id)
Expand Down

0 comments on commit 92b6cc1

Please sign in to comment.