mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-04 06:44:24 +01:00
pay: split into getroute and sendpay
This is less convenient to use, but makes far more sense for a real user (like a wallet). It can ask about the route, then decide whether to use it or not. This will make even more sense once we add a parameter to control how long we let the HTLC be delayed for, so a client can query for high, medium and low tolerances and compare results. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -96,11 +96,13 @@ int main(int argc, char *argv[])
|
||||
method, idstr);
|
||||
|
||||
for (i = 2; i < argc; i++) {
|
||||
/* Numbers and bools are left unquoted,
|
||||
/* Numbers, bools, objects and arrays are left unquoted,
|
||||
* and quoted things left alone. */
|
||||
if (strspn(argv[i], "0123456789") == strlen(argv[i])
|
||||
|| streq(argv[i], "true")
|
||||
|| streq(argv[i], "false")
|
||||
|| argv[i][0] == '{'
|
||||
|| argv[i][0] == '['
|
||||
|| argv[i][0] == '"')
|
||||
tal_append_fmt(&cmd, "%s", argv[i]);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user