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

Function find_blockheight

plugins/bkpr/blockheights.c:92–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92u32 find_blockheight(const struct bkpr *bkpr,
93 const struct bitcoin_txid *txid)
94{
95 const struct blockheight_entry *e;
96
97 e = blockheight_htable_get(bkpr->blockheights->map, txid);
98 return e ? e->height : 0;
99}
100
101struct blockheights *init_blockheights(const tal_t *ctx,
102 struct command *init_cmd)

Callers 1

chain_eventsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected