plugins/pay: use gossmods_from_listpeerchannels instead of private gossip_store records.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2023-12-13 16:05:42 +10:30
parent 3fdae99524
commit 8738d78c86
6 changed files with 92 additions and 4 deletions

View File

@@ -1300,6 +1300,8 @@ static const char *notification_topics[] = {
int main(int argc, char *argv[])
{
setup_locale();
/* We are migrated, ready for public-only gossmap! */
gossmap_public_only = true;
plugin_main(argv, init, PLUGIN_RESTARTABLE, true, NULL, commands,
ARRAY_SIZE(commands), NULL, 0, NULL, 0,
notification_topics, ARRAY_SIZE(notification_topics),