mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-03 13:14:22 +01:00
wallet/wallet.c: bind_null if (payment_key)
This commit is contained in:
committed by
Rusty Russell
parent
da80447ba3
commit
cb53ad0706
@@ -1206,6 +1206,8 @@ void wallet_htlc_update(struct wallet *wallet, const u64 htlc_dbid,
|
||||
|
||||
if (payment_key)
|
||||
sqlite3_bind_preimage(stmt, 2, payment_key);
|
||||
else
|
||||
sqlite3_bind_null(stmt, 2);
|
||||
|
||||
db_exec_prepared(wallet->db, stmt);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user