mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 10:46:58 +01:00
wallet/wallet.com: bind_null if (out->preimage)
This commit is contained in:
parent
5205de7b8e
commit
da80447ba3
1 changed files with 2 additions and 0 deletions
|
@ -1176,6 +1176,8 @@ void wallet_htlc_save_out(struct wallet *wallet,
|
||||||
|
|
||||||
if (out->preimage)
|
if (out->preimage)
|
||||||
sqlite3_bind_preimage(stmt, 8,out->preimage);
|
sqlite3_bind_preimage(stmt, 8,out->preimage);
|
||||||
|
else
|
||||||
|
sqlite3_bind_null(stmt, 8);
|
||||||
sqlite3_bind_int(stmt, 9, out->hstate);
|
sqlite3_bind_int(stmt, 9, out->hstate);
|
||||||
|
|
||||||
sqlite3_bind_blob(stmt, 10, &out->onion_routing_packet,
|
sqlite3_bind_blob(stmt, 10, &out->onion_routing_packet,
|
||||||
|
|
Loading…
Add table
Reference in a new issue