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

Function db_bind_outpoint

db/bindings.c:140–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140void db_bind_outpoint(struct db_stmt *stmt, const struct bitcoin_outpoint *o)
141{
142 u8 *ser = tal_arr(stmt, u8, sizeof(o->txid.shad.sha.u.u8) + sizeof(be32));
143 be32 be_vout = cpu_to_be32(o->n);
144 memcpy(ser, o->txid.shad.sha.u.u8, sizeof(o->txid.shad.sha.u.u8));
145 memcpy(ser + sizeof(o->txid.shad.sha.u.u8), &be_vout, sizeof(be32));
146 db_bind_blob(stmt, ser, tal_bytelen(ser));
147}
148
149void db_bind_channel_id(struct db_stmt *stmt, const struct channel_id *id)
150{

Callers 3

migrate_from_account_dbFunction · 0.85
insert_chain_mvtFunction · 0.85

Calls 3

cpu_to_be32Function · 0.85
db_bind_blobFunction · 0.85
tal_bytelenFunction · 0.85

Tested by

no test coverage detected