core-lightning/lightningd
niftynei df71f2ffa0 coin_mvt: use the lightning_hrp for *all* coin movement currency
We were (dumbly?) using the `onchain_hrp` for 'chain_mvts' and the
`lightning_hrp` for 'channel_mvts'.

This works fine everywhere *except* for on a signet, where we use
different prefixes.

Since the lightning-hrp set is more diversified (testnet btc
+ signet btc use the same HRP 'onchain'), let's use that.

Should have zero impact on anything other than nodes running on signet.

To preserve your current accounts database without needing to delete,
restart, execute the following: (note preferrably when your node isn't
running).

```
UPDATE chain_events SET currency = 'tbs' WHERE currency = 'tb';
```

Fixes #6534

Changelog-Fixed: `bkpr-listbalances` would crash for nodes on signet with payments in channels, because onchain events were using a different currency than inchannel events.
2023-12-05 20:30:09 -06:00
..
test wallet: remove premature optimization when making payment. 2023-10-28 15:48:26 +10:30
.gitignore Ignore all the deamon inside the git history 2021-10-28 15:51:38 +02:00
anchorspend.c lightningd: rewrite anchor spend to use multiple UTXOs if needed. 2023-11-01 14:11:28 +10:30
anchorspend.h channeld: use anchors on peer's commitment(s) if we can't broadcast our own. 2023-10-27 11:19:56 +10:30
bitcoind.c lightningd: add context arg to bitcoind_sendrawtx() 2023-10-24 15:07:08 +10:30
bitcoind.h lightningd: add context arg to bitcoind_sendrawtx() 2023-10-24 15:07:08 +10:30
chaintopology.c channeld: use anchors on peer's commitment(s) if we can't broadcast our own. 2023-10-27 11:19:56 +10:30
chaintopology.h lightningd: call finished callback *every* time we re-xmit a transaction. 2023-10-24 15:07:08 +10:30
channel.c splice: Reestablish when commit or sig sends fail 2023-11-20 07:35:22 +01:00
channel.h splice: Reestablish when commit or sig sends fail 2023-11-20 07:35:22 +01:00
channel_control.c splice: Reestablish when commit or sig sends fail 2023-11-20 07:35:22 +01:00
channel_control.h lightningd: fix bug where we didn't correctly change outpoint of splice scid. 2023-10-02 11:41:19 +10:30
channel_state.h dual-fund: add new open-commit-ready state 2023-11-02 19:32:05 +10:30
closed_channel.c lightningd: add listclosedchannels command. 2023-03-25 15:28:02 +10:30
closed_channel.h lightningd: add listclosedchannels command. 2023-03-25 15:28:02 +10:30
closing_control.c dual-fund: add new open-commit-ready state 2023-11-02 19:32:05 +10:30
closing_control.h lightningd: pass signed tx through to close callback. 2023-08-02 07:09:28 +09:30
coin_mvts.c coin_mvt: use the lightning_hrp for *all* coin movement currency 2023-12-05 20:30:09 -06:00
coin_mvts.h coin_mvt: tiny, dont import lightningd header 2022-02-07 13:02:09 +10:30
configs.c lightningd: use fsync not fdatasync. 2023-08-08 09:45:10 +09:30
connect_control.c lightningd: use param_check on all commands which do extra checks. 2023-10-26 12:59:55 +10:30
connect_control.h lightningd: stop all subds when we want to disconnect. 2023-10-23 15:48:50 +10:30
datastore.c lightningd: use param_check on all commands which do extra checks. 2023-10-26 12:59:55 +10:30
dual_open_control.c splice: Reestablish when commit or sig sends fail 2023-11-20 07:35:22 +01:00
dual_open_control.h lightningd: simplify funding_depth_cb now it only handles main funding tx. 2023-10-02 11:41:19 +10:30
feerate.c lightningd: remove deprecated_apis global, put into lightningd. 2023-07-09 16:49:48 +09:30
feerate.h lightningd: clean up feerate handling, deprecate old terms. 2023-04-10 07:31:12 +09:30
forwards.c wait forwards: add in_htlc_id 2023-10-28 15:48:26 +10:30
forwards.h wait forwards: add in_htlc_id 2023-10-28 15:48:26 +10:30
gossip_control.c lightningd: use param_check on all commands which do extra checks. 2023-10-26 12:59:55 +10:30
gossip_control.h lightningd: really fill in our own details when channeld says to make channel_update. 2023-10-25 07:00:05 +10:30
hsm_control.c splice: fix WIRE_HSMD_SIGN_SPLICE_TX capability check 2023-11-15 18:42:08 +10:30
hsm_control.h hsmd: rename "capabilities" flags for hsm fds to "permissions" 2023-08-08 14:31:47 +09:30
htlc_end.c lightningd: don't crash if peer manages to spend onchain HTLC after we've abandoned upstream. 2023-07-28 10:18:32 +09:30
htlc_end.h channeld: don't calculate blinding shared secret, let lightningd do it. 2022-10-26 11:29:06 +10:30
htlc_set.c lightningd: split up peer_htlcs a little, create forwards.c 2023-10-28 15:48:26 +10:30
htlc_set.h Makefile: use completely separate spec-derived files for EXPERIMENTAL_FEATURES 2020-09-08 09:42:00 +09:30
invoice.c lightningd: don't print out notification msat fields as strings. 2023-11-21 08:23:39 +01:00
invoice.h sendpays: hook into the wait subsystem. 2023-10-28 15:48:26 +10:30
io_loop_with_timers.c database: pull out database code into a new module 2022-03-05 15:03:34 +10:30
io_loop_with_timers.h lightningd/io_loop_with_timers.c: Move mainloop to its own source file, have chaintopology use it. 2019-05-31 17:57:10 +02:00
jsonrpc.c lightningd: implement recover command. 2023-10-26 12:59:55 +10:30
jsonrpc.h common: add new param_check() which doesn't abort if we're simply checking. 2023-10-26 12:59:55 +10:30
lightningd.c lightningd: wumbo is now the default, setting has no effect. 2023-11-02 08:16:51 +01:00
lightningd.h lightningd: add a feerate offset when updating feerates as opener 2023-11-02 09:49:59 +10:30
log.c common: make json_add_timeabs full precision & renamed json_add_time 2023-09-21 13:31:34 +09:30
log.h lightningd: have opt_log_level take the log_book. 2023-07-19 19:13:57 +09:30
log_status.c lightningd/log: clean up nomenclature. 2023-07-19 19:13:57 +09:30
log_status.h lightningd/log: clean up nomenclature. 2023-07-19 19:13:57 +09:30
Makefile lightningd: split up peer_htlcs a little, create forwards.c 2023-10-28 15:48:26 +10:30
memdump.c lightningd: use param_check on all commands which do extra checks. 2023-10-26 12:59:55 +10:30
memdump.h lightningd: simplify memleak code. 2022-03-10 09:40:09 +10:30
notification.c lightningd: don't print out notification msat fields as strings. 2023-11-21 08:23:39 +01:00
notification.h listforwards: add created_index and updated_index fields. 2023-10-28 15:48:26 +10:30
offer.c wallet: use standard-style iterators for payments. 2023-10-28 15:48:26 +10:30
onchain_control.c lightningd: use wallet_utxo_boost for zero-fee htlc_tx. 2023-11-01 14:11:28 +10:30
onchain_control.h onchaind: remove 'is_replay' logic 2021-12-28 04:42:42 +10:30
onion_message.c lightningd: use param_check on all commands which do extra checks. 2023-10-26 12:59:55 +10:30
onion_message.h common: remove support for pre v0.10.2 onionmessages. 2021-12-01 05:44:28 +10:30
opening_common.c lightningd: pass disconnect flag to subd's errcb. 2023-10-23 15:48:50 +10:30
opening_common.h lightningd: pass disconnect flag to subd's errcb. 2023-10-23 15:48:50 +10:30
opening_control.c lightningd: use param_check on all commands which do extra checks. 2023-10-26 12:59:55 +10:30
opening_control.h lightningd: prepare internal json routines for listpeerchannels. 2023-01-13 10:42:42 +10:30
options.c lightningd: fix up deprecated rest-port, rest-protocol, rest-host and rest-certs option if we would otherwise fail. 2023-11-17 10:51:41 +01:00
options.h lightningd: allow --recover to take a 64-char hex string. 2023-10-26 12:59:55 +10:30
pay.c lightningd: split up peer_htlcs a little, create forwards.c 2023-10-28 15:48:26 +10:30
pay.h wallet: remove premature optimization when making payment. 2023-10-28 15:48:26 +10:30
peer_control.c listpeerchannels: only add the scratch_txid if it exists 2023-11-02 19:32:05 +10:30
peer_control.h lightningd: pass disconnect flag to subd's errcb. 2023-10-23 15:48:50 +10:30
peer_fd.c subdaemons: remove gossipd fd from per-peer daemons. 2022-02-08 11:15:52 +10:30
peer_fd.h subdaemons: remove gossipd fd from per-peer daemons. 2022-02-08 11:15:52 +10:30
peer_htlcs.c lightningd: split up peer_htlcs a little, create forwards.c 2023-10-28 15:48:26 +10:30
peer_htlcs.h lightningd: split up peer_htlcs a little, create forwards.c 2023-10-28 15:48:26 +10:30
ping.c lightningd: use param_check on all commands which do extra checks. 2023-10-26 12:59:55 +10:30
plugin.c lightningd: don't re-enter transaction if we have to call plugin_exclusive_loop. 2023-10-25 10:53:48 +02:00
plugin.h lightningd: handle properly if our own request to plugin is freed. 2023-10-24 15:07:08 +10:30
plugin_control.c lightningd: use param_check on all commands which do extra checks. 2023-10-26 12:59:55 +10:30
plugin_control.h plugins: add command field to subcommand output. 2021-06-25 09:49:33 +09:30
plugin_hook.c lightningd: don't re-enter transaction if we have to call plugin_exclusive_loop. 2023-10-25 10:53:48 +02:00
plugin_hook.h plugin: wire JSON id for commands which caused hooks to fire. 2022-09-16 12:31:45 +09:30
routehint.c lightningd: make channel-query functions all take state. 2023-10-02 11:41:19 +10:30
routehint.h invoice: overhaul routehints to use topology.listincoming, cleanup. 2021-06-16 10:29:17 +09:30
runes.c lightningd: use param_check on all commands which do extra checks. 2023-10-26 12:59:55 +10:30
runes.h runes: ensure that uniqueid is a valid number. 2023-09-12 15:19:02 +09:30
signmessage.c lightningd: use param_check on all commands which do extra checks. 2023-10-26 12:59:55 +10:30
subd.c lightningd: pass disconnect flag to subd's errcb. 2023-10-23 15:48:50 +10:30
subd.h lightningd: pass disconnect flag to subd's errcb. 2023-10-23 15:48:50 +10:30
wait.c lightningd: hook forwards into the wait system. 2023-10-28 15:48:26 +10:30
wait.h lightningd: hook forwards into the wait system. 2023-10-28 15:48:26 +10:30
watch.c track fallbacks for invoices, pt 1 2023-10-26 19:11:17 +10:30
watch.h lightningd: make watch_txid more generic. 2023-10-02 11:41:19 +10:30