| 35 | } |
| 36 | |
| 37 | size_t outpoint_hash(const struct bitcoin_outpoint *outpoint) |
| 38 | { |
| 39 | size_t h1 = siphash24(siphash_seed(), &outpoint->txid, sizeof(outpoint->txid)); |
| 40 | size_t h2 = siphash24(siphash_seed(), &outpoint->n, sizeof(outpoint->n)); |
| 41 | return h1 ^ h2; |
| 42 | } |
| 43 | |
| 44 | bool outpoint_watch_eq(const struct watch *w, const struct bitcoin_outpoint *outpoint) |
| 45 | { |
nothing calls this directly
no test coverage detected