| 138 | } |
| 139 | |
| 140 | void 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 | |
| 149 | void db_bind_channel_id(struct db_stmt *stmt, const struct channel_id *id) |
| 150 | { |
no test coverage detected