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

Function onchain_fee_datastore_add

plugins/bkpr/onchain_fee.c:182–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182static void onchain_fee_datastore_add(struct command *cmd,
183 const struct onchain_fee *of)
184{
185 const char **path = ds_ofee_path(tmpctx, of->acct_name);
186 u8 *data = tal_arr(tmpctx, u8, 0);
187
188 towire_onchain_fee(&data, of);
189 jsonrpc_set_datastore_binary(cmd, path, data, tal_bytelen(data),
190 "create-or-append",
191 ignore_datastore_reply, NULL, NULL);
192}
193
194void json_add_onchain_fee(struct json_stream *out,
195 const struct bkpr *bkpr,

Callers 1

insert_chain_fees_diffFunction · 0.85

Calls 3

ds_ofee_pathFunction · 0.85
towire_onchain_feeFunction · 0.85
tal_bytelenFunction · 0.85

Tested by

no test coverage detected