From 4a4184be7090559cac3a0bdd23193ab023f6142a Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Wed, 18 Dec 2019 19:41:01 +0100 Subject: [PATCH] db: Add numeric data_version counter to count modifying transactions This counter is incremented on each dirty transaction. --- wallet/db.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wallet/db.c b/wallet/db.c index 811fd29fe..ea67b4f15 100644 --- a/wallet/db.c +++ b/wallet/db.c @@ -589,6 +589,7 @@ static struct migration dbmigrations[] = { " SELECT id, 11, local_feerate_per_kw FROM channels WHERE funder = 1 and local_feerate_per_kw != remote_feerate_per_kw;"), NULL}, /* FIXME: Remove now-unused local_feerate_per_kw and remote_feerate_per_kw from channels */ + {SQL("INSERT INTO vars (name, intval) VALUES ('data_version', 0);"), NULL}, }; /* Leak tracking. */