mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 07:34:21 +01:00
json_tok_len, json_tok_contents: rename to json_tok_full_len and json_tok_full
These are only supposed to be used when you want the token contents including surrounding "". We should use this when reporting errors, but usually we just want to access the tok members directly. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -646,8 +646,8 @@ static bool process_getblock(struct bitcoin_cli *bcli)
|
||||
&txid))
|
||||
fatal("%s: had bad txid (%.*s)?",
|
||||
bcli_args(tmpctx, bcli),
|
||||
txidtok->end - txidtok->start,
|
||||
bcli->output + txidtok->start);
|
||||
json_tok_full_len(txidtok),
|
||||
json_tok_full(bcli->output, txidtok));
|
||||
|
||||
go->cb = cb;
|
||||
/* Now get the raw tx output. */
|
||||
|
||||
Reference in New Issue
Block a user