| 89 | } |
| 90 | |
| 91 | static inline bool payment_hash_eq(const struct payment *p, |
| 92 | const struct sha256 h) |
| 93 | { |
| 94 | return p->payment_info.payment_hash.u.u32[0] == h.u.u32[0] && |
| 95 | p->payment_info.payment_hash.u.u32[1] == h.u.u32[1] && |
| 96 | p->payment_info.payment_hash.u.u32[2] == h.u.u32[2] && |
| 97 | p->payment_info.payment_hash.u.u32[3] == h.u.u32[3] && |
| 98 | p->payment_info.payment_hash.u.u32[4] == h.u.u32[4] && |
| 99 | p->payment_info.payment_hash.u.u32[5] == h.u.u32[5] && |
| 100 | p->payment_info.payment_hash.u.u32[6] == h.u.u32[6] && |
| 101 | p->payment_info.payment_hash.u.u32[7] == h.u.u32[7]; |
| 102 | } |
| 103 | |
| 104 | HTABLE_DEFINE_NODUPS_TYPE(struct payment, payment_hash, payment_hash64, |
| 105 | payment_hash_eq, |
nothing calls this directly
no outgoing calls
no test coverage detected