libplugin-pay: make sure get_gossmap calls are balanced by put_gossmap.

This will become important when we apply localmods to the gossmap at these points.

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

View File

@@ -1307,4 +1307,5 @@ int main(int argc, char *argv[])
"Disable multi-part payments.",
flag_option, &disablempp),
NULL);
io_poll_override(libplugin_pay_poll);
}