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

Function dbid_hash

lightningd/peer_control.h:206–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204 peer_node_id_map);
205
206static inline size_t dbid_hash(u64 dbid)
207{
208 return siphash24(siphash_seed(), &dbid, sizeof(dbid));
209}
210
211static u64 peer_dbid(const struct peer *peer)
212{

Callers

nothing calls this directly

Calls 2

siphash24Function · 0.85
siphash_seedClass · 0.50

Tested by

no test coverage detected