Skip to content

Commit

Permalink
fixup! pay: Use the total_mast amount as the upper limit for channel_…
Browse files Browse the repository at this point in the history
…hints
  • Loading branch information
cdecker committed Jul 31, 2024
1 parent d2d4abf commit f66bad9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions common/test/run-route-specific.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,13 @@ static void add_connection(int store_fd,
ids[0], ids[1],
&dummy_key, &dummy_key);
write_to_store(store_fd, msg);
tal_free(msg);

/* 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, shortid, min, max,
base_fee, proportional_fee,
Expand Down
10 changes: 8 additions & 2 deletions common/test/run-route.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <common/setup.h>
#include <common/utils.h>
#include <bitcoin/chainparams.h>
#include <gossipd/gossip_store_wiregen.h>
#include <stdio.h>
#include <wire/peer_wiregen.h>
#include <unistd.h>
Expand Down Expand Up @@ -129,8 +130,13 @@ static void add_connection(int store_fd,
&dummy_key, &dummy_key);
write_to_store(store_fd, msg);

update_connection(store_fd, from, to, 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, base_fee, proportional_fee, delay,
false);
}

static bool channel_is_between(const struct gossmap *gossmap,
Expand Down

0 comments on commit f66bad9

Please sign in to comment.