mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
common: expose node_id_hash functions.
They're used in several places, and we're about to add more. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Alex Myers
parent
0faa8397c3
commit
6a95d3a25e
@@ -98,11 +98,6 @@ static const struct node_id *node_cache_id(const struct node_id_cache *nc)
|
||||
return &nc->node_id;
|
||||
}
|
||||
|
||||
static size_t node_id_hash(const struct node_id *id)
|
||||
{
|
||||
return siphash24(siphash_seed(), id->k, sizeof(id->k));
|
||||
}
|
||||
|
||||
static bool node_id_cache_eq(const struct node_id_cache *nc,
|
||||
const struct node_id *node_id)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user