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

Function new_token

common/splice_script.c:85–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83};
84
85static struct token *new_token(const tal_t *ctx, enum token_type token_type,
86 size_t script_index)
87{
88 struct token *token = tal(ctx, struct token);
89
90 token->type = token_type;
91 token->script_index = script_index;
92 token->c = 0;
93 token->str = NULL;
94 token->ppm = 0;
95 token->amount_sat = AMOUNT_SAT(0);
96 token->node_id = NULL;
97 token->chan_id = NULL;
98 token->left = NULL;
99 token->middle = NULL;
100 token->right = NULL;
101 token->flags = 0;
102
103 return token;
104}
105
106#if SCRIPT_DUMP_TOKENS || SCRIPT_DUMP_SEGMENTS
107static const char *token_type_str(enum token_type type)

Callers 8

find_arrows_and_strsFunction · 0.85
process_top_separatorsFunction · 0.85
process_2nd_separatorsFunction · 0.85
process_3rd_separatorsFunction · 0.85
resolve_channel_idsFunction · 0.85
make_segmentsFunction · 0.85
calculate_amountsFunction · 0.85
parse_splice_scriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected