| 190 | } |
| 191 | |
| 192 | static 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 | |
| 206 | struct wallet *wallet_new(struct lightningd *ld, struct timers *timers) |
| 207 | { |
no test coverage detected