2021-05-20 02:15:12 +02:00
#: wallet/db.c:69
2020-08-31 03:22:37 +02:00
msgid "CREATE TABLE version (version INTEGER)"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:70
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO version VALUES (1)"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:71
2020-08-31 03:22:37 +02:00
msgid "CREATE TABLE outputs ( prev_out_tx BLOB, prev_out_index INTEGER, value BIGINT, type INTEGER, status INTEGER, keyindex INTEGER, PRIMARY KEY (prev_out_tx, prev_out_index));"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:80
2020-08-31 03:22:37 +02:00
msgid "CREATE TABLE vars ( name VARCHAR(32), val VARCHAR(255), PRIMARY KEY (name));"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:86
2020-08-31 03:22:37 +02:00
msgid "CREATE TABLE shachains ( id BIGSERIAL, min_index BIGINT, num_valid BIGINT, PRIMARY KEY (id));"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:93
2020-08-31 03:22:37 +02:00
msgid "CREATE TABLE shachain_known ( shachain_id BIGINT REFERENCES shachains(id) ON DELETE CASCADE, pos INTEGER, idx BIGINT, hash BLOB, PRIMARY KEY (shachain_id, pos));"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:101
2020-08-31 03:22:37 +02:00
msgid "CREATE TABLE peers ( id BIGSERIAL, node_id BLOB UNIQUE, address TEXT, PRIMARY KEY (id));"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:108
2020-08-31 03:22:37 +02:00
msgid "CREATE TABLE channels ( id BIGSERIAL, peer_id BIGINT REFERENCES peers(id) ON DELETE CASCADE, short_channel_id TEXT, channel_config_local BIGINT, channel_config_remote BIGINT, state INTEGER, funder INTEGER, channel_flags INTEGER, minimum_depth INTEGER, next_index_local BIGINT, next_index_remote BIGINT, next_htlc_id BIGINT, funding_tx_id BLOB, funding_tx_outnum INTEGER, funding_satoshi BIGINT, funding_locked_remote INTEGER, push_msatoshi BIGINT, msatoshi_local BIGINT, fundingkey_remote BLOB, revocation_basepoint_remote BLOB, payment_basepoint_remote BLOB, htlc_basepoint_remote BLOB, delayed_payment_basepoint_remote BLOB, per_commit_remote BLOB, old_per_commit_remote BLOB, local_feerate_per_kw INTEGER, remote_feerate_per_kw INTEGER, shachain_remote_id BIGINT, shutdown_scriptpubkey_remote BLOB, shutdown_keyidx_local BIGINT, last_sent_commit_state BIGINT, last_sent_commit_id INTEGER, last_tx BLOB, last_sig BLOB, closing_fee_received INTEGER, closing_sig_received BLOB, PRIMARY KEY (id));"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:150
2020-08-31 03:22:37 +02:00
msgid "CREATE TABLE channel_configs ( id BIGSERIAL, dust_limit_satoshis BIGINT, max_htlc_value_in_flight_msat BIGINT, channel_reserve_satoshis BIGINT, htlc_minimum_msat BIGINT, to_self_delay INTEGER, max_accepted_htlcs INTEGER, PRIMARY KEY (id));"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:161
2020-08-31 03:22:37 +02:00
msgid "CREATE TABLE channel_htlcs ( id BIGSERIAL, channel_id BIGINT REFERENCES channels(id) ON DELETE CASCADE, channel_htlc_id BIGINT, direction INTEGER, origin_htlc BIGINT, msatoshi BIGINT, cltv_expiry INTEGER, payment_hash BLOB, payment_key BLOB, routing_onion BLOB, failuremsg BLOB, malformed_onion INTEGER, hstate INTEGER, shared_secret BLOB, PRIMARY KEY (id), UNIQUE (channel_id, channel_htlc_id, direction));"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:181
2020-08-31 03:22:37 +02:00
msgid "CREATE TABLE invoices ( id BIGSERIAL, state INTEGER, msatoshi BIGINT, payment_hash BLOB, payment_key BLOB, label TEXT, PRIMARY KEY (id), UNIQUE (label), UNIQUE (payment_hash));"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:193
2020-08-31 03:22:37 +02:00
msgid "CREATE TABLE payments ( id BIGSERIAL, timestamp INTEGER, status INTEGER, payment_hash BLOB, direction INTEGER, destination BLOB, msatoshi BIGINT, PRIMARY KEY (id), UNIQUE (payment_hash));"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:206
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE invoices ADD expiry_time BIGINT;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:207
2020-08-31 03:22:37 +02:00
msgid "UPDATE invoices SET expiry_time=9223372036854775807;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:209
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE invoices ADD pay_index BIGINT;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:210
2020-08-31 03:22:37 +02:00
msgid "CREATE UNIQUE INDEX invoices_pay_index ON invoices(pay_index);"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:212
2020-08-31 03:22:37 +02:00
msgid "UPDATE invoices SET pay_index=id WHERE state=1;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:215
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO vars(name, val) VALUES('next_pay_index', COALESCE((SELECT MAX(pay_index) FROM invoices WHERE state=1), 0) + 1 );"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:224
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channels ADD first_blocknum BIGINT;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:225
2020-08-31 03:22:37 +02:00
msgid "UPDATE channels SET first_blocknum=1 WHERE short_channel_id IS NOT NULL;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:227
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE outputs ADD COLUMN channel_id BIGINT;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:228
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE outputs ADD COLUMN peer_id BLOB;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:229
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE outputs ADD COLUMN commitment_point BLOB;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:230
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE invoices ADD COLUMN msatoshi_received BIGINT;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:232
2020-08-31 03:22:37 +02:00
msgid "UPDATE invoices SET msatoshi_received=0 WHERE state=1;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:233
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channels ADD COLUMN last_was_revoke INTEGER;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:237 wallet/db.c:530
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE payments RENAME TO temp_payments;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:238
2020-08-31 03:22:37 +02:00
msgid "CREATE TABLE payments ( id BIGSERIAL, timestamp INTEGER, status INTEGER, payment_hash BLOB, destination BLOB, msatoshi BIGINT, PRIMARY KEY (id), UNIQUE (payment_hash));"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:249
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO payments SELECT id, timestamp, status, payment_hash, destination, msatoshi FROM temp_payments WHERE direction=1;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:252 wallet/db.c:605
2020-08-31 03:22:37 +02:00
msgid "DROP TABLE temp_payments;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:254
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE payments ADD COLUMN payment_preimage BLOB;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:256
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE payments ADD COLUMN path_secrets BLOB;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:259
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE invoices ADD paid_timestamp BIGINT;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:260
2020-08-31 03:22:37 +02:00
msgid "UPDATE invoices SET paid_timestamp = CURRENT_TIMESTAMP() WHERE state = 1;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:268
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE payments ADD COLUMN route_nodes BLOB;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:269
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE payments ADD COLUMN route_channels BLOB;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:270
2020-08-31 03:22:37 +02:00
msgid "CREATE TABLE htlc_sigs (channelid INTEGER REFERENCES channels(id) ON DELETE CASCADE, signature BLOB);"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:273
2020-08-31 03:22:37 +02:00
msgid "CREATE INDEX channel_idx ON htlc_sigs (channelid)"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:275
2020-08-31 03:22:37 +02:00
msgid "DELETE FROM channels WHERE state=1"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:277
2020-08-31 03:22:37 +02:00
msgid "CREATE TABLE db_upgrades (upgrade_from INTEGER, lightning_version TEXT);"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:281 wallet/db.c:471
2020-08-31 03:22:37 +02:00
msgid "DELETE FROM peers WHERE id NOT IN (SELECT peer_id FROM channels);"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:285
2020-08-31 03:22:37 +02:00
msgid "UPDATE channels SET STATE = 8 WHERE state > 8;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:287
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE invoices ADD bolt11 TEXT;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:291
2020-08-31 03:22:37 +02:00
msgid "CREATE TABLE blocks (height INT, hash BLOB, prev_hash BLOB, UNIQUE(height));"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:301
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE outputs ADD COLUMN confirmation_height INTEGER REFERENCES blocks(height) ON DELETE SET NULL;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:304
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE outputs ADD COLUMN spend_height INTEGER REFERENCES blocks(height) ON DELETE SET NULL;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:308
2020-08-31 03:22:37 +02:00
msgid "CREATE INDEX output_height_idx ON outputs (confirmation_height, spend_height);"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:311
2020-08-31 03:22:37 +02:00
msgid "CREATE TABLE utxoset ( txid BLOB, outnum INT, blockheight INT REFERENCES blocks(height) ON DELETE CASCADE, spendheight INT REFERENCES blocks(height) ON DELETE SET NULL, txindex INT, scriptpubkey BLOB, satoshis BIGINT, PRIMARY KEY(txid, outnum));"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:321
2020-08-31 03:22:37 +02:00
msgid "CREATE INDEX short_channel_id ON utxoset (blockheight, txindex, outnum)"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:326
2020-08-31 03:22:37 +02:00
msgid "CREATE INDEX utxoset_spend ON utxoset (spendheight)"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:328
2020-08-31 03:22:37 +02:00
msgid "UPDATE channels SET shutdown_keyidx_local=0 WHERE shutdown_keyidx_local = -1;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:334
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE payments ADD failonionreply BLOB;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:336
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE payments ADD faildestperm INTEGER;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:338
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE payments ADD failindex INTEGER;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:340
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE payments ADD failcode INTEGER;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:341
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE payments ADD failnode BLOB;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:342
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE payments ADD failchannel TEXT;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:344
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE payments ADD failupdate BLOB;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:348
2020-08-31 03:22:37 +02:00
msgid "UPDATE payments SET path_secrets = NULL , route_nodes = NULL , route_channels = NULL WHERE status <> 0;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:355
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channels ADD in_payments_offered INTEGER DEFAULT 0;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:356
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channels ADD in_payments_fulfilled INTEGER DEFAULT 0;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:357
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channels ADD in_msatoshi_offered BIGINT DEFAULT 0;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:358
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channels ADD in_msatoshi_fulfilled BIGINT DEFAULT 0;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:359
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channels ADD out_payments_offered INTEGER DEFAULT 0;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:360
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channels ADD out_payments_fulfilled INTEGER DEFAULT 0;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:361
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channels ADD out_msatoshi_offered BIGINT DEFAULT 0;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:362
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channels ADD out_msatoshi_fulfilled BIGINT DEFAULT 0;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:363
2020-08-31 03:22:37 +02:00
msgid "UPDATE channels SET in_payments_offered = 0, in_payments_fulfilled = 0 , in_msatoshi_offered = 0, in_msatoshi_fulfilled = 0 , out_payments_offered = 0, out_payments_fulfilled = 0 , out_msatoshi_offered = 0, out_msatoshi_fulfilled = 0 ;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:372
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE payments ADD msatoshi_sent BIGINT;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:373
2020-08-31 03:22:37 +02:00
msgid "UPDATE payments SET msatoshi_sent = msatoshi;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:375
2020-08-31 03:22:37 +02:00
msgid "DELETE FROM utxoset WHERE blockheight IN ( SELECT DISTINCT(blockheight) FROM utxoset LEFT OUTER JOIN blocks on (blockheight = blocks.height) WHERE blocks.hash IS NULL);"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:383
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channels ADD min_possible_feerate INTEGER;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:384
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channels ADD max_possible_feerate INTEGER;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:387
2020-08-31 03:22:37 +02:00
msgid "UPDATE channels SET min_possible_feerate=0, max_possible_feerate=250000;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:391
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channels ADD msatoshi_to_us_min BIGINT;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:392
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channels ADD msatoshi_to_us_max BIGINT;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:393
2020-08-31 03:22:37 +02:00
msgid "UPDATE channels SET msatoshi_to_us_min = msatoshi_local , msatoshi_to_us_max = msatoshi_local ;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:402
2020-08-31 03:22:37 +02:00
msgid "CREATE TABLE transactions ( id BLOB, blockheight INTEGER REFERENCES blocks(height) ON DELETE SET NULL, txindex INTEGER, rawtx BLOB, PRIMARY KEY (id));"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:411
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE payments ADD faildetail TEXT;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:412
2020-08-31 03:22:37 +02:00
msgid "UPDATE payments SET faildetail = 'unspecified payment failure reason' WHERE status = 2;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:417
2020-08-31 03:22:37 +02:00
msgid "CREATE TABLE channeltxs ( id BIGSERIAL, channel_id BIGINT REFERENCES channels(id) ON DELETE CASCADE, type INTEGER, transaction_id BLOB REFERENCES transactions(id) ON DELETE CASCADE, input_num INTEGER, blockheight INTEGER REFERENCES blocks(height) ON DELETE CASCADE, PRIMARY KEY(id));"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:433
2020-08-31 03:22:37 +02:00
msgid "DELETE FROM blocks WHERE height > (SELECT MIN(first_blocknum) FROM channels);"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:439
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO blocks (height) VALUES ((SELECT MIN(first_blocknum) FROM channels)) ON CONFLICT(height) DO NOTHING;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:443
2020-08-31 03:22:37 +02:00
msgid "DELETE FROM blocks WHERE height IS NULL;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:445
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE invoices ADD description TEXT;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:447
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE payments ADD description TEXT;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:449
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channels ADD future_per_commitment_point BLOB;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:451
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channels ADD last_sent_commit BLOB;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:456
2020-08-31 03:22:37 +02:00
msgid "CREATE TABLE forwarded_payments ( in_htlc_id BIGINT REFERENCES channel_htlcs(id) ON DELETE SET NULL, out_htlc_id BIGINT REFERENCES channel_htlcs(id) ON DELETE SET NULL, in_channel_scid BIGINT, out_channel_scid BIGINT, in_msatoshi BIGINT, out_msatoshi BIGINT, state INTEGER, UNIQUE(in_htlc_id, out_htlc_id));"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:468
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE payments ADD faildirection INTEGER;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:473
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE outputs ADD scriptpubkey BLOB;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:475
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE payments ADD bolt11 TEXT;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:477
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channels ADD feerate_base INTEGER;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:478
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channels ADD feerate_ppm INTEGER;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:480
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channel_htlcs ADD received_time BIGINT"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:481
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE forwarded_payments ADD received_time BIGINT"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:482
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE forwarded_payments ADD resolved_time BIGINT"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:483
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channels ADD remote_upfront_shutdown_script BLOB;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:486
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE forwarded_payments ADD failcode INTEGER;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:488
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channels ADD remote_ann_node_sig BLOB;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:489
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channels ADD remote_ann_bitcoin_sig BLOB;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:491
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE transactions ADD type BIGINT;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:496
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE transactions ADD channel_id BIGINT;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:498
2020-08-31 03:22:37 +02:00
msgid "UPDATE channels SET short_channel_id = REPLACE(short_channel_id, ':', 'x') WHERE short_channel_id IS NOT NULL;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:501
2020-08-31 03:22:37 +02:00
msgid "UPDATE payments SET failchannel = REPLACE(failchannel, ':', 'x') WHERE failchannel IS NOT NULL;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:504
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channels ADD COLUMN option_static_remotekey INTEGER DEFAULT 0;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:506
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE vars ADD COLUMN intval INTEGER"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:507
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE vars ADD COLUMN blobval BLOB"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:508
2020-08-31 03:22:37 +02:00
msgid "UPDATE vars SET intval = CAST(val AS INTEGER) WHERE name IN ('bip32_max_index', 'last_processed_block', 'next_pay_index')"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:509
2020-08-31 03:22:37 +02:00
msgid "UPDATE vars SET blobval = CAST(val AS BLOB) WHERE name = 'genesis_hash'"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:510
2020-08-31 03:22:37 +02:00
msgid "CREATE TABLE transaction_annotations ( txid BLOB, idx INTEGER, location INTEGER, type INTEGER, channel BIGINT REFERENCES channels(id), UNIQUE(txid, idx));"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:522
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channels ADD shutdown_scriptpubkey_local BLOB;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:525
2020-08-31 03:22:37 +02:00
msgid "UPDATE forwarded_payments SET received_time=0 WHERE received_time IS NULL;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:527
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE invoices ADD COLUMN features BLOB DEFAULT '';"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:531
2020-08-31 03:22:37 +02:00
msgid "CREATE TABLE payments ( id BIGSERIAL, timestamp INTEGER, status INTEGER, payment_hash BLOB, destination BLOB, msatoshi BIGINT, payment_preimage BLOB, path_secrets BLOB, route_nodes BLOB, route_channels BLOB, failonionreply BLOB, faildestperm INTEGER, failindex INTEGER, failcode INTEGER, failnode BLOB, failchannel TEXT, failupdate BLOB, msatoshi_sent BIGINT, faildetail TEXT, description TEXT, faildirection INTEGER, bolt11 TEXT, total_msat BIGINT, partid BIGINT, PRIMARY KEY (id), UNIQUE (payment_hash, partid))"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:558
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO payments (id, timestamp, status, payment_hash, destination, msatoshi, payment_preimage, path_secrets, route_nodes, route_channels, failonionreply, faildestperm, failindex, failcode, failnode, failchannel, failupdate, msatoshi_sent, faildetail, description, faildirection, bolt11)SELECT id, timestamp, status, payment_hash, destination, msatoshi, payment_preimage, path_secrets, route_nodes, route_channels, failonionreply, faildestperm, failindex, failcode, failnode, failchannel, failupdate, msatoshi_sent, faildetail, description, faildirection, bolt11 FROM temp_payments;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:603
2020-08-31 03:22:37 +02:00
msgid "UPDATE payments SET total_msat = msatoshi;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:604
2020-08-31 03:22:37 +02:00
msgid "UPDATE payments SET partid = 0;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:606
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channel_htlcs ADD partid BIGINT;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:607
2020-08-31 03:22:37 +02:00
msgid "UPDATE channel_htlcs SET partid = 0;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:608
2020-08-31 03:22:37 +02:00
msgid "CREATE TABLE channel_feerates ( channel_id BIGINT REFERENCES channels(id) ON DELETE CASCADE, hstate INTEGER, feerate_per_kw INTEGER, UNIQUE (channel_id, hstate));"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:619
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO channel_feerates(channel_id, hstate, feerate_per_kw) SELECT id, 4, local_feerate_per_kw FROM channels WHERE funder = 0;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:623
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO channel_feerates(channel_id, hstate, feerate_per_kw) SELECT id, 1, remote_feerate_per_kw FROM channels WHERE funder = 0 and local_feerate_per_kw != remote_feerate_per_kw;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:628
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO channel_feerates(channel_id, hstate, feerate_per_kw) SELECT id, 14, remote_feerate_per_kw FROM channels WHERE funder = 1;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:632
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO channel_feerates(channel_id, hstate, feerate_per_kw) SELECT id, 11, local_feerate_per_kw FROM channels WHERE funder = 1 and local_feerate_per_kw != remote_feerate_per_kw;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:636
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO vars (name, intval) VALUES ('data_version', 0);"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:639
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channel_htlcs ADD localfailmsg BLOB;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:640
2020-08-31 03:22:37 +02:00
msgid "UPDATE channel_htlcs SET localfailmsg=decode('2002', 'hex') WHERE malformed_onion != 0 AND direction = 1;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:641
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channels ADD our_funding_satoshi BIGINT DEFAULT 0;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:642
2020-08-31 03:22:37 +02:00
msgid "CREATE TABLE penalty_bases ( channel_id BIGINT REFERENCES channels(id) ON DELETE CASCADE, commitnum BIGINT, txid BLOB, outnum INTEGER, amount BIGINT, PRIMARY KEY (channel_id, commitnum));"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:652
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channel_htlcs ADD we_filled INTEGER;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:654
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO vars (name, intval) VALUES ('coin_moves_count', 0);"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:656
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE outputs ADD reserved_til INTEGER DEFAULT NULL;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:659
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE channels ADD COLUMN option_anchor_outputs INTEGER DEFAULT 0;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:662
2020-08-31 03:22:37 +02:00
msgid "ALTER TABLE outputs ADD option_anchor_outputs INTEGER DEFAULT 0;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:664
2020-09-09 09:20:53 +02:00
msgid "ALTER TABLE channels ADD full_channel_id BLOB DEFAULT NULL;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:665
2020-09-11 22:28:15 +02:00
msgid "ALTER TABLE channels ADD funding_psbt BLOB DEFAULT NULL;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:667
2020-10-28 11:46:17 +01:00
msgid "ALTER TABLE channels ADD closer INTEGER DEFAULT 2;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:668
2020-10-28 11:46:17 +01:00
msgid "ALTER TABLE channels ADD state_change_reason INTEGER DEFAULT 0;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:669
2020-10-28 11:46:22 +01:00
msgid "CREATE TABLE channel_state_changes ( channel_id BIGINT REFERENCES channels(id) ON DELETE CASCADE, timestamp BIGINT, old_state INTEGER, new_state INTEGER, cause INTEGER, message TEXT);"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:677
2020-12-14 02:17:58 +01:00
msgid "CREATE TABLE offers ( offer_id BLOB, bolt12 TEXT, label TEXT, status INTEGER, PRIMARY KEY (offer_id));"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:685
2020-12-15 00:43:42 +01:00
msgid "ALTER TABLE invoices ADD COLUMN local_offer_id BLOB DEFAULT NULL REFERENCES offers(offer_id);"
2020-12-14 02:18:24 +01:00
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:687
2020-12-15 00:43:42 +01:00
msgid "ALTER TABLE payments ADD COLUMN local_offer_id BLOB DEFAULT NULL REFERENCES offers(offer_id);"
2020-12-14 02:21:48 +01:00
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:688
2020-12-10 20:59:03 +01:00
msgid "ALTER TABLE channels ADD funding_tx_remote_sigs_received INTEGER DEFAULT 0;"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:691
2021-01-18 08:58:24 +01:00
msgid "CREATE INDEX forwarded_payments_out_htlc_id ON forwarded_payments (out_htlc_id);"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:693
2021-02-14 15:13:17 +01:00
msgid "UPDATE channel_htlcs SET malformed_onion = 0 WHERE malformed_onion IS NULL"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:695
2021-01-23 18:19:47 +01:00
msgid "CREATE INDEX forwarded_payments_state ON forwarded_payments (state)"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:696
2021-02-04 22:14:44 +01:00
msgid "CREATE TABLE channel_funding_inflights ( channel_id BIGSERIAL REFERENCES channels(id) ON DELETE CASCADE, funding_tx_id BLOB, funding_tx_outnum INTEGER, funding_feerate INTEGER, funding_satoshi BIGINT, our_funding_satoshi BIGINT, funding_psbt BLOB, last_tx BLOB, last_sig BLOB, funding_tx_remote_sigs_received INTEGER, PRIMARY KEY (channel_id, funding_tx_id));"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:710
2021-02-26 17:12:56 +01:00
msgid "ALTER TABLE channels ADD revocation_basepoint_local BLOB"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:711
2021-02-26 17:12:56 +01:00
msgid "ALTER TABLE channels ADD payment_basepoint_local BLOB"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:712
2021-02-26 17:12:56 +01:00
msgid "ALTER TABLE channels ADD htlc_basepoint_local BLOB"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:713
2021-02-26 17:12:56 +01:00
msgid "ALTER TABLE channels ADD delayed_payment_basepoint_local BLOB"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:714
2021-02-26 17:12:56 +01:00
msgid "ALTER TABLE channels ADD funding_pubkey_local BLOB"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:717
2021-03-15 21:25:15 +01:00
msgid "ALTER TABLE channels ADD shutdown_wrong_txid BLOB DEFAULT NULL"
msgstr ""
2021-05-20 02:15:12 +02:00
#: wallet/db.c:718
2021-03-15 21:25:15 +01:00
msgid "ALTER TABLE channels ADD shutdown_wrong_outnum INTEGER DEFAULT NULL"
msgstr ""
2021-06-04 07:13:47 +02:00
#: wallet/db.c:721
msgid "ALTER TABLE channels ADD local_static_remotekey_start BIGINT DEFAULT 0"
msgstr ""
#: wallet/db.c:723
msgid "ALTER TABLE channels ADD remote_static_remotekey_start BIGINT DEFAULT 0"
msgstr ""
#: wallet/db.c:726
msgid "UPDATE channels SET remote_static_remotekey_start = 9223372036854775807, local_static_remotekey_start = 9223372036854775807 WHERE option_static_remotekey = 0"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/db.c:731
msgid "ALTER TABLE channel_funding_inflights ADD lease_commit_sig BLOB DEFAULT NULL"
msgstr ""
#: wallet/db.c:732
msgid "ALTER TABLE channel_funding_inflights ADD lease_chan_max_msat BIGINT DEFAULT NULL"
msgstr ""
#: wallet/db.c:733
msgid "ALTER TABLE channel_funding_inflights ADD lease_chan_max_ppt INTEGER DEFAULT NULL"
msgstr ""
#: wallet/db.c:734
msgid "ALTER TABLE channel_funding_inflights ADD lease_expiry INTEGER DEFAULT 0"
msgstr ""
#: wallet/db.c:735
msgid "ALTER TABLE channels ADD lease_commit_sig BLOB DEFAULT NULL"
msgstr ""
#: wallet/db.c:736
msgid "ALTER TABLE channels ADD lease_chan_max_msat INTEGER DEFAULT NULL"
msgstr ""
#: wallet/db.c:737
msgid "ALTER TABLE channels ADD lease_chan_max_ppt INTEGER DEFAULT NULL"
msgstr ""
#: wallet/db.c:738
msgid "ALTER TABLE channels ADD lease_expiry INTEGER DEFAULT 0"
msgstr ""
#: wallet/db.c:965
2020-08-31 03:22:37 +02:00
msgid "UPDATE vars SET intval = intval + 1 WHERE name = 'data_version' AND intval = ?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/db.c:1065
2020-08-31 03:22:37 +02:00
msgid "SELECT version FROM version LIMIT 1"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/db.c:1127
2020-08-31 03:22:37 +02:00
msgid "UPDATE version SET version=?;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/db.c:1135
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO db_upgrades VALUES (?, ?);"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/db.c:1147
2020-08-31 03:22:37 +02:00
msgid "SELECT intval FROM vars WHERE name = 'data_version'"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/db.c:1174
2020-08-31 03:22:37 +02:00
msgid "SELECT intval FROM vars WHERE name= ? LIMIT 1"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/db.c:1190
2020-08-31 03:22:37 +02:00
msgid "UPDATE vars SET intval=? WHERE name=?;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/db.c:1199
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO vars (name, intval) VALUES (?, ?);"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/db.c:1213
2020-08-31 03:22:37 +02:00
msgid "UPDATE channels SET feerate_base = ?, feerate_ppm = ?;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/db.c:1234
2020-08-31 03:22:37 +02:00
msgid "UPDATE channels SET our_funding_satoshi = funding_satoshi WHERE funder = 0;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/db.c:1250
2020-08-31 03:22:37 +02:00
msgid "SELECT type, keyindex, prev_out_tx, prev_out_index, channel_id, peer_id, commitment_point FROM outputs WHERE scriptpubkey IS NULL;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/db.c:1312
2020-08-31 03:22:37 +02:00
msgid "UPDATE outputs SET scriptpubkey = ? WHERE prev_out_tx = ? AND prev_out_index = ?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/db.c:1337
2020-09-09 09:20:53 +02:00
msgid "SELECT id, funding_tx_id, funding_tx_outnum FROM channels;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/db.c:1356
2020-09-09 09:20:53 +02:00
msgid "UPDATE channels SET full_channel_id = ? WHERE id = ?;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/db.c:1377
2021-03-01 15:47:55 +01:00
msgid "SELECT channels.id, peers.node_id FROM channels JOIN peers ON (peers.id = channels.peer_id)"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/db.c:1410
2021-03-01 15:47:55 +01:00
msgid "UPDATE channels SET revocation_basepoint_local = ?, payment_basepoint_local = ?, htlc_basepoint_local = ?, delayed_payment_basepoint_local = ?, funding_pubkey_local = ? WHERE id = ?;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/db.c:1436
2021-05-20 02:15:12 +02:00
msgid "SELECT c.id, p.node_id, c.fundingkey_remote, inflight.last_tx, inflight.last_sig, inflight.funding_satoshi, inflight.funding_tx_id FROM channels c LEFT OUTER JOIN peers p ON p.id = c.peer_id LEFT OUTER JOIN channel_funding_inflights inflight ON c.id = inflight.channel_id WHERE inflight.last_tx IS NOT NULL;"
2020-08-31 03:22:37 +02:00
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/db.c:1503
2021-05-20 02:15:12 +02:00
msgid "UPDATE channel_funding_inflights SET last_tx = ? WHERE channel_id = ? AND funding_tx_id = ?;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/db.c:1527
2021-05-20 02:15:12 +02:00
msgid "SELECT c.id, p.node_id, c.last_tx, c.funding_satoshi, c.fundingkey_remote, c.last_sig FROM channels c LEFT OUTER JOIN peers p ON p.id = c.peer_id;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/db.c:1594
2020-08-31 03:22:37 +02:00
msgid "UPDATE channels SET last_tx = ? WHERE id = ?;"
msgstr ""
2020-12-14 02:18:24 +01:00
#: wallet/invoices.c:135
2020-08-31 03:22:37 +02:00
msgid "UPDATE invoices SET state = ? WHERE state = ? AND expiry_time <= ?;"
msgstr ""
2020-12-14 02:18:24 +01:00
#: wallet/invoices.c:183
2020-08-31 03:22:37 +02:00
msgid "SELECT id FROM invoices WHERE state = ? AND expiry_time <= ?"
msgstr ""
2020-12-14 02:18:24 +01:00
#: wallet/invoices.c:222
2020-08-31 03:22:37 +02:00
msgid "SELECT MIN(expiry_time) FROM invoices WHERE state = ?;"
msgstr ""
2020-12-14 02:18:24 +01:00
#: wallet/invoices.c:289
msgid "INSERT INTO invoices ( payment_hash, payment_key, state , msatoshi, label, expiry_time , pay_index, msatoshi_received , paid_timestamp, bolt11, description, features, local_offer_id) VALUES ( ?, ?, ? , ?, ?, ? , NULL, NULL , NULL, ?, ?, ?, ?);"
2020-08-31 03:22:37 +02:00
msgstr ""
2020-12-14 02:21:48 +01:00
#: wallet/invoices.c:344
2020-08-31 03:22:37 +02:00
msgid "SELECT id FROM invoices WHERE label = ?;"
msgstr ""
2020-12-14 02:21:48 +01:00
#: wallet/invoices.c:366
2020-08-31 03:22:37 +02:00
msgid "SELECT id FROM invoices WHERE payment_hash = ?;"
msgstr ""
2020-12-14 02:21:48 +01:00
#: wallet/invoices.c:387
2020-08-31 03:22:37 +02:00
msgid "SELECT id FROM invoices WHERE payment_hash = ? AND state = ?;"
msgstr ""
2020-12-14 02:21:48 +01:00
#: wallet/invoices.c:411
2020-08-31 03:22:37 +02:00
msgid "DELETE FROM invoices WHERE id=?;"
msgstr ""
2020-12-14 02:21:48 +01:00
#: wallet/invoices.c:431
2020-08-31 03:22:37 +02:00
msgid "DELETE FROM invoices WHERE state = ? AND expiry_time <= ?;"
msgstr ""
2020-12-14 02:21:48 +01:00
#: wallet/invoices.c:445
2021-07-01 06:28:56 +02:00
msgid "SELECT state, payment_key, payment_hash, label, msatoshi, expiry_time, pay_index, msatoshi_received, paid_timestamp, bolt11, description, features, local_offer_id FROM invoices ORDER BY id;"
2020-08-31 03:22:37 +02:00
msgstr ""
2021-07-01 06:28:56 +02:00
#: wallet/invoices.c:503
2020-08-31 03:22:37 +02:00
msgid "SELECT state FROM invoices WHERE id = ?;"
msgstr ""
2021-07-01 06:28:56 +02:00
#: wallet/invoices.c:521
2020-12-14 02:18:24 +01:00
msgid "SELECT local_offer_id FROM invoices WHERE id = ?;"
msgstr ""
2021-07-01 06:28:56 +02:00
#: wallet/invoices.c:553
2020-08-31 03:22:37 +02:00
msgid "UPDATE invoices SET state=? , pay_index=? , msatoshi_received=? , paid_timestamp=? WHERE id=?;"
msgstr ""
2021-07-01 06:28:56 +02:00
#: wallet/invoices.c:612
2020-08-31 03:22:37 +02:00
msgid "SELECT id FROM invoices WHERE pay_index IS NOT NULL AND pay_index > ? ORDER BY pay_index ASC LIMIT 1;"
msgstr ""
2021-07-01 06:28:56 +02:00
#: wallet/invoices.c:661
2020-12-14 02:18:24 +01:00
msgid "SELECT state, payment_key, payment_hash, label, msatoshi, expiry_time, pay_index, msatoshi_received, paid_timestamp, bolt11, description, features, local_offer_id FROM invoices WHERE id = ?;"
2020-08-31 03:22:37 +02:00
msgstr ""
2021-05-26 21:05:09 +02:00
#: wallet/wallet.c:65
2021-01-07 14:27:54 +01:00
msgid "SELECT txid, outnum FROM utxoset WHERE spendheight is NULL"
msgstr ""
2021-05-26 21:05:09 +02:00
#: wallet/wallet.c:106 wallet/wallet.c:588
2020-08-31 03:22:37 +02:00
msgid "SELECT * from outputs WHERE prev_out_tx=? AND prev_out_index=?"
msgstr ""
2021-05-26 21:05:09 +02:00
#: wallet/wallet.c:120 wallet/wallet.c:602
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO outputs ( prev_out_tx, prev_out_index, value, type, status, keyindex, channel_id, peer_id, commitment_point, option_anchor_outputs, confirmation_height, spend_height, scriptpubkey) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);"
msgstr ""
2021-05-26 21:05:09 +02:00
#: wallet/wallet.c:237
2020-08-31 03:22:37 +02:00
msgid "UPDATE outputs SET status=? WHERE status=? AND prev_out_tx=? AND prev_out_index=?"
msgstr ""
2021-05-26 21:05:09 +02:00
#: wallet/wallet.c:245
2020-08-31 03:22:37 +02:00
msgid "UPDATE outputs SET status=? WHERE prev_out_tx=? AND prev_out_index=?"
msgstr ""
2021-05-26 21:05:09 +02:00
#: wallet/wallet.c:264
2020-08-31 03:22:37 +02:00
msgid "SELECT prev_out_tx, prev_out_index, value, type, status, keyindex, channel_id, peer_id, commitment_point, option_anchor_outputs, confirmation_height, spend_height, scriptpubkey , reserved_til FROM outputs"
msgstr ""
2021-05-26 21:05:09 +02:00
#: wallet/wallet.c:281
2020-08-31 03:22:37 +02:00
msgid "SELECT prev_out_tx, prev_out_index, value, type, status, keyindex, channel_id, peer_id, commitment_point, option_anchor_outputs, confirmation_height, spend_height, scriptpubkey , reserved_til FROM outputs WHERE status= ? "
msgstr ""
2021-05-26 21:05:09 +02:00
#: wallet/wallet.c:319
2020-08-31 03:22:37 +02:00
msgid "SELECT prev_out_tx, prev_out_index, value, type, status, keyindex, channel_id, peer_id, commitment_point, option_anchor_outputs, confirmation_height, spend_height, scriptpubkey, reserved_til FROM outputs WHERE channel_id IS NOT NULL AND confirmation_height IS NULL"
msgstr ""
2021-05-26 21:05:09 +02:00
#: wallet/wallet.c:356
2020-08-31 03:22:37 +02:00
msgid "SELECT prev_out_tx, prev_out_index, value, type, status, keyindex, channel_id, peer_id, commitment_point, option_anchor_outputs, confirmation_height, spend_height, scriptpubkey, reserved_til FROM outputs WHERE prev_out_tx = ? AND prev_out_index = ?"
msgstr ""
2021-05-26 21:05:09 +02:00
#: wallet/wallet.c:448
fix: broken SQL statement in wallet db_set_utxo
I discovered this accidentally when using the `tests/plugins/dblog.py`
plugin on another testcase: tests/test_connection.py::test_fail_unconfirmed
There the plugin/hook crashes because it can't execute the statement:
```json
{
"jsonrpc": "2.0",
"id": 34,
"error": {
"code": -32600,
"message": "Error while processing db_write: unrecognized token: \"174WHERE\"",
"traceback": "Traceback (most recent call last):\n File \"/home/will/projects/lightning.git/contrib/pyln-client/pyln/client/plugin.py\", line 535, in _dispatch_request\n result = self._exec_func(method.func, request)\n File \"/home/will/projects/lightning.git/contrib/pyln-client/pyln/client/plugin.py\", line 520, in _exec_func\n return func(*ba.args, **ba.kwargs)\n File \"/home/will/projects/lightning.git/tests/plugins/dblog.py\", line 45, in db_write\n plugin.conn.execute(c)\nsqlite3.OperationalError: unrecognized token: \"174WHERE\"\n"
}
}
```
Changelog-Fixed: plugin: Regression with SQL statement expansion that could result in invalid statements being passed to the `db_write` hook.
2020-09-24 14:43:31 +02:00
msgid "UPDATE outputs SET status=?, reserved_til=? WHERE prev_out_tx=? AND prev_out_index=?"
2020-08-31 03:22:37 +02:00
msgstr ""
2021-05-26 21:05:09 +02:00
#: wallet/wallet.c:537
2020-08-31 03:22:37 +02:00
msgid "SELECT prev_out_tx, prev_out_index, value, type, status, keyindex, channel_id, peer_id, commitment_point, option_anchor_outputs, confirmation_height, spend_height, scriptpubkey , reserved_til FROM outputs WHERE status = ? OR (status = ? AND reserved_til <= ?)ORDER BY RANDOM();"
msgstr ""
2021-05-26 21:05:09 +02:00
#: wallet/wallet.c:706
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO shachains (min_index, num_valid) VALUES (?, 0);"
msgstr ""
2021-05-26 21:05:09 +02:00
#: wallet/wallet.c:750
2020-08-31 03:22:37 +02:00
msgid "UPDATE shachains SET num_valid=?, min_index=? WHERE id=?"
msgstr ""
2021-05-26 21:05:09 +02:00
#: wallet/wallet.c:757
2020-08-31 03:22:37 +02:00
msgid "UPDATE shachain_known SET idx=?, hash=? WHERE shachain_id=? AND pos=?"
msgstr ""
2021-05-26 21:05:09 +02:00
#: wallet/wallet.c:769
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO shachain_known (shachain_id, pos, idx, hash) VALUES (?, ?, ?, ?);"
msgstr ""
2021-05-26 21:05:09 +02:00
#: wallet/wallet.c:791
2020-08-31 03:22:37 +02:00
msgid "SELECT min_index, num_valid FROM shachains WHERE id=?"
msgstr ""
2021-05-26 21:05:09 +02:00
#: wallet/wallet.c:806
2020-08-31 03:22:37 +02:00
msgid "SELECT idx, hash, pos FROM shachain_known WHERE shachain_id=?"
msgstr ""
2021-05-26 21:05:09 +02:00
#: wallet/wallet.c:829
2020-08-31 03:22:37 +02:00
msgid "SELECT id, node_id, address FROM peers WHERE id=?;"
msgstr ""
2021-05-26 21:05:09 +02:00
#: wallet/wallet.c:862
2020-08-31 03:22:37 +02:00
msgid "SELECT signature FROM htlc_sigs WHERE channelid = ?"
msgstr ""
2021-05-26 21:05:09 +02:00
#: wallet/wallet.c:896
2020-08-31 03:22:37 +02:00
msgid "SELECT remote_ann_node_sig, remote_ann_bitcoin_sig FROM channels WHERE id = ?"
msgstr ""
2021-05-26 21:05:09 +02:00
#: wallet/wallet.c:940
2020-08-31 03:22:37 +02:00
msgid "SELECT hstate, feerate_per_kw FROM channel_feerates WHERE channel_id = ?"
msgstr ""
2021-05-26 21:05:09 +02:00
#: wallet/wallet.c:973
2021-02-04 22:14:44 +01:00
msgid "INSERT INTO channel_funding_inflights ( channel_id, funding_tx_id, funding_tx_outnum, funding_feerate, funding_satoshi, our_funding_satoshi, funding_psbt, last_tx, last_sig) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?);"
msgstr ""
2021-05-26 21:05:09 +02:00
#: wallet/wallet.c:1008
2021-03-16 01:50:01 +01:00
msgid "UPDATE channel_funding_inflights SET funding_psbt=?, funding_tx_remote_sigs_received=? WHERE channel_id=? AND funding_tx_id=? AND funding_tx_outnum=?"
2021-02-04 22:14:44 +01:00
msgstr ""
2021-05-26 21:05:09 +02:00
#: wallet/wallet.c:1031
2021-05-20 23:52:42 +02:00
msgid "DELETE FROM channel_funding_inflights WHERE channel_id = ?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:1098
msgid "SELECT funding_tx_id, funding_tx_outnum, funding_feerate, funding_satoshi, our_funding_satoshi, funding_psbt, last_tx, last_sig, funding_tx_remote_sigs_received, lease_expiry, lease_commit_sig, lease_chan_max_msat, lease_chan_max_ppt FROM channel_funding_inflights WHERE channel_id = ? ORDER BY funding_feerate"
2021-02-04 22:14:44 +01:00
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:1350
2020-08-31 03:22:37 +02:00
msgid "SELECT id FROM channels ORDER BY id DESC LIMIT 1;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:1367
msgid "SELECT id, peer_id, short_channel_id, full_channel_id, channel_config_local, channel_config_remote, state, funder, channel_flags, minimum_depth, next_index_local, next_index_remote, next_htlc_id, funding_tx_id, funding_tx_outnum, funding_satoshi, our_funding_satoshi, funding_locked_remote, push_msatoshi, msatoshi_local, fundingkey_remote, revocation_basepoint_remote, payment_basepoint_remote, htlc_basepoint_remote, delayed_payment_basepoint_remote, per_commit_remote, old_per_commit_remote, local_feerate_per_kw, remote_feerate_per_kw, shachain_remote_id, shutdown_scriptpubkey_remote, shutdown_keyidx_local, last_sent_commit_state, last_sent_commit_id, last_tx, last_sig, last_was_revoke, first_blocknum, min_possible_feerate, max_possible_feerate, msatoshi_to_us_min, msatoshi_to_us_max, future_per_commitment_point, last_sent_commit, feerate_base, feerate_ppm, remote_upfront_shutdown_script, local_static_remotekey_start, remote_static_remotekey_start, option_anchor_outputs, shutdown_scriptpubkey_local, closer, state_change_reason, revocation_basepoint_local, payment_basepoint_local, htlc_basepoint_local, delayed_payment_basepoint_local, funding_pubkey_local, shutdown_wrong_txid, shutdown_wrong_outnum, lease_expiry, lease_commit_sig, lease_chan_max_msat, lease_chan_max_ppt FROM channels WHERE state != ?;"
2020-08-31 03:22:37 +02:00
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:1479
2020-08-31 03:22:37 +02:00
msgid "UPDATE channels SET in_payments_offered = COALESCE(in_payments_offered, 0) + 1 , in_msatoshi_offered = COALESCE(in_msatoshi_offered, 0) + ? WHERE id = ?;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:1485
2020-08-31 03:22:37 +02:00
msgid "UPDATE channels SET in_payments_fulfilled = COALESCE(in_payments_fulfilled, 0) + 1 , in_msatoshi_fulfilled = COALESCE(in_msatoshi_fulfilled, 0) + ? WHERE id = ?;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:1491
2020-08-31 03:22:37 +02:00
msgid "UPDATE channels SET out_payments_offered = COALESCE(out_payments_offered, 0) + 1 , out_msatoshi_offered = COALESCE(out_msatoshi_offered, 0) + ? WHERE id = ?;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:1497
2020-08-31 03:22:37 +02:00
msgid "UPDATE channels SET out_payments_fulfilled = COALESCE(out_payments_fulfilled, 0) + 1 , out_msatoshi_fulfilled = COALESCE(out_msatoshi_fulfilled, 0) + ? WHERE id = ?;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:1542
2020-08-31 03:22:37 +02:00
msgid "SELECT in_payments_offered, in_payments_fulfilled, in_msatoshi_offered, in_msatoshi_fulfilled, out_payments_offered, out_payments_fulfilled, out_msatoshi_offered, out_msatoshi_fulfilled FROM channels WHERE id = ?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:1571
2020-08-31 03:22:37 +02:00
msgid "SELECT MIN(height), MAX(height) FROM blocks;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:1593
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO channel_configs DEFAULT VALUES;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:1605
2020-08-31 03:22:37 +02:00
msgid "UPDATE channel_configs SET dust_limit_satoshis=?, max_htlc_value_in_flight_msat=?, channel_reserve_satoshis=?, htlc_minimum_msat=?, to_self_delay=?, max_accepted_htlcs=? WHERE id=?;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:1629
2020-08-31 03:22:37 +02:00
msgid "SELECT id, dust_limit_satoshis, max_htlc_value_in_flight_msat, channel_reserve_satoshis, htlc_minimum_msat, to_self_delay, max_accepted_htlcs FROM channel_configs WHERE id= ? ;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:1663
2020-08-31 03:22:37 +02:00
msgid "UPDATE channels SET remote_ann_node_sig=?, remote_ann_bitcoin_sig=? WHERE id=?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:1682
msgid "UPDATE channels SET shachain_remote_id=?, short_channel_id=?, full_channel_id=?, state=?, funder=?, channel_flags=?, minimum_depth=?, next_index_local=?, next_index_remote=?, next_htlc_id=?, funding_tx_id=?, funding_tx_outnum=?, funding_satoshi=?, our_funding_satoshi=?, funding_locked_remote=?, push_msatoshi=?, msatoshi_local=?, shutdown_scriptpubkey_remote=?, shutdown_keyidx_local=?, channel_config_local=?, last_tx=?, last_sig=?, last_was_revoke=?, min_possible_feerate=?, max_possible_feerate=?, msatoshi_to_us_min=?, msatoshi_to_us_max=?, feerate_base=?, feerate_ppm=?, remote_upfront_shutdown_script=?, local_static_remotekey_start=?, remote_static_remotekey_start=?, option_anchor_outputs=?, shutdown_scriptpubkey_local=?, closer=?, state_change_reason=?, shutdown_wrong_txid=?, shutdown_wrong_outnum=?, lease_expiry=?, lease_commit_sig=?, lease_chan_max_msat=?, lease_chan_max_ppt=? WHERE id=?"
2020-08-31 03:22:37 +02:00
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:1791
2020-08-31 03:22:37 +02:00
msgid "UPDATE channels SET fundingkey_remote=?, revocation_basepoint_remote=?, payment_basepoint_remote=?, htlc_basepoint_remote=?, delayed_payment_basepoint_remote=?, per_commit_remote=?, old_per_commit_remote=?, channel_config_remote=?, future_per_commitment_point=? WHERE id=?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:1818
2020-08-31 03:22:37 +02:00
msgid "DELETE FROM channel_feerates WHERE channel_id=?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:1828
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO channel_feerates VALUES(?, ?, ?)"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:1845
2020-08-31 03:22:37 +02:00
msgid "UPDATE channels SET last_sent_commit=? WHERE id=?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:1868
2020-10-28 11:46:22 +01:00
msgid "INSERT INTO channel_state_changes ( channel_id, timestamp, old_state, new_state, cause, message) VALUES (?, ?, ?, ?, ?, ?);"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:1896
2020-10-28 11:46:23 +01:00
msgid "SELECT timestamp, old_state, new_state, cause, message FROM channel_state_changes WHERE channel_id = ? ORDER BY timestamp ASC;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:1925
2020-08-31 03:22:37 +02:00
msgid "SELECT id FROM peers WHERE node_id = ?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:1937
2020-08-31 03:22:37 +02:00
msgid "UPDATE peers SET address = ? WHERE id = ?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:1946
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO peers (node_id, address) VALUES (?, ?);"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:1967
2021-03-01 19:04:47 +01:00
msgid "INSERT INTO channels ( peer_id, first_blocknum, id, revocation_basepoint_local, payment_basepoint_local, htlc_basepoint_local, delayed_payment_basepoint_local, funding_pubkey_local) VALUES (?, ?, ?, ?, ?, ?, ?, ?);"
2020-08-31 03:22:37 +02:00
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:2008
2020-08-31 03:22:37 +02:00
msgid "DELETE FROM channel_htlcs WHERE channel_id=?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:2014
2020-08-31 03:22:37 +02:00
msgid "DELETE FROM htlc_sigs WHERE channelid=?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:2020
2020-08-31 03:22:37 +02:00
msgid "DELETE FROM channeltxs WHERE channel_id=?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:2027
2021-02-04 22:14:44 +01:00
msgid "DELETE FROM channel_funding_inflights WHERE channel_id=?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:2033
2020-08-31 03:22:37 +02:00
msgid "DELETE FROM shachains WHERE id IN ( SELECT shachain_remote_id FROM channels WHERE channels.id=?)"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:2043
2020-09-24 16:05:31 +02:00
msgid "UPDATE channels SET state=?, peer_id=? WHERE channels.id=?"
2020-08-31 03:22:37 +02:00
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:2057
2020-08-31 03:22:37 +02:00
msgid "SELECT * FROM channels WHERE peer_id = ?;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:2065
2020-08-31 03:22:37 +02:00
msgid "DELETE FROM peers WHERE id=?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:2076
2020-08-31 03:22:37 +02:00
msgid "UPDATE outputs SET confirmation_height = ? WHERE prev_out_tx = ?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:2179
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO channel_htlcs ( channel_id, channel_htlc_id, direction, msatoshi, cltv_expiry, payment_hash, payment_key, hstate, shared_secret, routing_onion, received_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:2232
2021-02-01 19:20:34 +01:00
msgid "INSERT INTO channel_htlcs ( channel_id, channel_htlc_id, direction, origin_htlc, msatoshi, cltv_expiry, payment_hash, payment_key, hstate, routing_onion, malformed_onion, partid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 0, ?);"
2020-08-31 03:22:37 +02:00
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:2293
2020-08-31 03:22:37 +02:00
msgid "UPDATE channel_htlcs SET hstate=?, payment_key=?, malformed_onion=?, failuremsg=?, localfailmsg=?, we_filled=? WHERE id=?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:2510
2020-08-31 03:22:37 +02:00
msgid "SELECT id, channel_htlc_id, msatoshi, cltv_expiry, hstate, payment_hash, payment_key, routing_onion, failuremsg, malformed_onion, origin_htlc, shared_secret, received_time, we_filled FROM channel_htlcs WHERE direction= ? AND channel_id= ? AND hstate != ?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:2557
2020-08-31 03:22:37 +02:00
msgid "SELECT id, channel_htlc_id, msatoshi, cltv_expiry, hstate, payment_hash, payment_key, routing_onion, failuremsg, malformed_onion, origin_htlc, shared_secret, received_time, partid, localfailmsg FROM channel_htlcs WHERE direction = ? AND channel_id = ? AND hstate != ?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:2688
2020-08-31 03:22:37 +02:00
msgid "SELECT channel_id, direction, cltv_expiry, channel_htlc_id, payment_hash FROM channel_htlcs WHERE channel_id = ?;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:2722
2020-08-31 03:22:37 +02:00
msgid "DELETE FROM channel_htlcs WHERE direction = ? AND origin_htlc = ? AND payment_hash = ? AND partid = ?;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:2775
2020-08-31 03:22:37 +02:00
msgid "SELECT status FROM payments WHERE payment_hash=? AND partid = ?;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:2793
2020-12-14 02:21:48 +01:00
msgid "INSERT INTO payments ( status, payment_hash, destination, msatoshi, timestamp, path_secrets, route_nodes, route_channels, msatoshi_sent, description, bolt11, total_msat, partid, local_offer_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);"
2020-08-31 03:22:37 +02:00
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:2882
2020-08-31 03:22:37 +02:00
msgid "DELETE FROM payments WHERE payment_hash = ? AND partid = ?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:2896
2020-08-08 17:47:53 +02:00
msgid "DELETE FROM payments WHERE payment_hash = ?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:2997
2020-12-14 02:21:48 +01:00
msgid "SELECT id, status, destination, msatoshi, payment_hash, timestamp, payment_preimage, path_secrets, route_nodes, route_channels, msatoshi_sent, description, bolt11, failonionreply, total_msat, partid, local_offer_id FROM payments WHERE payment_hash = ? AND partid = ?"
2020-08-31 03:22:37 +02:00
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3047
2020-08-31 03:22:37 +02:00
msgid "UPDATE payments SET status=? WHERE payment_hash=? AND partid=?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3057
2020-08-31 03:22:37 +02:00
msgid "UPDATE payments SET payment_preimage=? WHERE payment_hash=? AND partid=?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3067
2020-08-31 03:22:37 +02:00
msgid "UPDATE payments SET path_secrets = NULL , route_nodes = NULL , route_channels = NULL WHERE payment_hash = ? AND partid = ?;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3099
2020-08-31 03:22:37 +02:00
msgid "SELECT failonionreply, faildestperm, failindex, failcode, failnode, failchannel, failupdate, faildetail, faildirection FROM payments WHERE payment_hash=? AND partid=?;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3166
2020-08-31 03:22:37 +02:00
msgid "UPDATE payments SET failonionreply=? , faildestperm=? , failindex=? , failcode=? , failnode=? , failchannel=? , failupdate=? , faildetail=? , faildirection=? WHERE payment_hash=? AND partid=?;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3225
2021-05-26 23:55:50 +02:00
msgid "SELECT id, status, destination, msatoshi, payment_hash, timestamp, payment_preimage, path_secrets, route_nodes, route_channels, msatoshi_sent, description, bolt11, failonionreply, total_msat, partid, local_offer_id FROM payments WHERE payment_hash = ? ORDER BY id;"
2020-12-14 02:21:48 +01:00
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3248
2020-12-14 02:21:48 +01:00
msgid "SELECT id, status, destination, msatoshi, payment_hash, timestamp, payment_preimage, path_secrets, route_nodes, route_channels, msatoshi_sent, description, bolt11, failonionreply, total_msat, partid, local_offer_id FROM payments ORDER BY id;"
2020-08-31 03:22:37 +02:00
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3299
2020-12-14 02:21:48 +01:00
msgid "SELECT id, status, destination, msatoshi, payment_hash, timestamp, payment_preimage, path_secrets, route_nodes, route_channels, msatoshi_sent, description, bolt11, failonionreply, total_msat, partid, local_offer_id FROM payments WHERE local_offer_id = ?;"
2020-08-31 03:22:37 +02:00
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3344
2020-08-31 03:22:37 +02:00
msgid "DELETE FROM htlc_sigs WHERE channelid = ?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3351
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO htlc_sigs (channelid, signature) VALUES (?, ?)"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3363
2020-08-31 03:22:37 +02:00
msgid "SELECT blobval FROM vars WHERE name='genesis_hash'"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3387
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO vars (name, blobval) VALUES ('genesis_hash', ?);"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3405
2021-01-07 14:27:54 +01:00
msgid "SELECT txid, outnum FROM utxoset WHERE spendheight < ?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3417
2020-08-31 03:22:37 +02:00
msgid "DELETE FROM utxoset WHERE spendheight < ?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3425 wallet/wallet.c:3539
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO blocks (height, hash, prev_hash) VALUES (?, ?, ?);"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3444
2020-08-31 03:22:37 +02:00
msgid "DELETE FROM blocks WHERE hash = ?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3450
2020-08-31 03:22:37 +02:00
msgid "SELECT * FROM blocks WHERE height >= ?;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3459
2020-08-31 03:22:37 +02:00
msgid "DELETE FROM blocks WHERE height > ?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3471
2020-09-08 03:13:18 +02:00
msgid "UPDATE outputs SET spend_height = ?, status = ? WHERE prev_out_tx = ? AND prev_out_index = ?"
2020-08-31 03:22:37 +02:00
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3489
2020-08-31 03:22:37 +02:00
msgid "UPDATE utxoset SET spendheight = ? WHERE txid = ? AND outnum = ?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3512 wallet/wallet.c:3550
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO utxoset ( txid, outnum, blockheight, spendheight, txindex, scriptpubkey, satoshis) VALUES(?, ?, ?, ?, ?, ?, ?);"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3576
2020-08-31 03:22:37 +02:00
msgid "SELECT height FROM blocks WHERE height = ?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3589
2020-08-31 03:22:37 +02:00
msgid "SELECT txid, spendheight, scriptpubkey, satoshis FROM utxoset WHERE blockheight = ? AND txindex = ? AND outnum = ? AND spendheight IS NULL"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3631
2020-09-08 12:34:36 +02:00
msgid "SELECT blockheight, txindex, outnum FROM utxoset WHERE spendheight = ?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3662 wallet/wallet.c:3822
2020-08-31 03:22:37 +02:00
msgid "SELECT blockheight FROM transactions WHERE id=?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3672
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO transactions ( id, blockheight, txindex, rawtx) VALUES (?, ?, ?, ?);"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3693
2020-08-31 03:22:37 +02:00
msgid "UPDATE transactions SET blockheight = ?, txindex = ? WHERE id = ?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3710
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO transaction_annotations (txid, idx, location, type, channel) VALUES (?, ?, ?, ?, ?) ON CONFLICT(txid,idx) DO NOTHING;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3742
2020-08-31 03:22:37 +02:00
msgid "SELECT type, channel_id FROM transactions WHERE id=?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3758
2020-08-31 03:22:37 +02:00
msgid "UPDATE transactions SET type = ?, channel_id = ? WHERE id = ?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3777
2020-08-31 03:22:37 +02:00
msgid "SELECT type FROM transactions WHERE id=?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3800
2020-08-31 03:22:37 +02:00
msgid "SELECT rawtx FROM transactions WHERE id=?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3846
2020-08-31 03:22:37 +02:00
msgid "SELECT blockheight, txindex FROM transactions WHERE id=?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3874
2020-08-31 03:22:37 +02:00
msgid "SELECT id FROM transactions WHERE blockheight=?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3893
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO channeltxs ( channel_id, type, transaction_id, input_num, blockheight) VALUES (?, ?, ?, ?, ?);"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3917
2020-08-31 03:22:37 +02:00
msgid "SELECT DISTINCT(channel_id) FROM channeltxs WHERE type = ?;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3938
2020-08-31 03:22:37 +02:00
msgid "SELECT c.type, c.blockheight, t.rawtx, c.input_num, c.blockheight - t.blockheight + 1 AS depth, t.id as txid FROM channeltxs c JOIN transactions t ON t.id = c.transaction_id WHERE c.channel_id = ? ORDER BY c.id ASC;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:3983
2020-08-31 03:22:37 +02:00
msgid "UPDATE forwarded_payments SET in_msatoshi=?, out_msatoshi=?, state=?, resolved_time=?, failcode=? WHERE in_htlc_id=?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:4041
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO forwarded_payments ( in_htlc_id, out_htlc_id, in_channel_scid, out_channel_scid, in_msatoshi, out_msatoshi, state, received_time, resolved_time, failcode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:4100
2020-08-31 03:22:37 +02:00
msgid "SELECT CAST(COALESCE(SUM(in_msatoshi - out_msatoshi), 0) AS BIGINT)FROM forwarded_payments WHERE state = ?;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:4149
2021-01-23 18:18:34 +01:00
msgid "SELECT f.state, in_msatoshi, out_msatoshi, hin.payment_hash as payment_hash, in_channel_scid, out_channel_scid, f.received_time, f.resolved_time, f.failcode FROM forwarded_payments f LEFT JOIN channel_htlcs hin ON (f.in_htlc_id = hin.id) WHERE (1 = ? OR f.state = ?) AND (1 = ? OR f.in_channel_scid = ?) AND (1 = ? OR f.out_channel_scid = ?)"
2020-08-31 03:22:37 +02:00
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:4271
2020-08-31 03:22:37 +02:00
msgid "SELECT t.id, t.rawtx, t.blockheight, t.txindex, t.type as txtype, c2.short_channel_id as txchan, a.location, a.idx as ann_idx, a.type as annotation_type, c.short_channel_id FROM transactions t LEFT JOIN transaction_annotations a ON (a.txid = t.id) LEFT JOIN channels c ON (a.channel = c.id) LEFT JOIN channels c2 ON (t.channel_id = c2.id) ORDER BY t.blockheight, t.txindex ASC"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:4365
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO penalty_bases ( channel_id, commitnum, txid, outnum, amount) VALUES (?, ?, ?, ?, ?);"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:4390
2020-08-31 03:22:37 +02:00
msgid "SELECT commitnum, txid, outnum, amount FROM penalty_bases WHERE channel_id = ?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:4414
2020-08-31 03:22:37 +02:00
msgid "DELETE FROM penalty_bases WHERE channel_id = ? AND commitnum = ?"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:4432
2020-12-14 02:17:58 +01:00
msgid "SELECT 1 FROM offers WHERE offer_id = ?;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:4445
2020-12-14 02:17:58 +01:00
msgid "INSERT INTO offers ( offer_id, bolt12, label, status) VALUES (?, ?, ?, ?);"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:4472
2020-12-14 02:17:58 +01:00
msgid "SELECT bolt12, label, status FROM offers WHERE offer_id = ?;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:4500
2020-12-14 02:17:58 +01:00
msgid "SELECT offer_id FROM offers;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:4526
2020-12-14 02:17:58 +01:00
msgid "UPDATE offers SET status=? WHERE offer_id = ?;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:4537
2020-12-14 02:18:24 +01:00
msgid "UPDATE invoices SET state=? WHERE state=? AND local_offer_id = ?;"
2020-12-14 02:17:58 +01:00
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/wallet.c:4565
2020-12-14 02:17:58 +01:00
msgid "SELECT status FROM offers WHERE offer_id = ?;"
msgstr ""
2021-03-05 15:39:33 +01:00
#: wallet/test/run-db.c:126
2020-08-31 03:22:37 +02:00
msgid "SELECT name FROM sqlite_master WHERE type='table';"
msgstr ""
2021-03-05 15:39:33 +01:00
#: wallet/test/run-db.c:131
2020-08-31 03:22:37 +02:00
msgid "not a valid SQL statement"
msgstr ""
2021-06-17 13:00:24 +02:00
#: wallet/test/run-wallet.c:1451
2021-02-04 22:14:44 +01:00
msgid "SELECT COUNT(1) FROM channel_funding_inflights WHERE channel_id = ?;"
msgstr ""
2021-06-17 03:28:18 +02:00
#: wallet/test/run-wallet.c:1653
2020-08-31 03:22:37 +02:00
msgid "INSERT INTO channels (id) VALUES (1);"
msgstr ""
2021-06-17 03:28:18 +02:00
# SHA256STAMP:c11c71bfdabd0f5e28d6d8b7539e2a1b7315206fb4df5c2870a658ea9c66c1c6