Browse Source

db: Add numeric data_version counter to count modifying transactions

This counter is incremented on each dirty transaction.
travis-debug
Christian Decker 5 years ago
committed by neil saitug
parent
commit
4a4184be70
  1. 1
      wallet/db.c

1
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. */

Loading…
Cancel
Save