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

Function ds_blockheight_path

plugins/bkpr/blockheights.c:55–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55static const char **ds_blockheight_path(const tal_t *ctx,
56 const struct bitcoin_txid *txid)
57{
58 /* Keys like: bookkeeper/blockheights/<txid> */
59 return mkdatastorekey(ctx,
60 "bookkeeper", "blockheights",
61 take(fmt_bitcoin_txid(NULL, txid)));
62}
63
64void add_blockheight(struct command *cmd,
65 struct bkpr *bkpr,

Callers 1

add_blockheightFunction · 0.85

Calls 1

fmt_bitcoin_txidFunction · 0.85

Tested by

no test coverage detected