| 6 | #include <wallet/wallet.h> |
| 7 | |
| 8 | static size_t outpoint_hash(const struct bitcoin_outpoint *out) |
| 9 | { |
| 10 | struct siphash24_ctx ctx; |
| 11 | siphash24_init(&ctx, siphash_seed()); |
| 12 | siphash24_update(&ctx, &out->txid, sizeof(out->txid)); |
| 13 | siphash24_u32(&ctx, out->n); |
| 14 | return siphash24_done(&ctx); |
| 15 | } |
| 16 | |
| 17 | static const struct bitcoin_outpoint *outpoint_keyof(const struct bitcoin_outpoint *out) |
| 18 | { |
nothing calls this directly
no test coverage detected