mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 07:34:21 +01:00
param: upgraded json_tok_double
Also renamed old version to json_to_double for use as a utility funciton. Signed-off-by: Mark Beckwith <wythe@intrig.com>
This commit is contained in:
committed by
Rusty Russell
parent
bab8ff991a
commit
e5918f4e5a
@@ -33,7 +33,7 @@ bool json_to_u64(const char *buffer, const jsmntok_t *tok,
|
||||
uint64_t *num);
|
||||
|
||||
/* Extract double from this (must be a number literal) */
|
||||
bool json_tok_double(const char *buffer, const jsmntok_t *tok, double *num);
|
||||
bool json_to_double(const char *buffer, const jsmntok_t *tok, double *num);
|
||||
|
||||
/* Extract satoshis from this (may be a string, or a decimal number literal) */
|
||||
bool json_tok_bitcoin_amount(const char *buffer, const jsmntok_t *tok,
|
||||
|
||||
Reference in New Issue
Block a user