mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
nit: align spacing for SQL stmts
This commit is contained in:
@@ -2355,19 +2355,19 @@ void wallet_payment_store(struct wallet *wallet,
|
|||||||
stmt = db_prepare_v2(
|
stmt = db_prepare_v2(
|
||||||
wallet->db,
|
wallet->db,
|
||||||
SQL("INSERT INTO payments ("
|
SQL("INSERT INTO payments ("
|
||||||
" status,"
|
" status,"
|
||||||
" payment_hash,"
|
" payment_hash,"
|
||||||
" destination,"
|
" destination,"
|
||||||
" msatoshi,"
|
" msatoshi,"
|
||||||
" timestamp,"
|
" timestamp,"
|
||||||
" path_secrets,"
|
" path_secrets,"
|
||||||
" route_nodes,"
|
" route_nodes,"
|
||||||
" route_channels,"
|
" route_channels,"
|
||||||
" msatoshi_sent,"
|
" msatoshi_sent,"
|
||||||
" description,"
|
" description,"
|
||||||
" bolt11,"
|
" bolt11,"
|
||||||
" total_msat,"
|
" total_msat,"
|
||||||
" partid"
|
" partid"
|
||||||
") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);"));
|
") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);"));
|
||||||
|
|
||||||
db_bind_int(stmt, 0, payment->status);
|
db_bind_int(stmt, 0, payment->status);
|
||||||
@@ -3153,9 +3153,9 @@ void wallet_transaction_add(struct wallet *w, const struct bitcoin_tx *tx,
|
|||||||
/* This transaction is still unknown, insert */
|
/* This transaction is still unknown, insert */
|
||||||
stmt = db_prepare_v2(w->db,
|
stmt = db_prepare_v2(w->db,
|
||||||
SQL("INSERT INTO transactions ("
|
SQL("INSERT INTO transactions ("
|
||||||
" id"
|
" id"
|
||||||
", blockheight"
|
", blockheight"
|
||||||
", txindex"
|
", txindex"
|
||||||
", rawtx) VALUES (?, ?, ?, ?);"));
|
", rawtx) VALUES (?, ?, ?, ?);"));
|
||||||
db_bind_txid(stmt, 0, &txid);
|
db_bind_txid(stmt, 0, &txid);
|
||||||
if (blockheight) {
|
if (blockheight) {
|
||||||
|
|||||||
Reference in New Issue
Block a user