mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 09:04:22 +01:00
df: more descriptive error message
This commit is contained in:
@@ -533,8 +533,14 @@ static char *check_balances(const tal_t *ctx,
|
|||||||
* - the value of the funding output is incorrect
|
* - the value of the funding output is incorrect
|
||||||
*/
|
*/
|
||||||
if (!amount_sat_eq(total_funding, output_val)) {
|
if (!amount_sat_eq(total_funding, output_val)) {
|
||||||
return "total desired funding != "
|
return tal_fmt(tmpctx, "total desired funding %s != "
|
||||||
"funding output";
|
"funding output %s",
|
||||||
|
type_to_string(tmpctx,
|
||||||
|
struct amount_sat,
|
||||||
|
&total_funding),
|
||||||
|
type_to_string(tmpctx,
|
||||||
|
struct amount_sat,
|
||||||
|
&output_val));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* BOLT-78de9a79b491ae9fb84b1fdb4546bacf642dce87 #2:
|
/* BOLT-78de9a79b491ae9fb84b1fdb4546bacf642dce87 #2:
|
||||||
|
|||||||
Reference in New Issue
Block a user