mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 18:57:06 +01:00
wallet/wallet.c: bind_null if (chan->remote_shutdown_scriptpubkey)
This commit is contained in:
parent
2090ddd1fa
commit
580b8ba8a9
1 changed files with 2 additions and 0 deletions
|
@ -911,6 +911,8 @@ void wallet_channel_save(struct wallet *w, struct channel *chan)
|
||||||
sqlite3_bind_blob(stmt, 16, chan->remote_shutdown_scriptpubkey,
|
sqlite3_bind_blob(stmt, 16, chan->remote_shutdown_scriptpubkey,
|
||||||
tal_len(chan->remote_shutdown_scriptpubkey),
|
tal_len(chan->remote_shutdown_scriptpubkey),
|
||||||
SQLITE_TRANSIENT);
|
SQLITE_TRANSIENT);
|
||||||
|
else
|
||||||
|
sqlite3_bind_null(stmt, 16);
|
||||||
|
|
||||||
sqlite3_bind_int64(stmt, 17, chan->final_key_idx);
|
sqlite3_bind_int64(stmt, 17, chan->final_key_idx);
|
||||||
sqlite3_bind_int64(stmt, 18, chan->our_config.id);
|
sqlite3_bind_int64(stmt, 18, chan->our_config.id);
|
||||||
|
|
Loading…
Add table
Reference in a new issue