mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-09 09:04:25 +01:00
waitsendpay: indicate which channel direction the error was.
You can figure this yourself by knowing the route, but it's better to report it directly here. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
c0cfddfa95
commit
be64dd84ca
@@ -45,6 +45,12 @@ void pubkey_to_der(u8 der[PUBKEY_DER_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? */
|
||||
static inline int pubkey_idx(const struct pubkey *id1, const struct pubkey *id2)
|
||||
{
|
||||
return pubkey_cmp(id1, id2) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* pubkey_to_hash160 - Get the hash for p2pkh payments for a given pubkey
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user