pubkey: update comment to reflect location

This commit is contained in:
niftynei
2020-07-22 21:08:58 -05:00
committed by Rusty Russell
parent 3923e0f0fd
commit 0651b0ed8a

View File

@@ -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;