MCPcopy Create free account
hub / github.com/ElementsProject/lightning / is_valid_nonzero_amount

Function is_valid_nonzero_amount

common/splice_script.c:2057–2063  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2055}
2056
2057static bool is_valid_nonzero_amount(struct token *token)
2058{
2059 if (token->type == TOK_SATS && amount_sat_is_zero(token->amount_sat))
2060 return false;
2061
2062 return is_valid_amount(token);
2063}
2064
2065static bool valid_channel_id(struct channel_id *chan_id,
2066 struct splice_script_chan **channels)

Callers 1

validate_and_cleanFunction · 0.85

Calls 2

amount_sat_is_zeroFunction · 0.85
is_valid_amountFunction · 0.85

Tested by

no test coverage detected