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

Function debug_dump

common/splice_script.c:208–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208static struct splice_script_error *debug_dump(const tal_t *ctx,
209 struct token **tokens)
210{
211 struct splice_script_error *error = tal(ctx,
212 struct splice_script_error);
213
214 error->type = DEBUG_DUMP;
215 error->script_index = 0;
216 error->message = tal_strdup(error, "");
217
218 for (size_t i = 0; i < tal_count(tokens); i++)
219 dump_token(&error->message, tokens[i], 0, "- ");
220
221 return error;
222}
223#endif /* SCRIPT_DUMP_TOKENS */
224
225#if SCRIPT_DUMP_SEGMENTS

Callers 1

parse_splice_scriptFunction · 0.85

Calls 1

dump_tokenFunction · 0.85

Tested by

no test coverage detected