jsonrpc: adds optional remote_addr to listpeers

Changelog-Added: jsonrpc: adds optional `remote_addr` to listpeers
This commit is contained in:
Michael Schmoock
2022-06-01 13:18:55 +02:00
committed by Rusty Russell
parent a2b75b66ba
commit 475e4c9bd9
5 changed files with 22 additions and 2 deletions

View File

@@ -40,6 +40,9 @@ struct peer {
struct wireaddr_internal addr;
bool connected_incoming;
/* They send what they see as our address as remote_addr */
struct wireaddr *remote_addr;
/* We keep a copy of their feature bits */
const u8 *their_features;