| 81 | } |
| 82 | |
| 83 | size_t txo_hash(const struct bitcoin_outpoint *out) |
| 84 | { |
| 85 | /* This hash-in-one-go trick only works if they're consecutive. */ |
| 86 | BUILD_ASSERT(offsetof(struct bitcoin_outpoint, n) |
| 87 | == sizeof(((struct bitcoin_outpoint *)NULL)->txid)); |
| 88 | return siphash24(siphash_seed(), out, |
| 89 | sizeof(out->txid) + sizeof(out->n)); |
| 90 | } |
| 91 | |
| 92 | bool txowatch_eq(const struct txowatch *w, const struct bitcoin_outpoint *out) |
| 93 | { |
nothing calls this directly
no test coverage detected