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

Function db_col_time_from_nsec

wallet/wallet.c:6624–6635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6622}
6623
6624static struct timeabs db_col_time_from_nsec(struct db_stmt *stmt, const char *colname)
6625{
6626 struct timerel t;
6627 struct timeabs tabs;
6628
6629 if (db_col_is_null(stmt, colname))
6630 t = time_from_nsec(0);
6631 else
6632 t = time_from_nsec(db_col_u64(stmt, colname));
6633 tabs.ts = t.ts;
6634 return tabs;
6635}
6636
6637const char *wallet_get_rune(const tal_t *ctx, struct wallet *wallet, u64 unique_id, struct timeabs *last_used)
6638{

Callers 2

wallet_get_runeFunction · 0.85
wallet_get_runesFunction · 0.85

Calls 3

db_col_is_nullFunction · 0.85
time_from_nsecFunction · 0.85
db_col_u64Function · 0.85

Tested by

no test coverage detected