Persist feature bits across restarts

[ Whitespace fix and remove gratuitous tal_free(peer->their_features) -- RR ]
This commit is contained in:
Greg Sanders
2023-06-05 12:17:36 -04:00
committed by Rusty Russell
parent 9f1e1ada2a
commit e125640f43
7 changed files with 54 additions and 23 deletions

View File

@@ -73,6 +73,7 @@ struct peer *find_peer_by_dbid(struct lightningd *ld, u64 dbid);
struct peer *new_peer(struct lightningd *ld, u64 dbid,
const struct node_id *id,
const struct wireaddr_internal *addr,
const u8 *their_features,
bool connected_incoming);
/* Last one out deletes peer. Also removes from db. */