MCPcopy Create free account
hub / github.com/ElementsProject/lightning / payment_hash_eq

Function payment_hash_eq

plugins/renepay/payment.h:91–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91static 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
104HTABLE_DEFINE_NODUPS_TYPE(struct payment, payment_hash, payment_hash64,
105 payment_hash_eq,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected