amount: add 'is_zero' helper

convenience, mostly
This commit is contained in:
niftynei
2021-06-08 15:37:49 -05:00
committed by neil saitug
parent 3ae64efbe4
commit b1982f04be
5 changed files with 16 additions and 8 deletions

View File

@@ -427,7 +427,7 @@ listfunds_success(struct command *cmd,
&info->our_funding),
funding_err ? funding_err : "");
if (amount_sat_eq(info->our_funding, AMOUNT_SAT(0)))
if (amount_sat_zero(info->our_funding))
return command_hook_success(cmd);
plugin_log(cmd->plugin, LOG_DBG,