From db74eaa0d9a50e9e73c320949a20f834865c1934 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Wed, 25 Jan 2023 11:16:53 -0400 Subject: [PATCH] fix: add missing waku2 store columns --- nodecfg/node_config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nodecfg/node_config.go b/nodecfg/node_config.go index 73d58fb17..04d5d174b 100644 --- a/nodecfg/node_config.go +++ b/nodecfg/node_config.go @@ -730,12 +730,14 @@ func loadNodeConfig(tx *sql.Tx) (*params.NodeConfig, error) { err = tx.QueryRow(` SELECT enabled, host, port, keep_alive_interval, light_client, full_node, discovery_limit, data_dir, - max_message_size, enable_confirmations, peer_exchange, enable_discv5, udp_port, auto_update + max_message_size, enable_confirmations, peer_exchange, enable_discv5, udp_port, auto_update, + enable_store, store_capacity, store_seconds FROM wakuv2_config WHERE synthetic_id = 'id' `).Scan( &nodecfg.WakuV2Config.Enabled, &nodecfg.WakuV2Config.Host, &nodecfg.WakuV2Config.Port, &nodecfg.WakuV2Config.KeepAliveInterval, &nodecfg.WakuV2Config.LightClient, &nodecfg.WakuV2Config.FullNode, &nodecfg.WakuV2Config.DiscoveryLimit, &nodecfg.WakuV2Config.DataDir, &nodecfg.WakuV2Config.MaxMessageSize, &nodecfg.WakuV2Config.EnableConfirmations, &nodecfg.WakuV2Config.PeerExchange, &nodecfg.WakuV2Config.EnableDiscV5, &nodecfg.WakuV2Config.UDPPort, &nodecfg.WakuV2Config.AutoUpdate, + &nodecfg.WakuV2Config.EnableStore, &nodecfg.WakuV2Config.StoreCapacity, &nodecfg.WakuV2Config.StoreSeconds, ) if err != nil && err != sql.ErrNoRows { return nil, err