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

Function db_col_timeabs

db/bindings.c:401–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399}
400
401struct timeabs db_col_timeabs(struct db_stmt *stmt, const char *colname)
402{
403 struct timeabs t;
404 u64 timestamp = db_col_u64(stmt, colname);
405 t.ts.tv_sec = timestamp / NSEC_IN_SEC;
406 t.ts.tv_nsec = timestamp % NSEC_IN_SEC;
407 return t;
408
409}
410
411struct bitcoin_tx *db_col_tx(const tal_t *ctx, struct db_stmt *stmt, const char *colname)
412{

Callers 3

wallet_state_change_getFunction · 0.85
wallet_stmt2htlc_inFunction · 0.85

Calls 1

db_col_u64Function · 0.85

Tested by

no test coverage detected