Browse Source

pubkey: update comment to reflect location

bump-pyln-proto
niftynei 4 years ago
committed by Rusty Russell
parent
commit
0651b0ed8a
  1. 2
      bitcoin/pubkey.h

2
bitcoin/pubkey.h

@ -45,7 +45,7 @@ void pubkey_to_der(u8 der[PUBKEY_CMPR_LEN], const struct pubkey *key);
/* Compare the keys `a` and `b`. Return <0 if `a`<`b`, 0 if equal and >0 otherwise */
int pubkey_cmp(const struct pubkey *a, const struct pubkey *b);
/* If the two nodes[] are id1 and id2, which index would id1 be? */
/* If the two pubkeys[] are id1 and id2, which index would id1 be? */
static inline int pubkey_idx(const struct pubkey *id1, const struct pubkey *id2)
{
return pubkey_cmp(id1, id2) > 0;

Loading…
Cancel
Save