| 100 | } |
| 101 | |
| 102 | void 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 | |
| 114 | bool outpointfilter_matches(struct outpointfilter *of, |
| 115 | const struct bitcoin_outpoint *outpoint) |
no test coverage detected