mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 20:09:18 +01:00
gossipd: handle upgrade from version 11 gossip_store
This commit is contained in:
parent
bc59bb71fa
commit
4a4da00d28
1 changed files with 3 additions and 1 deletions
|
@ -105,10 +105,12 @@ static bool append_msg(int fd, const u8 *msg, u32 timestamp,
|
|||
|
||||
/* v9 added the GOSSIP_STORE_LEN_RATELIMIT_BIT.
|
||||
* v10 removed any remaining non-htlc-max channel_update.
|
||||
* v11 mandated channel_updates use the htlc_maximum_msat field
|
||||
* v12 added the zombie flag for expired channel updates
|
||||
*/
|
||||
static bool can_upgrade(u8 oldversion)
|
||||
{
|
||||
return oldversion == 9 || oldversion == 10;
|
||||
return oldversion >= 9 && oldversion <= 11;
|
||||
}
|
||||
|
||||
static bool upgrade_field(u8 oldversion,
|
||||
|
|
Loading…
Add table
Reference in a new issue