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

Function routekey_equal

plugins/renepay/route.h:109–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109static inline bool routekey_equal(const struct route *route,
110 const struct routekey *k)
111{
112 return route->key.partid == k->partid &&
113 route->key.groupid == k->groupid &&
114 sha256_eq(&route->key.payment_hash, &k->payment_hash);
115}
116
117HTABLE_DEFINE_NODUPS_TYPE(struct route, route_get_key, routekey_hash, routekey_equal,
118 route_map);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected