MCPcopy Create free account
hub / github.com/ElementsProject/lightning / give_progress

Function give_progress

wallet/account_migration.c:91–99  ·  view source on GitHub ↗

Every 10 seconds, give progress indication */

Source from the content-addressed store, hash-verified

89
90/* Every 10 seconds, give progress indication */
91static bool give_progress(struct timemono *prev)
92{
93 struct timemono now = time_mono();
94 if (time_to_sec(timemono_between(now, *prev)) >= 10) {
95 *prev = now;
96 return true;
97 }
98 return false;
99}
100
101static struct chain_event *stmt2chain_event(const tal_t *ctx, struct db_stmt *stmt)
102{

Callers 1

migrate_from_account_dbFunction · 0.85

Calls 3

time_monoFunction · 0.85
time_to_secFunction · 0.85
timemono_betweenFunction · 0.85

Tested by

no test coverage detected