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

Function outpointfilters_init

wallet/wallet.c:192–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192static void outpointfilters_init(struct wallet *w)
193{
194 struct utxo **utxos = wallet_get_all_utxos(NULL, w);
195
196 w->owned_outpoints = outpointfilter_new(w);
197 for (size_t i = 0; i < tal_count(utxos); i++)
198 outpointfilter_add(w->owned_outpoints, &utxos[i]->outpoint);
199
200 tal_free(utxos);
201
202 w->utxoset_outpoints = outpointfilter_new(w);
203 refill_outpointfilters(w);
204}
205
206struct wallet *wallet_new(struct lightningd *ld, struct timers *timers)
207{

Callers 1

wallet_newFunction · 0.85

Calls 5

wallet_get_all_utxosFunction · 0.85
tal_freeFunction · 0.85
refill_outpointfiltersFunction · 0.85
outpointfilter_newFunction · 0.70
outpointfilter_addFunction · 0.70

Tested by

no test coverage detected