mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 17:14:22 +01:00
paymod: Add a log entry whenever we add a channel hint
Mainly used for testing so we make sure we exclude or constrain the correct channels. Test to follow.
This commit is contained in:
committed by
Rusty Russell
parent
0ca2c6b9f3
commit
e1c6b977b4
@@ -619,6 +619,14 @@ static void channel_hints_update(struct payment *root,
|
|||||||
hint.scid.dir = direction;
|
hint.scid.dir = direction;
|
||||||
hint.estimated_capacity = estimated_capacity;
|
hint.estimated_capacity = estimated_capacity;
|
||||||
tal_arr_expand(&root->channel_hints, hint);
|
tal_arr_expand(&root->channel_hints, hint);
|
||||||
|
|
||||||
|
plugin_log(
|
||||||
|
root->plugin, LOG_DBG,
|
||||||
|
"Added a channel hint for %s: enabled %s, estimated capacity %s",
|
||||||
|
type_to_string(tmpctx, struct short_channel_id_dir, &hint.scid),
|
||||||
|
hint.enabled ? "true" : "false",
|
||||||
|
type_to_string(tmpctx, struct amount_msat,
|
||||||
|
&hint.estimated_capacity));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Try to infer the erring_node, erring_channel and erring_direction from what
|
/* Try to infer the erring_node, erring_channel and erring_direction from what
|
||||||
|
|||||||
Reference in New Issue
Block a user