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

Function db_bind_secret_arr

db/bindings.c:113–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void db_bind_secret_arr(struct db_stmt *stmt, int col, const struct secret *s)
114{
115 size_t num = tal_count(s), elsize = sizeof(s->data);
116 u8 *ser = tal_arr(stmt, u8, num * elsize);
117
118 for (size_t i = 0; i < num; ++i)
119 memcpy(ser + i * elsize, &s[i], elsize);
120
121 db_bind_blob(stmt, col, ser, tal_count(ser));
122}
123
124void db_bind_txid(struct db_stmt *stmt, int pos, const struct bitcoin_txid *t)
125{

Callers 1

wallet_payment_storeFunction · 0.85

Calls 1

db_bind_blobFunction · 0.85

Tested by

no test coverage detected