From 87a14749eed8bc388cc26f3478364128b07138ef Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Sun, 31 Mar 2024 22:04:08 +0200 Subject: [PATCH] fixup! pay: Base the CLTV calculations on the networkheight --- plugins/libplugin-pay.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/libplugin-pay.c b/plugins/libplugin-pay.c index d92d2393384d..fd12798b3670 100644 --- a/plugins/libplugin-pay.c +++ b/plugins/libplugin-pay.c @@ -289,6 +289,11 @@ payment_getblockheight_success(struct command *cmd, const char *buffer, if (err) { plugin_err(cmd->plugin, "error calling waitblockheight: %s", err); + } else if (cmd) { + plugin_log(cmd->plugin, LOG_DBG, + "waitblockheight reports blockheight=%d and " + "networkblockheight=%d", + blockheight, networkheight); } plugin_log( cmd->plugin, LOG_DBG,