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

Function our_addresses_init

wallet/wallet.c:160–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160static void our_addresses_init(struct wallet *w)
161{
162 w->our_addresses_maxindex = 0;
163 w->our_addresses = new_htable(w, wallet_address_htable);
164
165 /* Prefill the address table up to keyscan_gap so rescans immediately
166 * include scripts without needing prior address allocations. */
167 for (u32 i = 0; i <= w->keyscan_gap; i++) {
168 our_addresses_add_for_index(w, i);
169 }
170 w->our_addresses_maxindex = w->keyscan_gap;
171}
172
173/* Idempotent: outpointfilter_add is a noop if it already exists. */
174static void refill_outpointfilters(struct wallet *w)

Callers 1

wallet_newFunction · 0.85

Calls 1

Tested by

no test coverage detected