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

Function outpointfilter_add

wallet/txfilter.c:102–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102void outpointfilter_add(struct outpointfilter *of,
103 const struct bitcoin_outpoint *outpoint)
104{
105 if (outpointfilter_matches(of, outpoint))
106 return;
107 /* Have to mark the entries as notleak since they'll not be
108 * pointed to by anything other than the htable */
109 outpointset_add(of->set, notleak(tal_dup(of->set,
110 struct bitcoin_outpoint,
111 outpoint)));
112}
113
114bool outpointfilter_matches(struct outpointfilter *of,
115 const struct bitcoin_outpoint *outpoint)

Callers 5

outpointfilters_initFunction · 0.70
wallet_utxoset_addFunction · 0.70
wallet_filteredblock_addFunction · 0.70
onchain_add_utxoFunction · 0.50

Calls 1

outpointfilter_matchesFunction · 0.70

Tested by

no test coverage detected