coin moves: persist the coin movement index counter to disk

Should make it easier to track when coin moves in the plugin are
disjoint from what c-lightning says it's broadcast already.
This commit is contained in:
lisa neigut
2020-04-03 18:58:04 -05:00
committed by Rusty Russell
parent 44f747b29a
commit ffd9467f14
10 changed files with 77 additions and 15 deletions

View File

@@ -268,6 +268,10 @@ struct lightningd {
alt_subdaemon_map alt_subdaemons;
enum lightningd_state state;
/* Total number of coin moves we've seen, since
* coin move tracking was cool */
s64 coin_moves_count;
};
/* Turning this on allows a tal allocation to return NULL, rather than aborting.