2018-07-29 03:53:53 +02:00
# Changelog
All notable changes to this project will be documented in this file.
2019-02-11 18:57:00 +01:00
The format is based on [Keep a Changelog ](https://keepachangelog.com/en/1.0.0/ )
and this project adheres to [Semantic Versioning ](https://semver.org/spec/v2.0.0.html ).
2018-07-29 03:53:53 +02:00
2019-08-21 02:06:17 +02:00
## [Unreleased]
### Added
2019-08-29 17:54:26 +02:00
- JSON API: `listfunds` now lists a blockheight for confirmed transactions
2019-08-28 05:33:55 +02:00
- JSON API: `fundchannel_start` result now includes field `scriptpubkey`
2019-08-21 02:06:17 +02:00
2019-09-05 03:07:16 +02:00
- bolt11: support for parsing feature bits (field `9` ).
2019-09-08 17:26:44 +02:00
- Protocol: we now retransmit `funding_locked` upon reconnection while closing if there was no update
2019-08-22 21:24:59 +02:00
- Plugin: new notifications `sendpay_success` and `sendpay_failure` .
2019-08-21 02:06:17 +02:00
### Changed
2019-08-16 20:12:41 +02:00
- JSON API: `txprepare` now uses `outputs` as parameter other than `destination` and `satoshi`
2019-09-09 23:27:20 +02:00
- Build: Now requires [`gettext` ](https://www.gnu.org/software/gettext/ )
2019-08-29 09:56:44 +02:00
- JSON API: `fundchannel_cancel` is extended to work before funding broadcast.
2019-08-16 20:12:41 +02:00
2019-08-21 02:06:17 +02:00
### Deprecated
Note: You should always set `allow-deprecated-apis=false` to test for
changes.
### Removed
2019-09-06 08:41:41 +02:00
- JSON API: `short_channel_id` parameters in JSON commands with `:` separators (deprecated since 0.7.0).
2019-09-06 08:41:43 +02:00
- JSON API: `description` parameters in `pay` and `sendpay` (deprecated since 0.7.0).
- JSON API: `description` output field in `waitsendpay` and `sendpay` (deprecated since 0.7.0).
2019-09-06 08:41:43 +02:00
- JSON API: `listpayments` (deprecated since 0.7.0).
2019-09-06 08:41:41 +02:00
2019-08-21 02:06:17 +02:00
### Fixed
2019-09-04 13:16:23 +02:00
- Relative `--lightning_dir` is now working again.
2019-09-11 01:53:41 +02:00
- Build: MacOS now builds again (missing pwritev).
2019-09-04 13:16:23 +02:00
2019-08-21 02:06:17 +02:00
### Security
2019-08-19 03:42:32 +02:00
## [0.7.2.1] - 2019-08-19: "Nakamoto's Pre-approval by US Congress"
2019-08-15 09:12:25 +02:00
This release named by Antoine Poinsot @darosior .
2019-06-30 15:17:45 +02:00
2019-08-19 03:42:32 +02:00
(Technically a .1 release, as it contains last-minute fixes after 0.7.2 was tagged)
2019-06-30 15:17:45 +02:00
### Added
2019-08-12 00:54:25 +02:00
- JSON API: a new command `plugin` allows one to manage plugins without restarting `lightningd` .
- Plugin: a new boolean field can be added to a plugin manifest, `dynamic` . It allows a plugin to tell if it can be started or stopped "on-the-fly".
- Plugin: a new boolean field is added to the `init` 's `configuration` , `startup` . It allows a plugin to know if it has been started on `lightningd` startup.
- Plugin: new notifications `invoice_payment` , `forward_event` and `channel_opened` .
2019-08-10 02:25:19 +02:00
- Protocol: `--enable-experimental-features` adds gossip query extensions
aka https://github.com/lightningnetwork/lightning-rfc/pull/557
2019-08-12 00:54:25 +02:00
- contrib: new `bootstrap-node.sh` to connect to random mainnet nodes.
- JSON API: `listfunds` now returns also `funding_output` for `channels`
- Plugin: plugins can now suggest `lightning-cli` default to -H for responses.
- Lightningd: add support for `signet` networks using the `--network=signet` or `--signet` startup option
2019-07-25 12:30:45 +02:00
2019-06-30 15:17:45 +02:00
### Changed
2019-08-12 00:54:25 +02:00
- Build: now requires `python3-mako` to be installed, i.e. `sudo apt-get install python3-mako`
2019-08-08 08:46:05 +02:00
- JSON API: `close` optional arguments have changed: it now defaults to unilateral close after 48 hours.
2019-08-12 00:54:25 +02:00
- Plugin: if the config directory has a `plugins` subdirectory, those are loaded.
2019-07-28 15:24:57 +02:00
- lightningd: check bitcoind version when setup topology and confirm the version not older than v0.15.0.
2019-08-12 00:54:25 +02:00
- Protocol: space out reconnections on startup if we have more than 5 peers.
2019-06-16 08:04:10 +02:00
- JSON API: `listforwards` includes the 'payment_hash' field.
2019-08-12 00:54:25 +02:00
- Plugin: now plugins always run from the `lightning-dir` for easy local storage.
2019-07-16 01:20:37 +02:00
2019-06-30 15:17:45 +02:00
### Deprecated
Note: You should always set `allow-deprecated-apis=false` to test for
changes.
2019-08-12 00:54:25 +02:00
- Plugin: using startup-relative paths for `plugin` and `plugin-dir` : they're now relative to `lightning-dir` .
2019-08-15 02:31:23 +02:00
- JSON API: `listforwards` removed dummy (zero) fields for `out_msat` , `fee_msat` , `in_channel` and `out_channel` if unknown (i.e. deleted from db, or `status` is `local-failed` .
2019-08-03 08:25:12 +02:00
2019-06-30 15:17:45 +02:00
### Removed
### Fixed
2019-07-14 02:02:15 +02:00
- Plugin: `pay` no longer crashes on timeout.
2019-07-25 04:46:34 +02:00
- Plugin: `disconnect` notifier now called if remote side disconnects.
2019-07-26 04:11:29 +02:00
- channeld: ignore, and simply try reconnecting if lnd sends "sync error".
2019-08-05 06:48:05 +02:00
- Protocol: we now correctly ignore unknown odd messages.
2019-08-07 11:49:53 +02:00
- wallet: We will now backfill blocks below our wallet start height on demand when we require them to verify gossip messages. This fixes an issue where we would not remove channels on spend that were opened below that start height because we weren't tracking the funding output.
2019-08-10 12:48:20 +02:00
- Detect when we're still syncing with bitcoin network: don't send or receive
HTLCs or allow `fundchannel` .
2019-08-14 12:39:31 +02:00
- Rare onchaind error where we don't recover our own unilateral close with multiple same-preimage HTLCs fixed.
2019-07-14 02:02:15 +02:00
2019-06-30 15:17:45 +02:00
### Security
2019-06-29 03:32:57 +02:00
## [0.7.1] - 2019-06-29: "The Unfailing Twitter Consensus Algorithm"
This release named by (C-Lightning Core Team member) Lisa Neigut @niftynei .
2019-03-02 15:27:18 +01:00
### Added
2019-06-12 06:05:46 +02:00
- Protocol: we now enforce `option_upfront_shutdown_script` if a peer negotiates it.
2019-04-17 11:38:31 +02:00
- JSON API: New command `setchannelfee` sets channel specific routing fees.
2019-06-12 06:05:46 +02:00
- JSON API: new withdraw methods `txprepare` , `txsend` and `txdiscard` .
- JSON API: add three new RPC commands: `fundchannel_start` , `fundchannel_complete` and `fundchannel_cancel` . Allows a user to initiate and complete a channel open using funds that are in a external wallet.
2019-06-18 00:47:26 +02:00
- Plugin: new hooks `db_write` for intercepting database writes, `invoice_payment` for intercepting invoices before they're paid, `openchannel` for intercepting channel opens, and `htlc_accepted` to decide whether to resolve, reject or continue an incoming or forwarded payment..
2019-06-12 06:05:46 +02:00
- Plugin: new notification `warning` to report any `LOG_UNUSUAL` /`LOG_BROKEN` level event.
- Plugin: Added a default plugin directory : `lightning_dir/plugins` . Each plugin directory it contains will be added to lightningd on startup.
- Plugin: the `connected` hook can now send an `error_message` to the rejected peer.
2019-03-04 04:13:20 +01:00
- JSON API: `newaddr` outputs `bech32` or `p2sh-segwit` , or both with new `all` parameter (#2390)
2019-02-26 17:57:19 +01:00
- JSON API: `listpeers` status now shows how many confirmations until channel is open (#2405)
2019-04-03 10:20:40 +02:00
- Config: Adds parameter `min-capacity-sat` to reject tiny channels.
2019-04-03 21:28:33 +02:00
- JSON API: `listforwards` now includes the time an HTLC was received and when it was resolved. Both are expressed as UNIX timestamps to facilitate parsing (Issue [#2491 ](https://github.com/ElementsProject/lightning/issues/2491 ), PR [#2528 ](https://github.com/ElementsProject/lightning/pull/2528 ))
2019-04-26 09:19:04 +02:00
- JSON API: `listforwards` now includes the local_failed forwards with failcode (Issue [#2435 ](https://github.com/ElementsProject/lightning/issues/2435 ), PR [#2524 ](https://github.com/ElementsProject/lightning/pull/2524 ))
2019-05-14 11:36:05 +02:00
- DB: Store the signatures of channel announcement sent from remote peer into DB, and init channel with signatures from DB directly when reenable the channel.
(Issue [#2409 ](https://github.com/ElementsProject/lightning/issues/2409 ))
2019-05-31 09:28:06 +02:00
- JSON API: `listchannels` has new fields `htlc_minimum_msat` and `htlc_maximum_msat` .
2019-03-04 04:13:20 +01:00
2019-03-02 15:27:18 +01:00
### Changed
2019-06-23 02:43:28 +02:00
- Gossip: we no longer compact the `gossip_store` file dynamically, due to lingering bugs. Restart if it gets too large.
2019-06-12 06:05:46 +02:00
- Protocol: no longer ask for entire gossip flood from peers, unless we're missing gossip.
2019-04-10 06:58:24 +02:00
- JSON API: `invoice` expiry defaults to 7 days, and can have s/m/h/d/w suffixes.
2019-04-15 22:48:11 +02:00
- Config: Increased default amount for minimal channel capacity from 1k sat to 10k sat.
2019-06-12 06:05:46 +02:00
- JSON API: A new parameter is added to `fundchannel` , which now accepts an utxo array to use to fund the channel.
2019-05-15 12:48:27 +02:00
- Build: Non-developer builds are now done with "-Og" optimization.
2019-05-22 01:57:17 +02:00
- JSON API: `pay` will no longer return failure until it is no longer retrying; previously it could "timeout" but still make the payment.
2019-05-27 13:01:57 +02:00
- JSON API: the command objects that `help` outputs now contain a new string field : `category` (can be "bitcoin", "channels", "network", "payment", "plugins", "utility", "developer" for native commands, or any other new category set by a plugin).
2019-06-12 06:05:46 +02:00
- Plugin: a plugin can now set the category of a newly created RPC command. This possibility has been added to libplugin.c and pylightning.
- lightning-cli: the human readable help is now more human and more readable : commands are sorted alphabetically and ordered by categories.
2019-04-10 05:21:11 +02:00
2019-03-02 15:27:18 +01:00
### Deprecated
Note: You should always set `allow-deprecated-apis=false` to test for
changes.
2019-03-04 04:13:49 +01:00
- JSON API: `newaddr` output field `address` : use `bech32` or `p2sh-segwit` instead.
2019-03-02 15:27:18 +01:00
### Removed
2019-04-11 07:57:23 +02:00
- JSON RPC: `global_features` and `local_features` fields and `listchannels` ' `flags` field. (Deprecated since 0.6.2).
2019-06-12 02:38:55 +02:00
- pylightning: Remove RPC support for c-lightning before 0.6.3.
2019-04-11 07:57:23 +02:00
2019-03-02 15:27:18 +01:00
### Fixed
2019-06-12 06:05:46 +02:00
- Protocol: reconnection during closing negotiation now supports
2019-04-08 03:35:13 +02:00
`option_data_loss_protect` properly.
2019-03-12 01:40:55 +01:00
- `--bind-addr=<path>` fixed for nodes using local sockets (eg. testing).
2019-04-08 01:52:19 +02:00
- Unannounced local channels were forgotten for routing on restart until reconnection occurred.
2019-04-10 05:14:23 +02:00
- lightning-cli: arguments containing `"` now succeed, rather than causing JSON errors.
2019-06-12 06:05:46 +02:00
- Protocol: handle lnd sending more messages before `reestablish` ; don't fail channel, and handle older lnd's spurious empty commitments.
2019-04-18 04:10:34 +02:00
- Fixed `fundchannel` crash when we have many UTXOs and we skip unconfirmed ones.
2019-04-16 05:22:21 +02:00
- lightningd: fixed occasional hang on `connect` when peer had sent error.
2019-05-10 03:17:49 +02:00
- JSON RPC: `decodeinvoice` and `pay` now handle unknown invoice fields properly.
2019-06-04 12:03:02 +02:00
- JSON API: `waitsendpay` (PAY_STOPPED_RETRYING) error handler now returns valid JSON
2019-06-08 04:57:27 +02:00
- protocol: don't send multiple identical feerate changes if we want the feerate higher than we can afford.
2019-06-12 02:38:55 +02:00
- JSON API: `stop` now only returns once lightningd has released all resources.
2019-03-12 01:40:55 +01:00
2019-03-02 15:27:18 +01:00
### Security
2019-03-01 10:50:09 +01:00
## [0.7.0] - 2019-02-28: "Actually an Altcoin"
This release named by Mark Beckwith @wythe .
2019-01-11 06:03:27 +01:00
### Added
2019-01-11 06:52:36 +01:00
- plugins: fully enabled, and ready for you to write some!
2019-01-15 11:04:07 +01:00
- plugins: `pay` is now a plugin.
2019-02-01 04:03:27 +01:00
- protocol: `pay` will now use routehints in invoices if it needs to.
2019-03-01 10:50:09 +01:00
- build: reproducible source zipfile and Ubuntu 18.04.1 build.
2019-02-23 10:10:08 +01:00
- JSON API: New command `paystatus` gives detailed information on `pay` commands.
2019-02-21 03:40:31 +01:00
- JSON API: `getroute` , `invoice` , `sendpay` and `pay` commands `msatoshi`
parameter can have suffixes `msat` , `sat` (optionally with 3 decimals) or `btc`
2019-02-23 02:05:51 +01:00
(with 1 to 11 decimal places).
2019-02-21 03:40:31 +01:00
- JSON API: `fundchannel` and `withdraw` commands `satoshi`
parameter can have suffixes `msat` (must end in `000` ), `sat` or `btc`
2019-02-23 02:05:51 +01:00
(with 1 to 8 decimal places).
2019-02-21 03:40:31 +01:00
- JSON API: `decodepay` , `getroute` , `sendpay` , `pay` , `listpeers` , `listfunds` , `listchannels` and
all invoice commands now return an `amount_msat` field which has an `msat` suffix.
- JSON API: `listfunds` `channels` now has `_msat` fields for each existing raw amount field, with `msat` suffix.
2019-01-15 05:12:27 +01:00
- JSON API: `waitsendpay` now has an `erring_direction` field.
- JSON API: `listpeers` now has a `direction` field in `channels` .
2019-01-15 05:09:27 +01:00
- JSON API: `listchannels` now takes a `source` option to filter by node id.
2019-02-01 06:53:39 +01:00
- JSON API: `getroute` `riskfactor` argument is simplified; `pay` now defaults to setting it to 10.
2019-02-23 04:11:12 +01:00
- JSON API: `sendpay` now takes a `bolt11` field, and it's returned in `listpayments` and `waitsendpay` .
2019-02-21 21:28:54 +01:00
- JSON API: `fundchannel` and `withdraw` now have a new parameter `minconf` that limits coinselection to outputs that have at least `minconf` confirmations (default 1). (#2380)
2019-02-22 17:50:01 +01:00
- JSON API: `listfunds` now displays addresses for all outputs owned by the wallet (#2387)
2019-02-23 04:11:14 +01:00
- JSON API: `waitsendpay` and `sendpay` output field `label` as specified by `sendpay` call.
2019-02-23 06:00:04 +01:00
- JSON API: `listpays` command for higher-level payment view than `listpayments` , especially important with multi-part-payments coming.
2019-02-23 06:00:04 +01:00
- JSON API: `listpayments` is now `listsendpays` .
2019-02-23 10:10:08 +01:00
- lightning-cli: `help <cmd>` finds man pages even if `make install` not run.
- pylightning: New class 'Millisatoshi' can be used for JSON API, and new '_msat' fields are turned into this on reading.
2019-01-11 06:10:22 +01:00
2019-01-11 06:03:27 +01:00
### Changed
2019-02-23 10:10:08 +01:00
- protocol: `option_data_loss_protect` is now enabled by default.
- JSON API: The `short_channel_id` separator has been changed to be `x` to match the specification.
2019-01-11 06:31:36 +01:00
- JSON API: `listpeers` now includes `funding_allocation_msat` , which returns a map of the amounts initially funded to the channel by each peer, indexed by channel id.
2019-02-04 11:55:35 +01:00
- JSON API: `help` with a `command` argument gives a JSON array, like other commands.
2019-02-23 04:11:14 +01:00
- JSON API: `sendpay` `description` parameter is renamed `label` .
2019-02-23 06:00:02 +01:00
- JSON API: `pay` now takes an optional `label` parameter for labelling payments, in place of never-used `description` .
2019-02-23 10:10:08 +01:00
- build: we'll use the system libbase58 and libsodium if found suitable.
2019-01-10 22:42:18 +01:00
2019-01-11 06:03:27 +01:00
### Deprecated
Note: You should always set `allow-deprecated-apis=false` to test for
changes.
2019-02-21 03:40:31 +01:00
We recommend that you transition to the reading the new JSON `_msat`
fields for your own sanity checking, and that you similarly
provide appropriate suffixes for JSON input fields.
2019-02-08 00:23:25 +01:00
- JSON API: `short_channel_id` fields in JSON commands with `:` separators (use `x` instead).
2019-02-23 06:00:02 +01:00
- JSON API: `pay` `description` is deprecated, as is support for BOLT11 strings using `h` .
2019-02-23 04:11:14 +01:00
- JSON API: `sendpay` parameter `description` and `waitsendpay` and `sendpay` output fields `description` (now `label` ).
2019-02-23 06:00:04 +01:00
- JSON API: `listpayments` has been deprecated (you probably want `listpays` )
2019-02-08 00:23:25 +01:00
2019-01-11 06:03:27 +01:00
### Removed
2019-01-18 07:37:08 +01:00
- JSON API: the `waitsendpay` command error return no longer includes `channel_update`
2019-01-11 06:03:27 +01:00
### Fixed
gossipd: handle overflowing query properly (avoid slow 100% CPU reports)
Don't do this:
(gdb) bt
#0 0x00007f37ae667c40 in ?? () from /lib/x86_64-linux-gnu/libz.so.1
#1 0x00007f37ae668b38 in ?? () from /lib/x86_64-linux-gnu/libz.so.1
#2 0x00007f37ae669907 in deflate () from /lib/x86_64-linux-gnu/libz.so.1
#3 0x00007f37ae674c65 in compress2 () from /lib/x86_64-linux-gnu/libz.so.1
#4 0x000000000040cfe3 in zencode_scids (ctx=0xc1f118, scids=0x2599bc49 "\a\325{", len=176320) at gossipd/gossipd.c:218
#5 0x000000000040d0b3 in encode_short_channel_ids_end (encoded=0x7fff8f98d9f0, max_bytes=65490) at gossipd/gossipd.c:236
#6 0x000000000040dd28 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=17290511, number_of_blocks=8) at gossipd/gossipd.c:576
#7 0x000000000040ddc6 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=17290511, number_of_blocks=16) at gossipd/gossipd.c:595
#8 0x000000000040ddee in queue_channel_ranges (peer=0x3868fc8, first_blocknum=17290495, number_of_blocks=32) at gossipd/gossipd.c:596
#9 0x000000000040ddc6 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=17290495, number_of_blocks=64) at gossipd/gossipd.c:595
#10 0x000000000040ddee in queue_channel_ranges (peer=0x3868fc8, first_blocknum=17290431, number_of_blocks=128) at gossipd/gossipd.c:596
#11 0x000000000040ddc6 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=17290431, number_of_blocks=256) at gossipd/gossipd.c:595
#12 0x000000000040ddc6 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=17290431, number_of_blocks=512) at gossipd/gossipd.c:595
#13 0x000000000040ddc6 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=17290431, number_of_blocks=1024) at gossipd/gossipd.c:595
#14 0x000000000040ddee in queue_channel_ranges (peer=0x3868fc8, first_blocknum=17289408, number_of_blocks=2047) at gossipd/gossipd.c:596
#15 0x000000000040ddc6 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=17289408, number_of_blocks=4095) at gossipd/gossipd.c:595
#16 0x000000000040ddc6 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=17289408, number_of_blocks=8191) at gossipd/gossipd.c:595
#17 0x000000000040ddc6 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=17289408, number_of_blocks=16382) at gossipd/gossipd.c:595
#18 0x000000000040ddc6 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=17289408, number_of_blocks=32764) at gossipd/gossipd.c:595
#19 0x000000000040ddc6 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=17289408, number_of_blocks=65528) at gossipd/gossipd.c:595
#20 0x000000000040ddc6 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=17289408, number_of_blocks=131056) at gossipd/gossipd.c:595
#21 0x000000000040ddc6 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=17289408, number_of_blocks=262112) at gossipd/gossipd.c:595
#22 0x000000000040ddc6 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=17289408, number_of_blocks=524225) at gossipd/gossipd.c:595
#23 0x000000000040ddc6 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=17289408, number_of_blocks=1048450) at gossipd/gossipd.c:595
#24 0x000000000040ddc6 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=17289408, number_of_blocks=2096900) at gossipd/gossipd.c:595
#25 0x000000000040ddc6 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=17289408, number_of_blocks=4193801) at gossipd/gossipd.c:595
#26 0x000000000040ddc6 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=17289408, number_of_blocks=8387603) at gossipd/gossipd.c:595
#27 0x000000000040ddc6 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=17289408, number_of_blocks=16775207) at gossipd/gossipd.c:595
#28 0x000000000040ddee in queue_channel_ranges (peer=0x3868fc8, first_blocknum=514201, number_of_blocks=33550414) at gossipd/gossipd.c:596
#29 0x000000000040ddc6 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=514201, number_of_blocks=67100829) at gossipd/gossipd.c:595
#30 0x000000000040ddc6 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=514201, number_of_blocks=134201659) at gossipd/gossipd.c:595
#31 0x000000000040ddc6 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=514201, number_of_blocks=268403318) at gossipd/gossipd.c:595
#32 0x000000000040ddc6 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=514201, number_of_blocks=536806636) at gossipd/gossipd.c:595
#33 0x000000000040ddc6 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=514201, number_of_blocks=1073613273) at gossipd/gossipd.c:595
#34 0x000000000040ddc6 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=514201, number_of_blocks=2147226547) at gossipd/gossipd.c:595
#35 0x000000000040ddc6 in queue_channel_ranges (peer=0x3868fc8, first_blocknum=514201, number_of_blocks=4294453094) at gossipd/gossipd.c:595
#36 0x000000000040df26 in handle_query_channel_range (peer=0x3868fc8, msg=0x37e0678 "\001\ao\342\214\n\266\361\263r\301\246\242F\256c\367O\223\036\203e\341Z\b\234h\326\031") at gossipd/gossipd.c:625
The cause was that converting a block number to an scid truncates it
at 24 bits. When we look through the index from (truncated number) to
(real end number) we get every channel, which is too large to encode,
so we iterate again.
This fixes both that problem, and also the issue that we'd end up
dividing into many empty sections until we get to the highest block
number. Instead, we just tack the empty blocks on to then end of the
final query.
(My initial version requested 0xFFFFFFFE blocks, but the dev code
which records what blocks were returned can't make a bitmap that big
on 32 bit).
Reported-by: George Vaccaro
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-01-15 10:37:57 +01:00
- Protocol: handling `query_channel_range` for large numbers of blocks
(eg. 4 billion) was slow due to a bug.
2019-01-29 05:51:43 +01:00
- Fixed occasional deadlock with peers when exchanging huge amounts of gossip.
2019-02-23 10:10:08 +01:00
- Fixed a crash when running in daemon-mode due to db filename overrun (#2348)
2019-02-20 12:16:59 +01:00
- Handle lnd sending premature 'funding_locked' message when we're expected 'reestablish';
we used to close channel if this happened.
2019-02-21 12:06:32 +01:00
- Cleanup peers that started opening a channel, but then disconnected. These
would leave a dangling entry in the DB that would cause this peer to be
unable to connect. (PR #2371 )
2019-02-23 10:10:08 +01:00
- You can no longer make giant unpayable "wumbo" invoices.
- CLTV of total route now correctly evaluated when finding best route.
- `riskfactor` arguments to `pay` and `getroute` now have an effect.
2019-03-11 20:03:14 +01:00
- Fixed the version of bip32 private_key to BIP32_VER_MAIN_PRIVATE: we used
BIP32_VER_MAIN_PRIVATE for bitcoin/litecoin mainnet, and BIP32_VER_TEST_PRIVATE
for others. (PR #2436 )
2019-01-11 06:03:27 +01:00
### Security
2019-01-11 03:07:24 +01:00
## [0.6.3] - 2019-01-09: "The Smallblock Conspiracy"
This release named by @molxyz and [@ctrlbreak ](https://twitter.com/ctrlbreak ).
2018-11-02 01:41:45 +01:00
### Added
2018-11-27 00:48:18 +01:00
- JSON API: New command `check` checks the validity of a JSON API call without running it.
2018-11-21 11:32:19 +01:00
- JSON API: `getinfo` now returns `num_peers` `num_pending_channels` ,
`num_active_channels` and `num_inactive_channels` fields.
2018-11-20 02:46:23 +01:00
- JSON API: use `\n\n` to terminate responses, for simplified parsing (pylightning now relies on this)
2018-12-08 00:40:14 +01:00
- JSON API: `fundchannel` now includes an `announce` option, when false it will keep channel private. Defaults to true.
2019-01-08 00:47:39 +01:00
- JSON API: `listpeers` 's `channels` now includes a `private` flag to indicate if channel is announced or not.
2019-01-15 04:58:27 +01:00
- JSON API: `invoice` route hints may now include private channels if you have no public ones, unless new option `exposeprivatechannels` is false.
2019-01-11 00:29:55 +01:00
- Plugins: experimental plugin support for `lightningd` , including option passthrough and JSON-RPC passthrough.
2018-11-18 10:43:39 +01:00
2018-11-02 01:41:45 +01:00
### Changed
2018-11-20 03:06:02 +01:00
- JSON API: `pay` and `decodepay` accept and ignore `lightning:` prefixes.
2018-12-05 15:33:59 +01:00
- pylightning: Allow either keyword arguments or positional arguments.
2018-12-04 21:59:08 +01:00
- JSON-RPC: messages are now separated by 2 consecutive newlines.
2018-12-21 07:25:31 +01:00
- JSON-RPC: `jsonrpc` :`2.0` now included in json-rpc command calls. complies with spec.
2018-11-20 03:06:02 +01:00
2018-11-02 01:41:45 +01:00
### Deprecated
Note: You should always set `allow-deprecated-apis=false` to test for
changes.
2018-12-04 21:59:08 +01:00
- pylightning: Support for pre-2-newline JSON-RPC (< = 0.6.2 lightningd) is deprecated.
2018-11-02 01:41:45 +01:00
### Removed
2018-12-10 04:10:16 +01:00
- option_data_loss_protect is now only offered if EXPERIMENTAL_FEATURES is enabled, since it seems incompatible with lnd and has known bugs.
2018-11-02 01:41:45 +01:00
### Fixed
- JSON API: uppercase invoices now parsed correctly (broken in 0.6.2).
2018-11-20 02:46:32 +01:00
- JSON API: commands are once again read even if one hasn't responded yet (broken in 0.6.2).
2018-11-22 06:19:19 +01:00
- Protocol: allow lnd to send `update_fee` before `funding_locked` .
2018-12-14 06:20:32 +01:00
- Protocol: fix limit on how much funder can send (fee was 1000x too small)
2019-01-08 01:53:25 +01:00
- Protocol: don't send invalid onion errors if peer says onion was bad.
2019-01-09 04:23:57 +01:00
- Protocol: don't crash when peer sends a 0-block-expiry HTLC.
2018-11-18 10:43:28 +01:00
- pylightning: handle multiple simultanous RPC replies reliably.
2019-02-22 04:02:37 +01:00
- build: we use `--prefix` as handed to `./configure`
2018-12-14 06:20:32 +01:00
2018-11-02 01:41:45 +01:00
### Security
2018-10-26 02:56:21 +02:00
## [0.6.2] - 2018-10-20: "The Consensus Loving Nasal Daemon"
2018-10-12 08:15:16 +02:00
This release named by practicalswift.
2018-09-19 04:55:42 +02:00
### Added
2018-09-19 04:56:54 +02:00
- JSON API: `listpeers` has new field `scratch_txid` : the latest tx in channel.
2018-09-27 07:33:25 +02:00
- JSON API: `listpeers` has new array `htlcs` : the current live payments.
2018-09-20 02:59:46 +02:00
- JSON API: `listchannels` has two new fields: `message_flags` and `channel_flags` . This replaces `flags` .
2018-10-16 05:41:53 +02:00
- JSON API: `invoice` now adds route hint to invoices for incoming capacity (RouteBoost), and warns if insufficient capacity.
2018-10-19 06:19:52 +02:00
- JSON API: `listforwards` lists all forwarded payments, their associated channels, and fees.
- JSON API: `getinfo` shows forwarding fees earnt as `msatoshi_fees_collected` .
2018-09-20 06:10:37 +02:00
- Bitcoind: more parallelism in requests, for very slow nodes.
- Testing: fixed logging, cleaner interception of bitcoind, minor fixes.
2018-10-16 05:41:53 +02:00
- Protocol: we set and handle the new `htlc_maximum_msat` channel_update field.
2018-09-19 04:56:54 +02:00
2018-09-19 04:55:42 +02:00
### Changed
2018-09-25 07:43:56 +02:00
- Protocol: `channel_update` sent to disable channel only if we reject an HTLC.
2018-09-24 03:42:00 +02:00
- Protocol: we don't send redundant `node_announcement` on every new channel.
2018-10-13 06:09:49 +02:00
- Config: config file can override `lightning-dir` (makes sense with `--conf` ).
- Config: `--conf` option is now relative to current directory, not `lightning-dir` .
2018-10-16 05:40:15 +02:00
- lightning-cli: `help <cmd>` prints basic information even if no man page found.
2018-10-18 13:52:11 +02:00
- JSON API: `getinfo` now reports global statistics about forwarded payments, including total fees earned and amounts routed.
2018-09-25 07:43:56 +02:00
2018-09-19 04:55:42 +02:00
### Deprecated
Note: You should always set `allow-deprecated-apis=false` to test for
changes.
2018-09-20 02:59:46 +02:00
- JSON RPC: `listchannels` ' `flags` field. This has been split into two fields, see Added.
2018-09-28 05:24:25 +02:00
- JSON RPC: `global_features` and `local_features` fields: use `globalfeatures` and `localfeatures` as per BOLT #1 .
2018-09-20 02:59:46 +02:00
2018-09-19 04:55:42 +02:00
### Removed
2019-01-15 04:55:27 +01:00
- JSON API: the optional 'seed' parameter to `getroute` was removed.
2018-09-19 04:55:42 +02:00
### Fixed
2018-09-20 06:10:37 +02:00
- Startup: more coherent complaint if daemon already running.
2018-10-10 00:39:06 +02:00
- Lightningd: correctly save full HTLCs across restarts; fixup old databases.
2018-09-20 06:10:37 +02:00
- JSON RPC: `getinfo` now shows correct Tor port.
- JSON RPC: `ping` now works even after one peer fails to respond.
- JSON RPC: `getroute` `fuzzpercent` and `pay` `maxfeepercent` can now be > 100.
2018-09-29 08:33:53 +02:00
- JSON RPC: `riskfactor` in `pay` and `getroute` no longer always treated as 1.
2018-10-12 14:58:36 +02:00
- JSON-RPC: `listpeers` was always reporting 0 for all stats.
2018-10-19 03:17:44 +02:00
- JSON RPC: `withdraw all` says `Cannot afford transaction` if you have
absolutely no funds, rather than `Output 0 satoshis would be dust` .
2018-10-16 05:18:47 +02:00
- Protocol: don't send gossip about closed channels.
2018-09-20 06:10:37 +02:00
- Protocol: fix occasional deadlock when both peers flood with gossip.
2018-09-28 02:05:35 +02:00
- Protocol: fix occasional long delay on sending `reply_short_channel_ids_end` .
2018-09-24 03:41:14 +02:00
- Protocol: re-send `node_announcement` when address/alias/color etc change.
onchaind: allow multiple candidate HTLCs for output match
When we have multiple HTLCs with the same preimage and the same CLTV,
it doesn't matter what order we treat them (they're literally
identical). But when we offer HTLCs with the same preimage but
different CLTVs, the commitment tx outputs look identical, but the
HTLC txs are different: if we simply take the first HTLC which matches
(and that's not the right one), the HTLC signature we got from them
won't match. As we rely on the signature matching to detect the fee
paid, we get:
onchaind: STATUS_FAIL_INTERNAL_ERROR: grind_fee failed
So we alter match_htlc_output() to return an array of all matching
HTLC indices, which can have more than one entry for offered HTLCs.
If it's our commitment, we loop through until one of the HTLC
signatures matches. If it's their commitment, we choose the HTLC with
the largest CLTV: we're going to ignore it once that hits anyway, so
this is the most conservative approach. If it's a penalty, it doesn't
matter since we steal all HTLC outputs the same independent of CLTV.
For accepted HTLCs, the CLTV value is encoded in the witness script,
so this confusion isn't possible. We nonetheless assert that the
CLTVs all match in that case.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-10-23 11:40:23 +02:00
- Protocol: multiple HTLCs with the same payment_hash are handled correctly.
2018-10-16 05:21:48 +02:00
- Options: 'autotor' defaults to port 9051 if not specified.
2018-09-20 06:10:37 +02:00
2018-09-19 04:55:42 +02:00
### Security
2018-09-12 01:44:28 +02:00
## [0.6.1] - 2018-09-11: "Principled Opposition To Segwit"
2018-08-25 02:33:35 +02:00
This release named by ZmnSCPxj.
2018-07-29 03:53:53 +02:00
### Added
- Protocol: gossipd now deliberately delays spamming with `channel_update` .
2018-08-09 04:53:18 +02:00
- Protocol: liveness ping when we commit changes but peer is idle: speeds up
failures and reduces forced closures.
2018-08-17 06:16:34 +02:00
- Protocol: `option_data_loss_protect` now supported to protect peers
against being out-of-date.
2018-08-25 02:33:35 +02:00
- JSON API: Added description to invoices and payments (#1740).
- JSON API: `getinfo` has new fields `alias` and `color` .
- JSON API: `listpeers` has new fields `global_features` and `local_features` .
- JSON API: `listnodes` has new field `global_features` .
- JSON API: `ping` command to send a ping to a connected peer.
2018-08-28 22:46:36 +02:00
- JSON API: `feerates` command to retrieve current fee estimates.
2018-08-27 07:13:57 +02:00
- JSON API: `withdraw` and `fundchannel` can be given manual feerate.
2018-08-25 02:33:35 +02:00
- Config: `--conf` option to set config file.
- Documentation: Added CHANGELOG.md
- pylightning: RpcError now has `method` and `payload` fields.
- Sending lightningd a SIGHUP will make it reopen its `log-file` , if any.
2018-07-29 03:53:53 +02:00
### Changed
2018-08-25 02:33:35 +02:00
- Protocol: Fee estimates are now smoothed over time, to avoid sudden jumps.
2018-07-29 03:53:53 +02:00
- Config: You can only announce one address if each type (IPv4, IPv6,
TORv2, TORv3).
- lightning-cli: the help command for a specific command now runs the
`man` command.
- HSM: The HSM daemon now maintains the per-peer secrets, rather than
handing them out. It's still lax in what it signs though.
2018-08-09 02:25:30 +02:00
- connectd: A new daemon `lightning_connectd` handles connecting
to/from peers, instead of `gossipd` doing that itself. `lightning_openingd` now
handles peers immediately, even if they never actually open a channel.
2018-07-29 03:53:53 +02:00
- Test: `python-xdist` is now a dependency for tests.
- Logging: JSON connections no longer spam debug logs.
2018-07-30 21:56:33 +02:00
- Routing: We no longer consider channels that are not usable either because of
their capacity or their `htlc_minimum_msat` parameter (#1777)
2018-08-09 02:27:30 +02:00
- We now try to connect to all known addresses for a peer, not just
the one given or the first one announced.
2018-08-22 13:17:20 +02:00
- Crash logs are now placed one-per file like `crash.log.20180822233752`
2018-08-24 04:22:02 +02:00
- We will no longer allow withdrawing funds or funding channels if we
2018-08-28 22:46:36 +02:00
do not have a fee estimate (eg. bitcoind not synced); use new `feerate` arg.
2018-08-09 02:25:30 +02:00
2018-07-29 03:53:53 +02:00
### Deprecated
### Removed
- JSON API: `listpeers` results no long have `alias` and `color` fields;
they're in `listnodes` (we used to internally merge the information).
2018-08-09 02:25:30 +02:00
- JSON API: `listpeers` will never have `state` field (it accidentally
used to exist and set to `GOSSIPING` before we opened a channel).
`connected` will indicate if we're connected, and the `channels`
array indicates individual channel states (if any).
2018-08-28 22:46:36 +02:00
- Config: `default-fee-rate` is no longer available; use explicit `feerate`
option if necessary.
2018-07-29 04:08:29 +02:00
- Removed all Deprecated options from 0.6.
2018-07-29 03:53:53 +02:00
### Fixed
- Protocol: `node_announcement` multiple addresses are correctly ordered and uniquified.
2018-08-25 02:33:35 +02:00
- Protocol: if we can't estimate feerate, be almost infinitely
tolerant of other side setting fees to avoid unilateral close.
2018-07-29 03:53:53 +02:00
- JSON API: `listnodes` : now displays node aliases and colors even if they
don't advertise a network address
2018-07-29 07:51:38 +02:00
- JSON API: `fundchannel all` : now restricts to 2^24-1 satoshis rather than failing.
2018-08-25 02:33:35 +02:00
- JSON API: `listnodes` : now correctly prints `addresses` if more than
one is advertised.
- Config: `bind-addr` of a publicly accessible network address was announced.
2018-07-29 03:53:53 +02:00
- When we reconnect and have to retransmit failing HTLCs, the errors weren't
encrypted by us.
- `lightningd_config` man page is now installed by `make install` .
- Fixed crash when shutting down during opening a channel (#1737)
- Don't lose track of our own output when applying penalty transaction (#1738)
- Protocol: `channel_update` inside error messages now refers to correct channel.
2018-07-30 18:01:34 +02:00
- Stripping type prefix from `channel_update` s that are nested in an onion reply
to be compatible with eclair and lnd (#1730).
2018-08-01 16:17:36 +02:00
- Failing tests no longer delete the test directory, to allow easier debugging
(Issue: #1599 )
2018-07-29 03:53:53 +02:00
### Security
2018-08-25 02:33:35 +02:00
## [0.6] - 2018-06-22: "I Accidentally The Smart Contract"
2018-07-29 03:53:53 +02:00
In the prehistory of c-lightning, no changelog was kept. But major
JSON API changes are tracked.
2018-08-25 02:33:35 +02:00
This release named by Fabrice Drouin.
2018-07-29 03:53:53 +02:00
### Deprecated
Note: You should always set `allow-deprecated-apis=false` to test for
changes.
2018-08-25 02:33:35 +02:00
- Config: `port` . Use `addr=:<portnum>` .
- Config: `ipaddr` . Use `addr` .
- Config: `anchor-confirms` . Use `funding-confirms` .
- Config: `locktime-blocks` . Use `watchtime-blocks` .
2018-07-29 03:53:53 +02:00
- Protocol: on closing we allow out-of-range offers, prior to spec fix
2018-01-30 ("BOLT 2: order closing-signed negotiation by making
funder send first." `90241d9cf60a598eac8fd839ac81e4093a161272` )
- JSON API: `listinvoice` command. Use `listinvoices` .
- JSON API: invoice result fields `paid_timestamp` and `expiry_time` . Use
`paid_at` and `expires_at` .
- JSON API: `invoice` command field `fallback` . Use `fallbacks` .
- JSON API: `decodepay` result fields `timestamp` and `fallback` . Use
`created_at` and `fallbacks` .
- JSON API: payment result fields `timestamp` . Use `created_at` .
- JSON API: `getinfo` result field `port` . Use `binding` and `address` arrays.
- JSON API: `getlog` result field `creation_time` . Use `created_at` .
- JSON API: `getpeers` result field `channel_reserve_satoshis` . Use `their_channel_reserve_satoshis` .
- JSON API: `getpeers` result field `to_self_delay` . Use `their_to_self_delay` .
2018-07-30 18:01:34 +02:00
2018-08-25 02:33:35 +02:00
## Older versions
There predate the BOLT specifications, and are only of vague historic interest:
1. [0.1] - 2015-08-08: "MtGox's Cold Wallet" (named by Rusty Russell)
2. [0.2] - 2016-01-22: "Butterfly Labs' Timely Delivery" (named by Anthony Towns)
3. [0.3] - 2016-05-25: "Nakamoto's Genesis Coins" (named by Braydon Fuller)
2019-06-04 03:18:47 +02:00
4. [0.4] - 2016-08-19: "Wright's Cryptographic Proof" (named by Christian Decker)
2018-08-25 02:33:35 +02:00
5. [0.5] - 2016-10-19: "Bitcoin Savings & Trust Daily Interest" (named by Glenn Willen)
6. [0.5.1] - 2016-10-21
7. [0.5.2] - 2016-11-21: "Bitcoin Savings & Trust Daily Interest II"
2018-07-29 03:53:53 +02:00
2019-08-19 03:42:32 +02:00
[Unreleased]: https://github.com/ElementsProject/lightning/compare/v0.7.2.1...HEAD
[0.7.2.1]: https://github.com/ElementsProject/lightning/releases/tag/v0.7.2.1
2019-06-29 03:32:57 +02:00
[0.7.1]: https://github.com/ElementsProject/lightning/releases/tag/v0.7.1
2019-06-12 06:08:00 +02:00
[0.7.0]: https://github.com/ElementsProject/lightning/releases/tag/v0.7.0
2019-01-11 06:03:27 +01:00
[0.6.3]: https://github.com/ElementsProject/lightning/releases/tag/v0.6.3
2018-10-26 02:56:21 +02:00
[0.6.2]: https://github.com/ElementsProject/lightning/releases/tag/v0.6.2
2018-09-12 01:44:28 +02:00
[0.6.1]: https://github.com/ElementsProject/lightning/releases/tag/v0.6.1
2018-07-29 03:53:53 +02:00
[0.6]: https://github.com/ElementsProject/lightning/releases/tag/v0.6
2018-08-25 02:33:35 +02:00
[0.5.2]: https://github.com/ElementsProject/lightning/releases/tag/v0.5.2-2016-11-21
[0.5.1]: https://github.com/ElementsProject/lightning/releases/tag/v0.5.1-2016-10-21
[0.5]: https://github.com/ElementsProject/lightning/releases/tag/v0.5-2016-10-19
[0.4]: https://github.com/ElementsProject/lightning/releases/tag/v0.4-2016-08-19
[0.3]: https://github.com/ElementsProject/lightning/releases/tag/v0.3-2016-05-26
[0.2]: https://github.com/ElementsProject/lightning/releases/tag/v0.2-2016-01-22
[0.1]: https://github.com/ElementsProject/lightning/releases/tag/v0.1-2015-08-08