172 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
[23.05.2] - 2023-06-21: "Austin Texas Agreement(ATXA) III"
Bugfix release for bad issues found since 23.05.1 which can't wait for 23.08.
Fixed
- JSON-RPC:
payanddecodepaywith description now correctly handle JSON escapes (e.g " inside description) - JSON-RPC:
payhas undeprecated paying a description-hash invoice without providing the description (since it didn't work reliably until now!) - GRPC:
listpeerssometimes could fail on unknown HTLC states.
EXPERIMENTAL
- Fixed compilation error when
--enable-experimental-featuresconfigured.
[23.05.1] - 2023-06-05: "Austin Texas Agreement(ATXA) II"
Bugfix release for bad issues found since 23.05 which can't wait for 23.08.
Fixed
- Fixed crash (memory corruption!) in
listtransactions(#6304) - Don't crash on gossip store deletion fail (#6297)
- Fix incompatibility with LND which prevented us opening private channels (#6304)
EXPERIMENTAL
- Fixed crash in dual-funding. (#6273)
23.05 - 2023-05-10: "Austin Texas Agreement(ATXA)"
This release named by @instagibbs
NOTE 1: This release contains breaking changes of the Great Msat migration started in v0.12.0, so "msat" fields are no longer strings with "msat" appended, but simply integers.
Added
- Protocol: blinded payments are now supported by default (not just with
--experimental-onion-messages) (#6138) - Protocol: we now always double-check bitcoin addresses are correct (no memory errors!) before issuing them. (#5708)
- JSON-RPC: PSBTv2 support for
fundchannel_complete,openchannel_update,reserveinputs,sendpsbt,signpsbt,withdrawandunreserveinputsparameterpsbt,openchannel_initandopenchannel_bumpparameterinitialpsbt,openchannel_signedparametersigned_psbtandutxopsbtparameterutxopsbt(#5898) - Plugins:
commando-blacklistnew command to disable select runes. (#6124) - Plugins:
commando-listrunesnew command to show issued runes. (#6124) - JSON-RPC:
listclosedchannelsnew command to show old, dead channels we previously had with peers. (#5967) - JSON-RPC:
close,fundchannel,fundpsbt,multifundchannel,multiwithdraw,txprepare,upgradewallet,withdrawnow allow "minimum" and NN"blocks" asfeerate(feerangeforclose). (#6120) - JSON-RPC:
feeratesaddedfloorfield for current minimum feerate bitcoind will accept (#6120) - JSON-RPC:
feeratesestimatesarray shows fee estimates by blockcount from underlying plugin (usually bcli). (#6120) - Plugins:
estimatefeescan return explicitfee_floorandfeeratesby block number. (#6120) - JSON-RPC:
listfundsnow has achannel_idfield. (#6029) - JSON-RPC:
listpeerchannelsnow haschannel_typefield. (#5967) - JSON-RPC:
sqlnow includeslistclosedchannels. (#5967) pyln-client: Improvements on the gossmap implementation (#6012)hsmtool:makerunenew command to make a master rune for a node. (#6097)- JSON-RPC:
setpsbtversion: new command to aid debugging and compatibility (#5898) grpc: Added mapping forlistpeerchannels,listclosedchannels,decodeanddecodepayRPC methods (#6229)
Changed
reckless: Added support for node.js plugin installation (#6158)reckless: Added support for networks beyond bitcoin and regtest (#6110)- JSON-RPC: elements network PSET now only supports PSETv2. (#5898)
- JSON-RPC:
close,fundchannel,fundpsbt,multifundchannel,multiwithdraw,txprepare,upgradewallet,withdrawfeerate(feerangeforclose) value slow is now 100 block-estimate, not half of 100-block estimate. (#6120) - Protocol: spending unilateral close transactions now use dynamic fees based on deadlines (and RBF), instead of fixed fees. (#6120)
- Protocol: Allow slight overpaying, even with MPP, as spec now recommends. (#6138)
msggen: The generated interfacescln-rpcanccln-grpccan now work with a range of versions rather than having to match the CLN version (#6142)grpc: The mTLS private keys are no longer group-readable (#6075)
Deprecated
Note: You should always set allow-deprecated-apis=false to test for changes.
- JSON-RPC:
close,fundchannel,fundpsbt,multifundchannel,multiwithdraw,txprepare,upgradewallet,withdrawfeerate(feerangeforclose) expressed as, "delayed_to_us", "htlc_resolution", "max_acceptable" or "min_acceptable". Use explicit block counts or slow/normal/urgent/minimum. (#6120) - Plugins:
estimatefeesreturning feerates by name (e.g. "opening"); usefee_floorandfeerates. (#6120) - Protocol: Not setting
option_scid_aliasinoption_channelchannel_typefor unannounced channels. (#6136)
Removed
- JSON-RPC: the "msat" suffix on millisatoshi fields, as deprecated in v0.12.0. (#5986, #6245)
- JSON-RPC: all the non-msat-named millisatoshi fields deprecated in v0.12.0. (#5986)
- JSON-RPC:
listpeers.local_msatandlistpeers.remote_msat(deprecated v0.12.0) (#5986) - JSON-RPC:
checkmessagenow always returns an error when the pubkey is not specified and it is unknown in the network graph (deprecated v0.12.0) (#5986) - JSON-RPC: require the
"jsonrpc": "2.0"property (requests without this deprecated in v0.10.2). (#5986)
Fixed
- Plugins:
bclinow tells us the minimal possible feerate, such as with mempool congestion, rather than assuming 1 sat/vbyte. (#6120) lightningd: don't log gratuitous "Peer transient failure" message on first connection after restart. (#6140)channeld: no longer spin and spam logs when waiting for revoke_and_ack. (#6107)- Plugin:
autocleannow also cleans forwards with statuslocal_failed(#6109) - Protocol: we will upfront reject channel_open which asks for a zeroconf channel unless we are going to do a zerconf channel. (#6136)
- Protocol: We now correctly accept the
option_scid_aliasbit inopen_channelchannel_type. (#6136) - JSON-RPC:
feeratesdocument correctly that urgent means 6 blocks (not 2), and give better feerate examples. (#6170) wallet: we no longer make txs below minrelaytxfee or mempoolminfee. (#6073)delpay: be more pedantic about delete logic by allowing delete payments by status directly on the database. (#6115)- Plugins:
bookkeeperonchain fees calculation was incorrect with PostgresQL. (#6128) clnrs: Fixed an issue converting routehints in keysend (#6154)- Build: Compilation with upcoming gcc 13 (#6184)
EXPERIMENTAL
- fetchinvoice: fix: do not ignore the
quantityfield (#6090)
[23.02.2] - 2023-03-14: "CBDC Backing Layer III"
Added
- JSON-RPC: Restore
payfor a bolt11 which uses adescription_hash, without settingdescription(still deprecated, but the world is not ready) [
23.02.1 - 2023-03-10: "CBDC Backing Layer II"
This release named by @whitslack
Added
Changed
- gossipd: Revert zombification change, keep all gossip for now. (#6069)
Deprecated
Note: You should always set allow-deprecated-apis=false to test for changes.
Removed
Fixed
- Plugins:
sqlnodes table now gets refreshed when gossip changes. (#6068) - connectd: Fixed a crash on new connections. (#6070)
- wallet: Don't crash on broken database migrations. (#6071)
EXPERIMENTAL
experimental-peer-storage: only send to peers which support it. (#6072)
23.02 - 2023-03-01: "CBDC Backing Layer"
This release named by @whitslack
NOTE 1: This release contains breaking protocol changes to dual-funding and
offers, making them incompatible with previous releases.
NOTE 2: Periodic pruning of channels now keeps track of them as 'zombies.' This
behavior is in line with the lightning specification but results in
fewer nodes and channels listed by listnodes/listpeers. These
channels will resume as soon as the missing side broadcasts a recent
channel update.
Added
- Plugins:
sqlplugin command to perform server-side complex queries. (#5679) - JSON-RPC:
preapprovekeysend: New command to preapprove payment details with an HSM. (#5821) - JSON-RPC:
preapproveinvoice: New command to preapprove a BOLT11 invoice with an HSM. (#5821) - JSON-RPC:
listpeerchannels: New command to return information on direct channels with our peers. (#5825) - JSON-RPC:
signinvoice: New command to sign a BOLT11 invoice. (#5697) - JSON-RPC:
upgradewallet: New command to sweep all p2sh-wrapped outputs to a native segwit output. (#5670) - JSON-RPC:
fundpsbtoptionnonwrappedfilters out p2sh wrapped inputs. (#5670) - JSON-RPC:
listpeersoutput now hasnum_channelsaschannelsis deprecated (seelistpeerchannels). (#5968) - JSON-RPC:
listchannelsadded adirectionfield (0 or 1) as per gossip specification. (#5679) - cli:
--commando=peerid:rune(or-c peerid:rune) as convenient shortcut for running commando commands. (#5866) - Plugins:
commandonow supportsfilteras a parameter (for send and receive). (#5866) - Config: Added config option
announce-addr-discovered-portto set custom port for IP discovery. (#5842) - Config: Added config switch
announce-addr-discovered: on/off/auto (#5841) - doc: we now annotate what versions JSON field additions and deprecations happenened. (#5867)
- SECURITY.md: Where to send sensitive bug reports, and dev GPG fingerprints. (#5960)
Changed
- JSON-RPC:
sendcustommsgcan now be called by a plugin from within thepeer_connectedhook. (#5361) - JSON-RPC:
getinfoaddressarray is always present (though may be empty.) (#5904) - postgres: Ordering of HTLCs in
listhtlcsare now ordered by time of creation. (#5863)
Deprecated
Note: You should always set allow-deprecated-apis=false to test for changes.
- Config: The --disable-ip-discovery config switch: use
announce-addr-discovered. (#5841) - JSON-RPC:
newaddr:addresstypep2sh-segwit(use default, orbech32.) (#5751) - JSON-RPC:
listpeerschannelsarray: uselistpeerchannels. (#5825) - plugins:
commandoJSON commands without anid(see doc/lightningd-rpc.7.md for how to construct a good id field). (#5866)
Removed
- JSON-RPC:
sendpayrouteargumentstyle"legacy" (deprecated v0.11.0) (#5747) - JSON-RPC:
closedestinationno longer allows p2pkh or p2sh addresses. (deprecated v0.11.0) (#5747) - JSON-RPC:
fundpsbt/utxopsbtreservemust be a number, not bool. (deprecated v0.11.0) (#5747) - JSON-RPC:
invoiceexpiryno longer allowed to be a string with suffix, use an integer number of seconds. (deprecated v0.11.0) (#5747) - JSON-RPC:
payfor a bolt11 which uses adescription_hash, without settingdescription. (deprecated v0.11.0) (#5747)
Fixed
- gossip: We removed a warning for old
node_announcementthat was causing LND peers to disconnect (#5925) - gossip: We removed a warning for malformed
channel_updatethat was causing LND peers to disconnect (#5897) - cli: accepts long paths as options (#5883)
- JSON-RPC:
getinfoblockheightno longer sits on 0 while we sync with bitcoind the first time. (#5963) - keysend: Keysend would strip even allowed extra TLV types before resolving, this is no longer the case. ([#6031])
- lightningd: we no longer stack multiple reconnection attempts if connections fail. (#5946)
- Plugins:
payuses the correct local channel for payments when there are multiple available (not just always the first!) (#5947) - Pruned channels are more reliably restored. (#5839)
delpay: Actually delete the specified payment (mainly found byautoclean). ([#6043])- pay: Don't assert() on malformed BOLT11 strings. (#5891)
- gossmap: Fixed
FATAL SIGNAL 11on gossmap node announcement parsing. (#6005) - channeld no longer retains dead HTLCs in memory. (#5882)
- database: Correctly identity official release versions for database upgrade. (#5880)
- Plugins:
commandonow responds to remote JSON calls with the correct JSONidfield. (#5866) - JSON-RPC:
datastorehandles escapes instringparameter correctly. (#5994) - JSON-RPC:
sendpaynow can send to a short-channel-id alias for the first hop. (#5846) - topology: Fixed memleak in
listchannels(#5865)
EXPERIMENTAL
- Protocol: Peer Storage: Distribute your encrypted backup to your peers, which can be retrieved to recover funds upon complete dataloss. (#5361)
- Protocol:
offersbreaking blinded payments change (total_amount_sat required, update_add_tlvs fix, Eclair compat.) (#5892) - Protocol: Dual-funding spec changed in incompatible ways, won't work with old versions (but maybe soon with Eclair!!) (#5956)
- Experimental-Dual-Fund: Open failures don't disconnect, but instead fail the opening process. (#5767)
- JSON-RPC:
listtransactionschannelandtypefield removed at top level. (#5679)
22.11.1 - 2022-12-09: "Alameda Yield Generator II"
Added
- JSON-RPC: reverts requirement for "jsonrpc" "2.0" inside requests (still deprecated though, just for a while longer!) (#5783)
Changed
- config:
announce-addr-dnsneeds to be set to true to put DNS names into node announcements, otherwise they are suppressed.
Deprecated
Note: You should always set allow-deprecated-apis=false to test for changes.
- config:
announce-addr-dns(currently defaults tofalse). This will default totrueonce enough of the network has upgraded to understand DNS entries. (#5796)
Fixed
- Build: arm32 compiler error in fetchinvoice, due to bad types on 32-bit platforms. (#5785)
- JSON-RPC:
autoclean-onceresponseuncleanedcount is now correct. (#5775) - Plugin:
autocleancould misperform or get killed due to lightningd's invalid handling of JSON batching. (#5775) - reckless verbosity properly applied. (#5781)
- wireaddr: #5657 allow '_' underscore in hostname part of DNS FQDN (#5789)
22.11 - 2022-11-30: "Alameda Yield Generator"
This release named by @endothermicdev.
Added
- Reckless - a Core Lightning plugin manager (#5647)
- Config:
--database-upgrade=truerequired if a non-release version wants to (irrevocably!) upgrade the db. (#5550) - Documentation:
lightningd-rpcmanual page describes details of our JSON-RPC interface, including compatibility and filtering. (#5681) - JSON-RPC:
filterobject allows reduction of JSON response to (most) commands. (#5681) - cli: new
--filterparameter to reduce JSON output. (#5681) - pyln: LightningRpc has new
reply_filtercontext manager for reducing output of RPC commands. (#5681) - JSON-RPC:
listhtlcsnew command to list all known HTLCS. (#5594) - Plugins:
autocleancan now delete old forwards, payments, and invoices automatically. (#5594) - Plugins:
autoclean-oncecommand for a single cleanup. (#5594) - Plugins:
autoclean-statuscommand to see what autoclean is doing. (#5594) - Config:
accept-htlc-tlv-typeslets us accept unknown even HTLC TLV fields we would normally reject on parsing (was EXPERIMENTAL-onlyexperimental-accept-extra-tlv-types). (#5619) - JSON-RPC: The
extratlvsargument forkeysendnow allows quoting the type numbers in string (#5674) - JSON-RPC:
batchingcommand to allow database transactions to cross multiple back-to-back JSON commands. (#5594) - JSON-RPC:
channel_openednotificationchannel_readyflag. (#5490) - JSON-RPC:
delforwardcommand to delete listforwards entries. (#5594) - JSON-RPC:
delpaytakes optionalgroupidandpartidparameters to specify exactly what payment to delete. (#5594) - JSON-RPC:
fundchannel,multifundchannelandfundchannel_startnow accept areserveparameter to indicate the absolute reserve to impose on the peer. (#5315) - Plugins:
keysendwill now attach the longest valid text field in the onion to the invoice (so you can have Sphinx.chat users spam you!) (#5619) - JSON-RPC:
keysendnow hasextratlvsoption in non-EXPERIMENTAL builds. (#5619) - JSON-RPC:
listforwardsnow showsin_htlc_idandout_htlc_id(#5594) - JSON-RPC:
makesecretcan take a string argument instead of hex. (#5633) - JSON-RPC:
payandlistpaysnow lists the completion time. (#5398) - Plugins: Added notification topic "block_processed". (#5581)
- Plugins:
keysendnow exposes theextratlvsfield (#5674) - Plugins: The
openchannelhook may return a custom absolutereservevalue that the peer must not dip below. (#5315) - Plugins:
getmanfestresponse can containnonnumericidsto indicate support for modern string-based JSON request ids. (#5727) - Protocol: We now delay forgetting funding-spent channels for 12 blocks (as per latest BOLTs, to support splicing in future). (#5592)
- Protocol: We now set the
dont_forwardbit on private channel_update's message_flags (as per latest BOLTs). (#5592) - cln-plugin: Options are no longer required to have a default value (#5369)
Changed
- Protocol: We now require all channel_update messages include htlc_maximum_msat (as per latest BOLTs) (#5592)
- Protocol: Bolt7 #911 DNS annoucenent support is no longer EXPERIMENTAL (#5487)
- JSON-RPC:
listfundsnow lists coinbase outputs as 'immature' until they're spendable (#5664) - JSON-RPC: UTXOs aren't spendable while immature (#5664)
- Plugins:
openchannel2now always includes thechannel_max_msat(#5650) - JSON-RPC:
createonionno longer allows non-TLV-style payloads. (#5639) - cln-plugin: Moved the state binding to the plugin until after the configuration step (#5493)
- pyln-spec: package updated to latest spec version. (#5621)
- JSON-RPC:
listforwardsnow never showspayment_hash; uselisthtlcs. (#5594) - cln-rpc: The
wrong_fundingargument forclosewas changed frombytestooutpoint(#5444) - JSON-RPC: Error code from bcli plugin changed from 400 to 500. (#5596)
- Plugins:
balance_snapshotnotification does not send balances for channels that aren't locked-in/opened yet (#5587) - Plugins: RPC operations are now still available during shutdown. (#5577)
- JSON-RPC:
listpeersstatusnow refers to "channel ready" rather than "funding locked" (BOLT language change for zeroconf channels) (#5490) - Protocol:
funding_lockedis now calledchannel_readyas per latest BOLTs. (#5490)
Deprecated
Note: You should always set allow-deprecated-apis=false to test for changes.
- JSON-RPC:
autocleaninvoice(use optionautoclean-expiredinvoices-age) (#5594) - JSON-RPC:
delexpiredinvoice: useautoclean-once. (#5594) - JSON-RPC:
commando-runerestrictions is always an array, each element an array of alternatives. Replaces a string with|-separators, so no escaping necessary except for\\. (#5539) - JSON-RPC:
channel_openednotificationfunding_lockedflag (usechannel_ready: BOLTs namechange). (#5490) - Plugins: numeric JSON request ids: modern ones will be strings (see doc/lightningd-rpc.7.md!) (#5727)
Removed
- Protocol: we no longer forward HTLCs with legacy onions. (#5639)
hsmtool: hsm_secret (ignored) on cmdline for dumponchaindescriptors (deprecated in v0.9.3) (#5490)- Plugins: plugin init
use_proxy_always(deprecated v0.10.2) (#5490) - JSON-RPC: plugins must supply
usageparameter (deprecated v0.7) (#5490) - Old order of the
statusparameter in thelistforwardsrpc command (deprecated in v0.10.2) (#5490) - JSONRPC: RPC framework now requires the
"jsonrpc"property inside the request (deprecated in v0.10.2) (#5490) - JSON API: Removed double wrapping of
rpc_commandpayload inrpc_commandJSON field (deprecated v0.8.2) (#5490)
Fixed
- plugins:
paynow knows it can use locally-connected wumbo channels for large payments. (#5746) - lightningd: do not abort while parsing hsm pwd (#5725)
- plugins: on large/slow nodes we could blame plugins for failing to answer init in time, when we were just slow. (#5741)
- ld: Reduce identification of own transactions to not slow down over time, reducing block processing time (#5715)
- Fixed gossip_store corruption from duplicate private channel updates (#5661)
- Fixed a condition for newly created channels that could trigger a need for reconnect. (#5601)
- proper gossip_store operation may resolve some previous gossip propagation issues (#5591)
- onchaind: Witness weight estimations could be slightly lower than the VLS signer (#5669)
- Protocol: we now correctly decrypt non-256-length onion errors (we always forwarded them fine, now we actually can parse them). (#5698)
- devtools:
mkfundingcommand no longer crashes (abort) (#5677) - plugins: on large/slow nodes we could blame plugins for failing to answer init in time, when we were just slow. (#5741)
- Plugins:
fundernow honors lease requests across RBFs (#5650) - Plugins:
keysendnow removes unknown even (technically illegal!) fields, to try to accept more payments. (#5645) - channeld: Channel reinitialization no longer fails when the number of outstanding outgoing HTLCs exceeds
max_accepted_htlcs. (#5640) - pay: Squeezed out the last
msatfrom our local view of the network (#5315) - peer_control: getinfo shows the correct port on discovered IPs (#5585)
- bcli: don't expose bitcoin RPC password on commandline (#5509)
- Plugins: topology plugin could crash when it sees duplicate private channel announcements. (#5593)
- JSON-RPC:
commando-runenow handles \ escapes properly. (#5539) - peer_control: getinfo showing unannounced addresses. (#5584)
EXPERIMENTAL
- JSON-RPC:
payandsendpaylocalofferidis nowlocalinvreqid. (#5676) - Protocol: Support for forwarding blinded payments (as per latest draft) (#5646)
- offers: complete rework of spec from other teams (yay!) breaks previous compatibility (boo!) (#5646)
- offers: old
payer_keyproofs won't work. (#5646) - bolt12: remove "vendor" (use "issuer") and "timestamp" (use "created_at") fields (deprecated v0.10.2). (#5490)
[0.12.1] - 2022-09-13: Web-8 init (dot one)
Point release with some bugfixes and patches.
Removed
- build:
mrkdandmistunenot required to build project
Fixed
- lnprototest: builds for lnprototest tests now use 22.04 LTS, which fixes a problem with loading
mako. (#5583) - Plugins: topology plugin could crash when it sees duplicate private channel announcements (#5593)
- connectd: proper
gossip_storeoperation may resolve some previous gossip propagation issues and connectd crashes (#5591) - connectd: Fixed a condition for newly created channels that could trigger a need for reconnect. (#5601)
peer_control: getinfo showing unannounced addresses. (#5584)peer_control: getinfo shows the correct port on discovered IPs (#5585)
0.12.0 - 2022-08-23: Web-8 init
This release named by @adi2011.
Developers please note the Great Msat Migration has begun:
- All JSON amount field names now end in "_msat" (others are deprecated)
- Their values are strings ending in "msat", but will soon be normal integers.
- You should accept both: set
allow-deprecated-apis=falseto test!
Added
- NEW:
commandoa new builtin plugin to send/recv peer commands over the lightning network, using runes. (#5370) - NEW: New built-in plugin
bookkeeperw/ commandsbkpr-listaccountevents,bkpr-listbalances,bkpr-listincome,bkpr-channelsapy,bkpr-dumpincomecsv,bkpr-inspect(#5071) - NEW: Emergency channel backup ("static backup") which allows us to seek fund recovery from honest peers in case of complete data loss (#5422)
- Config:
log-level=debug:<partial-nodeid>supported to get debug-level logs for everything about a peer. (#5349) - JSON-RPC:
connectuse the standard port derivation when the port is not specified. (#5242) - JSON-RPC:
fetchinvoicechangesamount_msat(#5306) - JSON-RPC: Added
mindepthargument to specify the number of confirmations we require forfundchannelandmultifundchannel(#5275) - JSON-RPC:
listpeersnew fields forfunding(remote_funds_msat,local_funds_msat,fee_paid_msat,fee_rcvd_msat). (#5477) - JSON-RPC:
listpeersadd optionalremote_addr(#5244) - JSON-RPC:
listforwardsnow showsout_channelin more cases: even if it couldn't actually send to it. (#5330) - JSON-RPC:
payattemptsamount_msatfield. (#5306) - Protocol: private channels will only route using short-channel-ids if channel opened with option_scid_alias-supporting peer. (#5501)
- Protocol: invoice routehints will use fake short-channel-ids for private channels if channel opened with option_scid_alias-supporting peer. (#5501)
- Protocol: we now advertize the
option_channel_typefeature (which we actually supported since v0.10.2) (#5455) - Plugins:
channel_state_changednow triggers for a v1 channel's initial "CHANNELD_AWAITING_LOCKIN" state transition (from prior state "unknown") (#5381) - Plugins:
htlc_accepted_hookamount_msatfield. (#5306) - Plugins:
htlc_acceptednow exposes theshort_channel_idfor the channel from which that HTLC is coming from and the low-level per-channel HTLCid, which are necessary for bridging two different Lightning Networks when MPP is involved. (#5303) - Plugins: The
openchannelhook may return amindepthindicating how many confirmations are required. (#5275) - msggen: introduce chain of responsibility pattern to make msggen extensible (#5216)
- cln_plugin: persist cln configuration from init msg (#5279)
- pyln-testing: Added utilities to read and parse
gossip_storefile for nodes. (#5275) hsmtool: new commandcheckhsmto check BIP39 passphrase against hsm_secret. (#5441)- contrib: Added
fund_lnto the contrib/startup_regtest.sh (#5062) - build: Added m1 architecture support for macos (#4988)
- build: Reproducible builds now include rust binaries such as the
cln-grpcplugin (#5421)
Changed
lightningd: will refuse to start with the wrong node_id (i.e. hsm_secret changes). (#5425)connectd: prefer IPv6 connections when available. (#5244)connectd: Only use IP discovery as fallback when no addresses would be announced (#5344)connectd: give busy peers more time to respond to pings. (#5347)gossipd: now accepts spam gossip, but squelches it for (#5239)- gossip: gossip_store updated to version 10. (#5239)
- Options:
log-fileoption specified multiple times opens multiple log files. (#5281) - JSON-RPC:
sendpayandsendonionnow obey the first hop "channel" short_channel_id, if specified. (#5505) - JSON-RPC:
signpsbtno longer crashes if it doesn't like what your PSBT is (#5506) - JSON-RPC:
signpsbtwill now add redeemscript + witness-utxo to the PSBT for an input that we can sign for, before signing it. (#5506) - JSON-RPC:
plugin startnow assumes relative path to default plugins dir if the path is not found in absolute context. i.e. lightning-cli plugin start my_plugin.py (#5211) - JSON-RPC:
fundchannel: now errors if you try to buy a liquidity ad but dont' haveexperimental-dual-fundenabled (#5389) - JSON-RPC: "_msat" fields can be raw numbers, not "123msat" strings (please handle both!) (#5306)
- JSON-RPC:
invoice,sendonion,sendpay,pay,keysend,fetchinvoice,sendinvoice:msatoshiargument is now calledamount_msatto match other fields. (#5306)
Deprecated
Note: You should always set allow-deprecated-apis=false to test for changes.
- JSON-RPC:
listpeers.fundedfieldslocal_msatandremote_msat. (#5477) - JSON-RPC:
listtransactionsmsat(useamount_msat) (#5306) - JSON-RPC: checkmessage return an error when the pubkey is not specified and it is unknown in the network graph. (#5252)
- JSON-RPC: "_msat" fields as "123msat" strings (will be only numbers) (#5306)
- JSON-RPC:
sendpayrouteelementsmsatoshi(useamount_msat) (#5306) - JSON-RPC:
pay,decode,decodepay,getroute,listinvoices,listpaysandlistsendpaysmsatoshifields (useamount_msat). (#5306) - JSON-RPC:
getinfomsatoshi_fees_collectedfield (usefees_collected_msat). (#5306) - JSON-RPC:
listpeerschannels:msatoshi_to_us,msatoshi_to_us_min,msatoshi_to_us_max,msatoshi_total,dust_limit_satoshis,our_channel_reserve_satoshis,their_channel_reserve_satoshis,spendable_msatoshi,receivable_msatoshi,in_msatoshi_offered,in_msatoshi_fulfilled,out_msatoshi_offered,out_msatoshi_fulfilled,max_htlc_value_in_flight_msatandhtlc_minimum_msat(useto_us_msat,min_to_us_msat,max_to_us_msat,total_msat,dust_limit_msat,our_reserve_msat,their_reserve_msat,spendable_msat,receivable_msat,in_offered_msat,in_fulfilled_msat,out_offered_msat,out_fulfilled_msat,max_total_htlc_in_msatandminimum_htlc_in_msat). (#5306) - JSON-RPC:
listinvoicesandpaymsatoshi_receivedandmsatoshi_sent(useamount_received_msat,amount_sent_msat) (#5306) - JSON-RPC:
listpaysandlistsendpaysmsatoshi_sent(useamount_sent_msat) (#5306) - JSON-RPC:
listforwardsin_msatoshi,out_msatoshiandfee(usein_msat,out_msatandfee_msat) (#5306) - JSON-RPC:
listfundsoutputsvalue(useamount_msat) (#5306) - JSON-RPC:
fetchinvoicechangesmsat(useamount_msat) (#5306) - JSON-RPC:
payattemptsamountfield (useamount_msat). (#5306) - JSON-RPC:
invoice,sendonion,sendpay,pay,keysend,fetchinvoice,sendinvoicemsatoshi(useamount_msat) (#5306) listconfigspluginsoptionswhich are not set are omitted, notnull. (#5306)- Plugins:
htlc_accepted_hookamountfield (useamount_msat) (#5306) - Plugins:
coin_movementnotification:balance,credit,debitandfees(usebalance_msat,credit_msat,debit_msatandfees_msat) (#5306) - Plugins:
rbf_channelandopenchannel2hookstheir_funding(usetheir_funding_msat) (#5306) - Plugins:
openchannel2hookdust_limit_satoshis(usedust_limit_msat) (#5306) - Plugins:
openchannelhookfunding_satoshis(usefunding_msat) (#5306) - Plugins:
openchannelhookdust_limit_satoshis(usedust_limit_msat) (#5306) - Plugins:
openchannelhookchannel_reserve_satoshis(usechannel_reserve_msat) (#5306) - Plugins:
channel_openednotificationamount(usefunding_msat) (#5306) - Plugins:
htlc_acceptedforward_amount(useforward_msat) (#5306)
Removed
- Protocol: We no longer create gossip messages which use zlib encoding (we still understand them, for now!) (#5226)
- JSON-RPC:
getsharedsecretAPI: usemakesecret(#5430) - JSON-RPC: removed
listtransactionsoutputssatoshisfield (deprecated v0.10.1) (#5264) - JSON-RPC: removed
listpeerschannelsdeprecated fields (deprecated v0.10.1) (#5264) - JSON-RPC: removed
listpeerschannelsclosernow omitted, rather thannull(deprecated v0.10.1) (#5264) - libhsmd: Removed the
libhsmd_pythonwrapper as it was unused (#5415) - Options: removed
enable-autotor-v2-modeoption (deprecated v0.10.1) (#5264)
Fixed
- db: postgresql crash on startup when dual-funding lease open is pending with "s32 field doesn't match size: expected 4, actual 8" (#5513)
connectd: various crashes and issues fixed by simplification and rewrite. (#5261)connectd: Port of a DNS announcement can be 0 if unspecified (#5434)dualopend: Issue if the number of outputs decreases in a dualopen RBF or splice. (#5378)channeld: Enforce our ownminimum_depthbeyond just confirming (#5275)- logging:
log-prefixnow correctly prefixes all log messages. (#5349) - logging:
log-levelioshows JSONRPC output, as well as input. (#5306) - PSBT: Fix signature encoding to comply with BIP-0171. (#5307)
- signmessage: improve the UX of the rpc command when zbase is not a valid one (#5297)
- JSON-RPC: Adds dynamically detected public IP addresses to
getinfo(#5244) - cln-rpc: naming mismatch for
ConnectPeercausingconnectpeerto be called on the JSON-RPC (#5362) - pyln-spec: update the bolts implementation (#5168)
- Plugins: setting the default value of a parameter to
nullis the same as not setting it (pyln plugins did this!). (#5460) - Plugins: plugins would hang indefinitely despite
lightningdclosing the connection (#5362) - Plugins:
channel_openednotificationfunding_lockedfield is now accurate: was alwaystrue. (#5489) - Upgrade docker base image from Debian buster to bullseye to work with glibc 2.29+ #5276 (#5278)
- docker: The docker images are now built with the rust plugins
cln-grpc(#5270)
0.11.2 - 2022-06-24: Simon's Carefully Chosen Release Name III
Regressions since 0.10.2 which could not wait for the 0.12 release, which especially hurt larger nodes.
Fixed
- Protocol: treat LND "internal error" as warnings, not force close events (like v0.10) (#5326)
- connectd: no longer occasional crashes when peers reconnect. (#5300)
- connectd: another crash fix on trying to reconnect to disconnecting peer. (#5340)
- topology: Under some circumstances we were considering the limits on the wrong direction for a channel (#5286)
- routing: Fixed an issue where we would exclude the entire channel if either direction was disabled, or we hadn't seen an update yet. (#5286)
- connectd: large memory usage with many peers fixed. (#5312)
- connectd: reduce initial CPU load when connecting to peers. (#5328)
- lightnind: fix failed startup "Could not load channels from the database" if old TORv2 addresses were present. (#5331)
0.11.1 - 2022-05-13: Simon's Carefully Chosen Release Name II
Single change which fixed a bug introduced in 0.11.0 which could cause
unwanted unilateral closes (bad reestablish revocation_number: 0 vs 3)
Fixed
- connectd: make sure we don't keep stale reconnections around. (#5256)
- connectd: fix assert which we could trigger. (#5256)
0.11.0.1 - 2022-04-04: Simon's Carefully Chosen Release Name
This release would have been named by Simon Vrouwe, had he responded to my emails!
This marks the name change to core-lightning (#CLN).
Added
- Protocol: we now support opening multiple channels with the same peer. (#5078)
- Protocol: we send/receive IP addresses in
init, and send updated node_announcement when two peers report the same remote_addr (disable-ip-discoverysuppresses this announcement). (#5052) - Protocol: we more aggressively send our own gossip, to improve propagation chances. (#5200)
- Plugins:
cln-grpcfirst class GRPC interface for remotely controlling nodes over mTLS authentication; setgrpc-portto activate (#5013) - Database: With the
sqlite3://scheme for--walletoption, you can now specify a second file path for real-time database backup by separating it from the main file path with a:character. (#4890) - Protocol:
pay(and decode, etc) supports bolt11 payment_metadata a-la https://github.com/lightning/bolts/pull/912 (#5086) - JSON-RPC:
invoicehas a new parameterdeschashonlyto put hash of description in bolt11. (#5121) - JSON-RPC:
payhas new parameterdescription, will be required if bolt11 only has a hash. (#5122) - JSON-RPC:
payhas new parametermaxfeefor setting absolute fee (instead of usingmaxfeepercentand/orexemptfee) (#5122) - JSON-RPC:
listforwardshas new entrystyle, currently "legacy" or "tlv". (#5146) - JSON-RPC:
delinvoicehas a new parameterdesconlyto remove description. (#5121) - JSON-RPC: new
setchannelcommand generalizessetchannelfee: you can now alter thehtlc_minimum_msatandhtlc_maximum_msatyour node advertizes. (#5103) - Config:
htlc-minimum-msatandhtlc-maximum-msatto set default values to advertizes for new channels. (#5136) - JSON-RPC:
listpeersnow includes apushed_msatvalue. For leased channels, is the total lease_fee. (#5043) - JSON-RPC:
getinforesult now includesour_features(bits) for various Bolt #9 contexts (#5047) - Docker build for ARM defaults to
bitcoin, but can be overridden with theLIGHTNINGD_NETWORKenvvar. (#4896) - Developer: A new Rust library called
cln-rpccan be used to interact with the JSON-RPC (#5010) - JSON-RPC: A new
msggenlibrary allows easy generation of language bindings for the JSON-RPC from the JSON schemas (#5010) - JSON-RPC:
listchannelsnow includes thefunding_outnum(#5016) - JSON-RPC:
coin_movementto 'external' accounts now include an 'originating_account' field (#5019) - JSON-RPC: Add
excludeoption forpaycommand to manually exclude channels or nodes when finding a route. (#4906) - Database: Speed up loading of pending HTLCs during startup by using a partial index. (#4925)
Changed
- JSON-RPC:
closeby peer id will fail if there is more than one live channel (usechannel_idorshort_channel_idas id arg). (#5078) - JSON_RPC:
sendcustommsgnow works with any connected peer, even when shutting down a channel. (#4985) - JSON_RPC:
pingnow works with connected peers, even without a channel. (#4985) - cli: Addition of HSM specific error code in lightning-cli (#4908)
- config: If the port is unspecified, the default port is chosen according to used network similarly to Bitcoin Core. (#4900)
- Plugins:
shutdownnotification is now send when lightningd is almost completely shutdown, RPC calls then fail with error code -5. (#4897) - Protocol:
signetaddresses and invoices now usetbsinstead oftb. (#4929)
Deprecated
Note: You should always set allow-deprecated-apis=false to test for changes.
- JSON-RPC:
payfor a bolt11 which uses adescription_hash, without settingdescription. (#5122) - JSON-RPC:
invoiceexpiryno longer allowed to be a string with suffix, use an integer number of seconds. (#5104) - JSON-RPC:
fundpsbt/utxopsbtreservemust be a number, not bool (fortrueuse 72/don't specify, forfalseuse 0). Numbers have been allowed since v0.10.1. (#5104) - JSON-RPC:
shutdownno longer allows p2pkh or p2sh addresses. (#5086) - JSON-RPC:
sendpayrouteargumentstyle"legacy" (don't use it at all, we ignore it now and always use "tlv" anyway). (#5120) - JSON-RPC:
setchannelfee(usesetchannel). (#5103)
Removed
- JSON-RPC:
legacypay(payreplaced it in 0.9.0). (#5122) - Protocol: support for legacy onion format removed, since everyone supports the new one. (#5058)
- Protocol: ... but we still forward legacy HTLC onions for now. (#5146)
- Plugins: The
messagefield on thecustommsghook (deprecated in v0.10.0) (#4902) - JSON-RPC:
fundchannel_completetxidandtxoutparameters (deprecated in v0.10.0) (#4902)
Fixed
- onchaind: we sometimes failed to close upstream htlcs if more than one HTLC is in flight during unilateral close. (#5130)
- JSON-RPC:
listpaysalways includesbolt11orbolt12field. (#5122) - cli: don't ask to confirm the password if the
hsm_secretis already encrypted. (#5085) - cli: check if the
hsm_secretpassword and the confirmation match from the command line (#5085) - JSON-RPC:
connectnotification now called even if we already have a live channel. (#5078) - docker: The docker image is now built with postgresql support (#5081)
- hsmd: Fixed a significant memory leak (#5051)
- closingd: more accurate weight estimation helps mutual closing near min/max feerates. (#5004)
- Protocol: Always flush sockets to increase chance that final message get to peer (esp. error packets). (#4984)
- JSON-RPC: listincoming showed incoming_capacity_msat field 1000 times actual value. (#4913)
- Options: Respect --always-use-proxy AND --disable-dns when parsing wireaddresses to listen on. (#4829)
- lightningd: remove slow memory leak in DEVELOPER builds. (#4931)
- JSON-RPC:
paystatusentries no longer have two identicalamount_msatentries. (#4911) - We really do allow providing multiple addresses of the same type. (#4902)
EXPERIMENTAL
- Fixed
experimental-websocketintermittent read errors (#5090) - Fixed
experimental-websocket-portnot to leave zombie processes. (#5101) - Config option
--lease-fee-base-msatrenamed to--lease-fee-base-sat(#5047) - Config option
--lease-fee-base-msatdeprecated and will be removed next release (#5047) - Fixed
experimental-websocket-portto work with default addresses. (#4945) - Protocol: removed support for v0.10.1 onion messages. (#4921)
- Protocol: Ability to announce DNS addresses (#4829)
- Protocol: disabled websocket announcement due to LND propagation issues (#5200)
0.10.2 - 2021-11-03: Bitcoin Dust Consensus Rule
This release named by @vincenzopalazzo.
Added
- config: new option
--max-dust-htlc-exposure-msat, which limits the total amount of sats to be allowed as dust on a channel (#4837) - With
sqlite3db backend we now use a 60-second busy timer, to allow backup processes likelitestreamto operate safely. (#4867) - pay: Payment attempts are now grouped by the pay command that initiated them (#4567)
- JSON-RPC:
setchannelfeegives a grace period (enforcedelay) before rejecting old-fee payments: default 10 minutes. (#4806) - Support filtering
listpaysby their status. (#4595) closenow notifies about the feeranges each side uses. (#4784)- Protocol: We now send and support
channel_typein channel open (not dual-funding though). (#4616) - Protocol: We now perform quick-close if the peer supports it. (#4599)
- JSONRPC:
closenow takes afeerangeparameter to set min/max fee rates for mutual close. (#4599) - Protocol: Allow sending large HTLCs if peer offers
option_support_large_channel(> 4294967295msat) (#4599) - pyln-client: routines for direct access to the gossip store as Gossmap (#4582)
- Plugins:
shutdownnotification for clean exits. (#4754) - Plugins: Added
channel_idandcommitnumtocommitment_revocationhook (#4760) - JSON-RPC:
datastore,deldatastoreandlistdatastorefor plugins to store simple persistent key/value data. (#4674)
Changed
- pay: The route selection will now use the log-propability-based channel selection to increase success rate and reduce time to completion (#4771)
- Plugins:
paynow biases towards larger channels, improving success probability. (#4771) - db: removal of old HTLC information and vacuuming shrinks large lightningd.sqlite3 by a factor of 2-3. (#4850)
- JSON-RPC:
pingnow only works if we have a channel with the peer. (#4804) - Protocol: Send regular pings to detect dead connections (particularly for Tor). (#4804)
- Build: Python is now required to build, as generated files are no longer checked into the repository. (#4805)
- pyln-spec: updated to latest BOLT versions. (#4763)
- JSON-RPC: Change order parameters in the
listforwardscommand (#4668) - db: We now set a busy timeout to safely allow others to access sqlite3 db (e.g. litestream) (#4554)
- connectd: Try non-TOR connections first (#4731)
Deprecated
Note: You should always set allow-deprecated-apis=false to test for changes.
- Protocol: No longer restrict HTLCs to less than 4294967295msat (#4599)
- Change order of the
statusparameter in thelistforwardsrpc command. (#4668) - RPC framework now requires the
"jsonrpc"property inside the request. (#4742) - Plugins: Renames plugin init
use_proxy_alwaystoalways_use_proxy(#4731)
Removed
Fixed
- peer: Fixed a crash when a connection is lost outside of a DB transaction (#4894)
- We now no longer self-limit the number of file descriptors (which limits the number of channels) in sufficiently modern systems, or where we can access
/procor/dev/fd. We still self-limit on old systems where we cannot find the list of open files on/procor/dev/fd, so if you need > ~4000 channels, upgrade or mount/proc. (#4872) - errors: Errors returning a
channel_updateno longer return an outdated one. (#4876) - pay:
listpaysreturns payments orderd by their creation date (#4567) - pay:
listpaysno longer groups attempts from multiple attempts to pay an invoice (#4567) - sqlite3: Relaxed the version match requirements to be at least a minimum version and a major version match (#4852)
- pay:
paywould sometimes misreport a final state ofpendinginstead offailed(#4803) - Plugins: C plugins would could leak memory on every command (esp. seen when hammering topology's
listchannels). (#4737) - libplugin: Fatal error messages from
plugin_exit()now logged in lightningd. (#4754) openchannel_signedwould fail on PSBT comparison of materially identical PSBTs (#4752)- doc:
listnodesfields now correctly documented. (#4750) - EXPERIMENTAL: crash for some users while requesting dual funding leases. (#4751)
- Plugins: Don't drop complaints about silly channels to
stderr. (#4730) - connectd: Do not try address hint twice (#4731)
EXPERIMENTAL
- channel_upgrade draft upgraded: cannot upgrade channels until peers also upgrade. (#4830)
- bolt12:
chainsininvoice_requestand invoice is deprecated,chainis used instead. (#4849) - bolt12:
vendoris deprecated: the field is now calledissuer. (#4849) - Protocol: Updated
onion_messagesupport to match updated draft specification (with backwards compat for old version) (#4800) - Anchor output mutual close allow a fee higher than the final commitment transaction (as per lightning-rfc #847) (#4599)
0.10.1 - 2021-08-09: "eltoo: Ethereum Layer Too"
This release named by @nalinbhardwaj.
NOTE ONE: Both the dual-funding and offers protocols have changed, and are incompatible with older releases (they're both still draft) #reckless
NOTE TWO: rebalance and drain plugins will need to be redownloaded as
older versions will no longer work -- payment_secret is now compulsory.
Added
- JSON-RPC:
invoicenow outputs explicitpayment_secretas its own field. (#4646) - JSON-RPC:
listchannelscan be queried bydestination. (#4614) - JSON-RPC:
invoicenow giveswarning_private_unusedif unused unannounced channels could have provided sufficient capacity. (#4585) - JSON-RPC:
withdraw,close(and others) now accept taproot (and other future) segwit addresses. (#4591) - JSON-RPC: HTLCs in
listpeersare now annotated with a status if they are waiting on anhtlc_acceptedhook of a plugin. (#4580) - JSON-RPC:
closereturnstype"unopened" if it simply discards channel instead of empty object. (#4501) - JSON-RPC:
listfundshas a newreserved_to_blockfield. (#4510) - JSON-RPC:
createonionRPC command now accepts an optionalonion_size. (#4519) - JSON-RPC: new command
parsefeeratewhich takes a feerate string and returns the calculated perkw/perkb (#4639) - Protocol:
option_shutdown_anysegwitallows future segwit versions on shutdown transactions. (#4556) - Protocol: We now send and accept
option_shutdown_anysegwitso you can close channels to v1+ segwit addresses. (#4591) - Plugins: Plugins may now send custom notifications that other plugins can subscribe to. (#4496)
- Plugins: Add
funderplugin, which allows you to setup a policy for funding v2 channel open requests. Requres --experimental-dual-fund option (#4489) - Plugins:
funderplugin includes commandfunderupdatewhich will show current funding configuration and allow you to modify them (#4489) - Plugins: Restart plugin on
rescanwhen binary was changed. (#4609) - keysend:
keysendcan now reach non-public nodes by providing theroutehintsargument if they are known. (#4611) - keysend: You can now add extra TLVs to a payment sent via
keysend(#4610) - config:
force_feeratesoption to allow overriding feerate estimates (mainly for regtest). (#4629) - config: New option
log-timestampsallow disabling of timestamp prefix in logs. (#4504) - hsmtool: allow piped passwords (#4571)
- libhsmd: Added python bindings for
libhsmd(#4498) - libhsmd: Extracted the
hsmdlogic into its own library for other projects to use (#4497) - lightningd: we now try to restart if subdaemons are upgraded underneath us. (#4471)
Changed
- JSON-RPC:
invoicenow allows creation of giant invoices (>= 2^32 msat) (#4606) - JSON-RPC:
invoicewarnings are now better defined, andwarning_mpp_capacityis no longer included (sincewarning_capacitycovers that). (#4585) - JSON-RPC:
getrouteis now implemented in a plugin. (#4585) - JSON-RPC:
sendonionno longer requires the gratuitousdirectionandchannelfields in thefirsthopparameter. (#4537) - JSON-RPC: moved dev-sendcustommsg to sendcustommsg (#4650)
- JSON-RPC:
listpaysoutput is now ordered by thecreated_attimestamp. (#4518) - JSON-RPC:
listsendpaysoutput is now ordered byid. (#4518) - JSON-RPC:
autocleaninvoicenow returns an object, not a raw string. (#4501) - JSON-RPC:
fundpsbtwill not include UTXOs that aren't economic (can't pay for their own fees), unless 'all' (#4509) - JSON-RPC:
closenow always returns notifications on delays. (#4465) - Protocol: All new invoices require a
payment_secret(i.e. modern TLV format onion) (#4646) - Protocol: Allow out-of-bound fee updates from peers, as long as they're not getting worse (#4681)
- Protocol: We can no longer connect to peers which don't support
payment_secret. (#4646) - Protocol: We will now reestablish and negotiate mutual close on channels we've already closed (great if peer has lost their database). (#4559)
- Protocol: We now assume nodes support TLV onions (non-legacy) unless we have a
node_announcementwhich says they don't. (#4646) - Protocol: Use a more accurate fee for mutual close negotiation. (#4619)
- Protocol: channel feerates reduced to bitcoind's "6 block ECONOMICAL" rate. (#4507)
- keysend now uses 22 for the final CLTV, making it rust-lightning compatible. (#4548)
- Plugins:
fundchannelandmultifundchannelwill now reserve funding they use for 2 weeks instead of 12 hours. (#4510) - Plugins: we now always send
allow-deprecated-apisin getmanifest. (#4465)
Deprecated
Note: You should always set allow-deprecated-apis=false to test for changes.
- lightningd:
enable-autotor-v2-modeoption. Use v3. See https://blog.torproject.org/v2-deprecation-timeline. (#4549) - lightningd: v2 Tor addresses. Use v3. See https://blog.torproject.org/v2-deprecation-timeline. (#4549)
- JSON-RPC:
listtransactionsoutputssatoshisfield (usemsatinstead). (#4594) - JSON-RPC:
listfundschannelsfunding_allocation_msatandfunding_msat: usefunding. (#4594) - JSON-RPC:
listfundschannelslast_tx_fee: uselast_tx_fee_msat. (#4594) - JSON-RPC:
listfundschannelscloseris now omitted if it does not apply, not JSONnull. (#4594)
Removed
- JSON-RPC:
newaddrno longer includesaddressfield (deprecated in 0.7.1) (#4465) - pyln: removed deprecated
fundchannel/fundchannel_startsatoshiarg. (#4465) - pyln: removed deprecated pay/sendpay
descriptionarg. (#4465) - pyln: removed deprecated close
forcevariant. (#4465)
Fixed
- JSON-RPC:
listinvoiceno longer crashes if given an invalid (or bolt12)invstringargument. (#4625) - JSON-RPC:
listconfigswould list some boolean options as strings"true"or"false"instead of using JSON booleans. (#4594) - Protocol: don't ever send 0
fee_updates(regtest bug). (#4629) - Protocol: We could get stuck on signature exchange if we needed to retransmit the final
revoke_and_ack. (#4559) - Protocol: Validate chain hash for
gossip_timestamp_filtermessages (#4514) - Protocol: We would sometimes gratuitously disconnect 30 seconds after an HTLC failed. (#4550)
- Protocol: handle complex feerate transitions correctly. (#4480)
- Protocol: Don't create more than one feerate change at a time, as this seems to desync with LND. (#4480)
- Build: Fixes
make full-checkerrors on macOS (#4613) - Build: Fixes
makewith--enable-developeroption on macOS. (#4613) - Docs: Epic documentation rewrite: each now lists complete and accurate JSON output, tested against testsuite. (#4594)
- Config:
addrautotor and statictor /torport arguments now advertized correctly. (#4603) - pay: Fixed an issue when filtering routehints when we can't find ourselves in the local network view. (#4581)
- pay: The presplitter mod will no longer exhaust the HTLC budget. (#4563)
- pay: Fix occasional crash paying an invoice with a routehint to us. (#4555)
- Compat: Handle windows-style newlines and other trailing whitespaces correctly in bitcoin-cli interface (#4502)
EXPERIMENTAL
- bolt12 decode
timestampfield deprecated in favor of new namecreated_at. (#4669) - JSON-RPC:
listpeersnow includes thescratch_txidfor every inflight (if is a dual-funded channel) (#4521) - JSON-RPC: for v2 channels, we now list the inflights information for a channel (#4521)
- JSON-RPC:
fetchinvoicecan take a payer note, andlistinvoicewill show thepayer_notesreceived. (#4625) - JSON-RPC:
fetchinvoiceandsendinvoicewill connect directly if they can't find an onionmessage route. (#4625) - JSON-RPC:
openchannel_initnow takes arequested_amt, which is an amount to request from peer (#4639) - JSON-RPC:
fundchannelnow takes optionalrequest_amtparameter (#4639) - JSON-RPC:
fundchannel,multifundchannel, andopenchannel_initnow accept acompact_leasefor any requested funds (#4639) - JSON-RPC: close now has parameter to force close a leased channel (
option_will_fund) (#4639) - JSON-RPC:
listnodesnow includes thelease_rates, if available (#4639) - JSON-RPC: new RPC
setleaserates, for passing in the rates to advertise for a channel lease (option_will_fund) (#4639) - JSON-RPC:
decodenow gives avalidboolean (it does partial decodes of some invalid data). (#4501) - JSON-RPC:
listoffersnow showslocal_offer_idwhen listing all offers. (#4625) - Protocol: we can now upgrade old channels to
option_static_remotekey. See https://github.com/lightningnetwork/lightning-rfc/pull/868 (#4532) - Protocol: we support the quiescence protocol from https://github.com/lightningnetwork/lightning-rfc/pull/869 (#4520)
- Protocol: Replaces
init_rbf'sfee_stepfor RBF of v2 opens withfunding_feerate_perkw, breaking change (#4648) - Protocol: BOLT12 offers can now be unsigned, for really short QR codes. (#4625)
- Protocol: offer signature format changed. (#4630)
- Plugins:
rbf_channelhook haschannel_max_msatparameter (#4489) - Plugins:
openchannel2hook now includes optional fields for a channel lease request (#4639) - Plugins: add a
channel_max_msatvalue to theopenchannel2hook. Tells you the total max funding this channel is allowed to have. (#4489) - funder:
funderupdatecommand to view and update params for contributing our wallet funds to v2 channel openings. Provides params for enablingoption_will_fund. (#4664)
0.10.0 - 2021-03-28: Neutralizing Fee Therapy
This release named by @jsarenik.
Added
- Protocol: we treat error messages from peer which refer to "all channels" as warnings, not errors. (#4364)
- Protocol: we now report the new (draft) warning message. (#4364)
- JSON-RPC:
connectreturnsaddressit actually connected to (#4436) - JSON-RPC:
connectreturns "direction" ("in": they initiated, or "out": we initiated) ([#4452]) - JSON-RPC:
txprepareandwithdrawnow return apsbtfield. (#4428) - JSON-RPC:
fundchannel_completetakes a psbt parameter. (#4428) - pay:
paywill now remove routehints that are unusable due to the entrypoint being unknown or unreachable. (#4404) - Plugins:
peer_connectedhook andconnectnotifications have "direction" field. ([#4452]) - Plugins: If there is a misconfiguration with important plugins we now abort early with a more descriptive error message. (#4418)
- pyln: Plugins that are run from the command line print helpful information on how to configure c-lightning to include them and print metadata about what RPC methods and options are exposed. (#4419)
- JSON-RPC:
listpeersnow shows latest feerate and unilateral close fee. (#4407) - JSON-RPC:
listforwardscan now filter by status, in and out channel. (#4349) - JSON-RPC: Add new parameter
excess_as_changeto fundpsbt+utxopsbt (#4368) - JSON-RPC:
addgossipallows direct injection of network gossip messages. (#4361) - pyln-testing: The RPC client will now pretty-print requests and responses to facilitate log-based debugging. (#4357)
Changed
- Plugins: the
rpc_commandhook is now chainable. (#4384) - JSON-RPC: If bitcoind won't give a fee estimate in regtest, use minimum. (#4405)
- Protocol: we use
sync_completefor gossip range query replies, with detection for older spec nodes. (#4389) - Plugins:
peer_connectedrejections now send a warning, not an error, to the peer. (#4364) - Protocol: we now send warning messages and close the connection, except on unrecoverable errors. (#4364)
- JSON-RPC:
sendpayno longer extracts updates from errors, the caller should do it from theraw_message. (#4361) - Plugins:
peer_connectedhook is now chainable (#4351) - Plugins:
custommsghook is now chainable (#4358)
Deprecated
Note: You should always set allow-deprecated-apis=false to test for changes.
- JSON-RPC:
fundchannel_completetxidandtxoutparameters (usepsbt) (#4428) - Plugins: The
messagefield on thecustommsghook is deprecated in favor of thepayloadfield, which skips the internal prefix. (#4394)
Removed
bclireplacements must allowallowhighfeesargument (deprecated 0.9.1). (#4362)listsendpayswill no longer addamount_msatnull(deprecated 0.9.1). (#4362)
Fixed
- Protocol: overzealous close when peer sent more HTLCs than they'd told us we could send. (#4432)
- pay: Report the correct decoding error if bolt11 parsing fails. (#4404)
- pay:
paywill now abort early if the destination is not reachable directly nor via routehints. (#4404) - pay:
paywas reporting in-flight parts as failed (#4404) - pay:
paywould crash on corrupt gossip store, which (if version was ever wrong) we'd corrupt again ([#4453]) - pyln: Fixed an error when calling
listfundswith an older c-lightning version causing an error about an unknownspentparameter (#4417) - Plugins:
dev-sendcustommsgincluded the type and length prefix when sending a message. (#4413) - Plugins: The
custommsghook no longer includes the internal type prefix and length prefix in itspayload(#4394) - db: Fixed an access to a NULL-field in the
channel_htlcstable and resulting warning. (#4378) - pay: Payments with an empty route (self-payment) are now aborted. (#4379)
- Protocol: always accept channel_updates from errors, even they'd otherwise be rejected as spam. (#4361)
- connectd: Occasional crash in connectd due to use-after-free (#4360)
- lightningd: JSON failures when --daemon is used without --log-file. (#4350)
- lightningd: don't assert if time goes backwards temporarily. ([#4449])
EXPERIMENTAL
These options are either enabled by explicit experimental config
parameters, or building with --enable-experimental-features.
- lightningd:
experimental-dual-fundruntime flag will enable dual-funded protocol on this node ([#4427]) - lightningd:
experimental-shutdown-wrong-fundingto allow remote nodes to close incorrectly opened channels. (#4421) - JSON-RPC: close has a new
wrong_fundingoption to try to close out unused channels where we messed up the funding tx. (#4421) - JSON-RPC: Permit user-initiated aborting of in-progress opens. Only valid for not-yet-committed opens and RBF-attempts (#4424)
- JSON-RPC:
listpeersnow includes 'last_feerate', 'next_feerate', 'initial_feerate' and 'next_fee_step' for channels in state DUALOPEND_AWAITING_LOCKIN (#4399)
0.9.3 - 2021-01-20: Federal Qualitative Strengthening
This release named by Karol Hosiawa.
Added
- JSON-RPC: The
listfundsmethod now includes spent outputs if thespentparameter is set to true. (#4296) - JSON-RPC:
createinvoicenew low-level invoice creation API. (#4256) - JSON-RPC:
invoicenow takes an optionalcltvparameter. (#4320) - JSON-RPC:
listinvoicescan now query for an invoice matching apayment_hashor abolt11string, in addition tolabel(#4312) - JSON-RPC: fundpsbt/utxopsbt have new param,
min_witness_utxo, which sets a floor for the weight calculation of an added input (#4211) - docs:
doc/BACKUP.mddescribes how to back up your C-lightning node. (#4207) - fee_base and fee_ppm to listpeers (#4247)
- hsmtool: password must now be entered on stdin. Password passed on the command line are discarded. (#4303)
- plugins:
startcommand can now take plugin-specific parameters. (#4278) - plugins: new "multi" field allows an option to be specified multiple times. (#4278)
- pyln-client:
fundpsbt/utxopsbtnow supportmin_witness_weightparam (#4295) - pyln: Added support for command notifications to LightningRpc via the
notifycontext-manager. (#4311) - pyln: Plugin methods can now report progress or status via the
Request.notifyfunction (#4311) - pyln: plugins can now raise RpcException for finer control over error returns. (#4279)
- experimental-offers: enables fetch, payment and creation of (early draft) offers. (#4328)
- libplugin: init can return a non-NULL string to disable the plugin. (#4328)
- plugins: plugins can now disable themselves by returning
disable, even if marked important. (#4328) - experimental-onion-messages enables send, receive and relay of onion messages. (#4328)
Changed
- JSON-RPC: invalid UTF-8 strings now rejected. (#4227)
- bitcoin: The default network was changed from "testnet" to "mainnet", this only affects new nodes (#4277)
- cli:
lightning-clinow performs better sanity checks on the JSON-RPC requests it sends. (#4259) - hsmd: we now error at startup on invalid hsm_secret (#4307)
- hsmtool: all commands now error on invalid hsm_secret (#4307)
- hsmtool: the
encryptnow asks you to confirm your password (#4307) - lightningd: the
--encrypted-hsmnow asks you to confirm your password when first set (#4307) - plugins: Multiple plugins can now register
db_writehooks. (#4220) - plugins: more than one plugin can now register
invoice_paymenthook. (#4226) - pyln: Millisatoshi has new method,
to_whole_satoshi; rounds value up to the nearest whole satoshi (#4295) - pyln:
txprepareno longer supports the deprecateddestination satoshi feerate utxoscall format. (#4259)
Deprecated
Note: You should always set allow-deprecated-apis=false to test for changes.
Removed
- plugins: options to
initare no longer given as strings if they are bool or int types (deprecated in 0.8.2). (#4278)
Fixed
- JSON-RPC: The status of the shutdown meesages being exchanged is now displayed correctly. (#4263)
- JSONRPC:
setchannelfeewould fail an assertion if channel wasn't in normal state. (#4282) - db: Fixed a performance regression during block sync, resulting in many more queries against the DB than necessary. (#4319)
- hsmtool: the
generatehsmcommand now generates an appropriately-sized hsm_secret (#4304) - keysend: Keysend now checks whether the destination supports keysend before attempting a payment. If not a more informative error is returned. (#4236)
- log: Do not terminate on the second received SIGHUP. (#4243)
- onchaind is much faster when unilaterally closing old channels. (#4250)
- onchaind uses much less memory on unilateral closes for old channels. (#4250)
- pay: Fixed an issue where waiting for the blockchain height to sync could time out. (#4317)
- pyln: parsing msat from a float string (#4237)
- hsmtool: fix a segfault on
dumponchaindescriptorswithout network parameter (#4341) - db: Speed up deletion of peer especially when there is a long history with that peer. (#4337)
Security
0.9.2 - 2020-11-20: Now with 0-of-N Multisig
This release named by Sergi Delgado Segura.
- Note: PSBTs now require bitcoind v0.20.1 or above *
Added
- JSON-RPC: Added 'state_changes' history to listpeers channels (4126)
- JSON-RPC: Added 'opener' and 'closer' to listpeers channels (4126)
- JSON-RPC:
closenow sends notifications for slow closes (ifallow-deprecated-apis=false) (4046) - JSON-RPC:
notificationscommand to enable notifications. (4046) - JSON-RPC:
multifundchannelhas a new optional argument, 'commitment_feerate', which can be used to differentiate between the funding feerate and the channel's initial commitment feerate (4139) - JSON-RPC
fundchannelnow accepts an optional 'close_to' param, a bitcoin address that the channel funding should be sent to on close. Requiresopt_upfront_shutdownscript(4132) - Plugins: Channel closure resaon/cause to channel_state_changed notification (4126)
- Plugins:
htlc_acceptedhook can now return customfailure_onion. (4187) - Plugins: hooks can now specify that they must be called 'before' or 'after' other plugins. (4168)
- hsmtool: a new command was added to hsmtool for dumping descriptors of the onchain wallet (4171)
- hsmtool:
hsm_secretgeneration from a seed-phrase following BIP39. (4065) - cli: print notifications and progress bars if commands provide them. (4046)
- pyln-client: pyln.client handles and can send progress notifications. (4046)
- pyln-client: Plugin method and hook requests prevent the plugin developer from accidentally setting the result multiple times, and will raise an exception detailing where the result was first set. (4094)
- pyln-client: Plugins have been integrated with the
loggingmodule for easier debugging and error reporting. (4101) - pyln-proto: Added pure python implementation of the sphinx onion creation and processing functionality. (4056)
- libplugin: routines to send notification updates and progress. (4046)
- build: clang build now supports --enable-address-sanitizer . (4013)
- db: Added support for key-value DSNs for postgresql, allowing for a wider variety of configurations and environments. (4072)
Changed
-
- Requires bitcoind v0.20.1 or above * (4179)
- Plugins:
paywill now try disabled channels as a last resort. (4093) - Protocol: mutual closing feerate reduced to "slow" to avoid overpaying. (4113)
- In-memory log buffer reduced from 100MB to 10MB (4087)
Deprecated
Note: You should always set allow-deprecated-apis=false to test for changes.
- cli: scripts should filter out '^# ' or use
-N none, as commands will start returning notifications soon (4046)
Removed
- Protocol: Support for receiving full gossip from ancient LND nodes. (4184)
- JSON-RPC:
plugin stopresult with an empty ("") key (deprecated 0.8.1) (4049) - JSON-RPC: The hook
rpc_commandreturning{"continue": true}(deprecated 0.8.1) (4049) - JSON-RPC: The hook
db_writecan no longer returntrue(deprecated in 0.8.1) (4049) - JSON-RPC:
htlc_acceptedhookper_hop_v0object removed (deprecated 0.8.0) (4049) - JSON-RPC:
listconfigsduplicated "plugin" paths (deprecated 0.8.0) (4049) - Plugin: Relative plugin paths are not relative to startup (deprecated v0.7.2.1) (4049)
Fixed
- Network: Fixed a race condition when us and a peer attempt to make channels to each other at nearly the same time. (4116)
- Protocol: fixed retransmission order of multiple new HTLCs (causing channel close with LND) (4124)
- Protocol:
signetis now compatible with the final bitcoin-core version (4078) - Crash: assertion fail at restart when source and destination channels of an HTLC are both onchain. (4122)
- We are now able to parse any amount string (XXXmsat, XX.XXXbtc, ..) we create. (4129)
- Some memory leaks in transaction and PSBT manipulate closed. (4071)
- openingd now uses the correct dust limit for determining the allowable floor for a channel open (affects fundee only) (4141)
- Plugin: Regression with SQL statement expansion that could result in invalid statements being passed to the
db_writehook. (4090) - build: no longer spuriously regenerates generated sources due to differences in
readdir(3) sort order. (4053) - db: Fixed a broken migration on postgres DBs that had really old channels. (4064)
Security
0.9.1 - 2020-09-15: The Antiguan BTC Maximalist Society
This release named by Jon Griffiths.
Added
- JSON-RPC:
multiwithdrawcommand to batch multiple onchain sends in a single transaction. Note it shuffles inputs and outputs, does not use BIP69. (3812) - JSON-RPC:
multifundchannelcommand to fund multiple channels to different peers all in a single onchain transaction. (3763) - JSON-RPC:
delpaycommand to delete a payment once completed or failed. (3899) - Plugins:
channel_state_changednotification (4020) - JSON-RPC:
listpayscan be used to query payments using thepayment_hash(3888) - JSON-RPC:
listpaysnow includes thepayment_hash(3888) - JSON-RPC:
listpaysnow includes the timestamp of the first part of the payment (3909) - Build: New reproducible build system now uses docker: try it at home with
doc/REPRODUCIBLE.md! (4021) - Plugins: Proxy information now provided in
init.configuration. (4010) - Plugins:
openchannel_hookis now chainable (3960) - JSON-RPC:
listpeersshowsfeatureslist for each channel. (3963) - JSON-RPC:
signpsbttakes an optionalsignonlyarray to limit what inputs to sign. (3954) - JSON-RPC:
utxopsbttakes a newlocktimeparameter (3954) - JSON-RPC:
fundpsbttakes a newlocktimeparameter (3954) - JSON-RPC: New low-level command
utxopsbtto create PSBT from existing utxos. (3845) - JSON-RPC:
listfundsnow has aredeemscriptfield for p2sh-wrapped outputs. (3844) - JSON-RPC:
fundchannelhas newoutnumfield indicating which output of the transaction funds the channel. (3844) - pyln-client: commands and options can now mark themselves deprecated. (3883)
- Plugins: can now mark their options and commands deprecated. (3883)
- plugins:
getmanifestmay now include "allow-deprecated-apis" boolean flag. (3883) - JSON-RPC:
listpaysnow lists thedestinationif it was provided (e.g., via thepayplugin orkeysendplugin) (3888) - config: New option
--important-pluginloads a plugin is so important that if it dies,lightningdwill exit rather than continue. You can still--disable-pluginit, however, which trumps--important-pluginand it will not be started at all. (3890) - Plugins: We now explicitly check at startup that our default Bitcoin backend (bitcoind) does relay transactions. (3889)
- Plugins: We now explicitly check at startup the version of our default Bitcoin backend (bitcoind). (3889)
Changed
- Build: we no longer require extra Python modules to build. (3994)
- Build: SQLite3 is no longer a hard build requirement. C-Lightning can now be built to support only the PostgreSQL back-end. (3999)
- gossipd: The
gossipdis now a lot quieter, and will log only when a message changed our network topology. (3981) - Protocol: We now make MPP-aware routehints in invoices. (3913)
- onchaind: We now scorch the earth on theft attempts, RBFing up our penalty transaction as blocks arrive without a penalty transaction getting confirmed. (3870)
- Protocol:
fundchannelnow shuffles inputs and outputs, and no longer follows BIP69. (3769) - JSON-RPC:
withdrawnow randomizes input and output order, not BIP69. (3867) - JSON-RPC:
txpreparereservations stay across restarts: usefundpsbt/reservepsbt/unreservepsbt(3867) - config:
min-capacity-satis now stricter about checking usable capacity of channels. (3969) - Protocol: Ignore (and log as "unusual") repeated
WIRE_CHANNEL_REESTABLISHmessages, to be compatible with buggy peer software that sometimes does this. (3964) - contrib: startup_regtest.sh
startup_lnnow takes a number of nodes to create as a parameter (3992) - JSON-RPC:
invoiceno longer accepts zero amounts (did you mean "any"?) (3974) - Protocol: channels now pruned after two weeks unless both peers refresh it (see lightning-rfc#767) (3959)
- Protocol: bolt11 invoices always include CLTV fields (see lightning-rfc#785) (3959)
- config: the default CLTV expiry is now 34 blocks, and final expiry 18 blocks as per new BOLT recommendations. (3959)
- Plugins: Builtin plugins are now marked as important, and if they crash, will cause C-lightning to stop as well. (3890)
- Protocol: Funding timeout is now based on the header count reported by the bitcoin backend instead of our current blockheight which might be lower. (3897)
- JSON-RPC:
delinvoicewill now report specific error codes: 905 for failing to find the invoice, 906 for the invoice status not matching the parameter. (3853)
Deprecated
Note: You should always set allow-deprecated-apis=false to test for changes.
- Plugins:
bclireplacements should note thatsendrawtransactionnow has a second required Boolean argument,allowhighfees, which iftrue, means ignore any fee limits and just broadcast the transaction. (3870) - JSON-RPC:
listsendpayswill no longer addnullif we don't know theamount_msatfor a payment. (3883) - Plugins:
getmanifestwithout any parameters; plugins should accept any parameters for future use. (3883)
Removed
- JSON-RPC: txprepare
destinationsatoshiargument form removed (deprecated v0.7.3) (3867)
Fixed
- Plugins:
paypresplitmodifier now supports large payments without exhausting the available HTLCs. (3986) - Plugins:
paycorrects a case where we put the sub-payment value instead of the total value in thetotal_msatfield of a multi-part payment. (3914) - Plugins:
payis less aggressive with forgetting routehints. (3914) - Plugins:
payno longer ignores routehints if the payment exceeds 10,000 satoshi. This is particularly bad if the payee is only reachable via routehints in an invoice. (3908) - Plugins:
paylimits the number of splits if the payee seems to have a low number of channels that can enter it, given the max-concurrent-htlcs limit. (3936) - Plugins:
paywill now make reliable multi-part payments to nodes it doesn't have a node_announcement for. (4035) - JSON-RPC: significant speedups for plugins which create large JSON replies (e.g. listpays on large nodes). (3957)
- doc: Many missing manual pages were completed (3938)
- Build: Fixed compile error on macos (4019)
- pyln: Fixed HTLCs hanging indefinitely if the hook function raises an exception. A safe fallback result is now returned instead. (4031)
- Protocol: We now hang up if peer doesn't respond to init message after 60 seconds. (4039)
- elementsd: PSBTs include correct witness_utxo struct for elements transactions (4033)
- cli: fixed crash with
listconfigsin-Hmode (4012) - Plugins:
bclisignificant speedups for block synchronization (3985) - Build: On systems with multiple installed versions of the PostgreSQL client library, C-Lightning might link against the wrong version or fail to find the library entirely.
./configurenow usespg_configto locate the library. (3995) - Build: On some operating systems the postgresql library would not get picked up.
./configurenow usespg_configto locate the headers. (3991) - libplugin: significant speedups for reading large JSON replies (e.g. calling listsendpays on large nodes, or listchannels / listnodes). (3957)
Security
0.9.0 - 2020-07-31: "Rat Poison Squared on Steroids"
This release was named by Sebastian Falbesoner.
Added
- plugin:
paywas rewritten to use the new payment flow. Seelegacypayfor old version (3809) - plugin:
paywill split payments that are failing due to their size into smaller parts, if recipient supports thebasic_mppoption (3809) - plugin:
paywill split large payments into parts of approximately 10k sat if the recipient supports thebasic_mppoption (3809) - plugin: The pay plugin has a new
--disable-mppflag that allows opting out of the above two multi-part payment addition. (3809) - JSON-RPC: new low-level coin selection
fundpsbtroutine. (3825) - JSON-RPC: The
paycommand now uses the new payment flow, the newlegacypaycommand can be used to issue payment with the legacy code if required. (3826) - JSON-RPC: The
keysendcommand allows sending to a node without requiring an invoice first. (3792) - JSON-RPC:
listfundsnow has a 'scriptpubkey' field. (3821) - docker: Docker build now includes
LIGHTNINGD_NETWORKENV variable which defaults to "bitcoin". An user can override this (e.g. by-eoption indocker run) to run docker container in regtest or testnet or any valid argument to--network. (3813) - cli: We now install
lightning-hsmtoolfor yourhsm_secretneeds. (3802) - JSON-RPC: new call
signpsbtwhich will add the wallet's signatures to a provided psbt (3775) - JSON-RPC: new call
sendpsbtwhich will finalize and send a signed PSBT (3775) - JSON-RPC: Adds two new rpc methods,
reserveinputsandunreserveinputs, which allow for reserving or unreserving wallet UTXOs (3775) - Python:
pyln.spec.bolt{1,2,4,7}packages providing python versions of the spec text and defined messages. (3777) - pyln: new module
pyln.proto.message.bolts(3733) - cli: New
--flatmode for easy grepping oflightning-clioutput. (3722) - plugins: new notification type,
coin_movement, which tracks all fund movements for a node (3614) - plugin: Added a new
commitment_revocationhook that provides the plugin with penalty transactions for all revoked transactions, e.g., to push them to a watchtower. (3659) - JSON-API:
listchannelsnow shows channelfeatures. (3685) - plugin: New
invoice_creationplugin event (3658) - docs: Install documentation now has information about building for Alpine linux (3660)
- plugin: Plugins can opt out of having an RPC connection automatically initialized on startup. (3857)
- JSON-RPC:
sendonionhas a new optionalbolt11argument for when it's used to pay an invoice. (3878) - JSON-RPC:
sendonionhas a new optionalmsatoshithat is used to annotate the payment with the amount received by the destination. (3878)
Changed
- JSON-RPC:
fundchannel_cancelno longer requires its undocumentedchannel_idargument afterfundchannel_complete. (3787) - JSON-RPC:
fundchannel_cancelwill now succeed even when executed while afundchannel_completeis ongoing; in that case, it will be considered as cancelling the funding after thefundchannel_completesucceeds. (3778) - JSON-RPC:
listfunds'outputs' now includes reserved outputs, designated as 'reserved' = true (3764) - JSON-RPC:
txpreparenow prepares transactions whosenLockTimeis set to the tip blockheight, instead of using 0.fundchannelwill usenLockTimeset to the tip blockheight as well. (3797) - build: default compile output is prettier and much less verbose (3686)
- config: the
plugin-disableoption now works even if specified before the plugin is found. (3679) - plugins: The
autocleanplugin is no longer dynamic (you cannot manage it with thepluginRPC command anymore). (3788) - plugin: The
paystatusoutput changed as a result of the payment flow rework (3809)
Deprecated
Note: You should always set allow-deprecated-apis=false to test for changes.
- JSON-RPC: the
legacypaymethod from the pay plugin will be removed afterpayproves stable (3809)
Removed
- protocol: support for optional fields of the reestablish message are now compulsory. (3782)
Fixed
- JSON-RPC: Reject some bad JSON at parsing. (3761)
- JSON-RPC: The
feerateparameters now correctly handle the standardness minimum when passed asperkb. (3772) - JSON-RPC:
listtransactionsnow displays all txids as little endian (3741) - JSON-RPC:
paynow respects maxfeepercent, even for tiny amounts. (3693) - JSON-RPC:
withdrawandtxpreparefeeratecan be a JSON number. (3821) - bitcoin:
lightningdnow always exits if the Bitcoin backend failed unexpectedly. (3675) - cli: Bash completion on
lightning-clinow works again (3719) - config: we now take the
--commit-feeparameter into account. (3732) - db: Fixed a failing assertion if we reconnect to a peer that we had a channel with before, and then attempt to insert the peer into the DB twice. (3801)
- hsmtool: Make the password argument optional for
guesstoremoteanddumpcommitmentssub-commands, as shown in our documentation and help text. (3822) - macOS: Build for macOS Catalina / Apple clang v11.0.3 fixed (3756)
- protocol: Fixed a deviation from BOLT#2: if both nodes advertised
option_upfront_shutdown_scriptfeature: MUST include ... a zero-lengthshutdown_scriptpubkey. (3816) - wumbo: negotiate successfully with Eclair nodes. (3712)
- plugin:
bclino longer logs a harmless warning about being unable to connect to the JSON-RPC interface. (3857)
Security
0.8.2 - 2020-04-30: "A Scalable Ethereum Blockchain"
This release was named by @arowser.
Added
- pay: The
keysendplugin implements the ability to receive spontaneous payments (keysend) (3611) - Plugin: the Bitcoin backend plugin API is now final. (3620)
- Plugin:
htlc_acceptedhook can now offer a replacement onionpayload. (3611) - Plugin:
feature_setobject added toinit(3612) - Plugin: 'flag'-type option now available. (3586)
- JSON API: New
getsharedsecretcommand, which lets you compute a shared secret with this node knowing only a public point. This implements the BOLT standard of hashing the ECDH point, and is incompatible with ECIES. (3490) - JSON API:
large-channelsoption to negotiate opening larger channels. (3612) - JSON API: New optional parameter to the
closecommand to control the closing transaction fee negotiation back off step (3390) - JSON API:
connectreturnsfeaturesof the connected peer on success. (3612) - JSON API:
listpeersnow hasreceivable_msat(3572) - JSON API: The fields "opening", "mutual_close", "unilateral_close", "delayed_to_us", "htlc_resolution" and "penalty" have been added to the
feeratescommand. (3570) - JSON API: "htlc_timeout_satoshis" and "htlc_success_satoshis" fields have been added to the
feeratescommand. (3570) - pyln now sends proper error on bad calls to plugin methods (3640)
- devtools: The
oniontool can now generate, compress and decompress onions for rendez-vous routing (3557) - doc: An FAQ was added, accessible at https://lightning.readthedocs.io/FAQ.html (3551)
Changed
- We now use a higher feerate for resolving onchain HTLCs and for penalty transactions (3592)
- We now announce multiple addresses of the same type, if given. (3609)
- pay: Improved the performance of the
pay-plugin by limiting thelistchannelswhen computing the shadow route. (3617) - JSON API:
invoiceexposeprivatechannelsnow includes explicitly named channels even if they seem like dead-ends. (3633) - Added workaround for lnd rejecting our commitment_signed when we send an update_fee after channel confirmed. (3634)
- We now batch the requests for fee estimation to our Bitcoin backend. (3570)
- We now get more fine-grained fee estimation from our Bitcoin backend. (3570)
- Forwarding messages is now much faster (less inter-daemon traffic) (3547)
- dependencies: We no longer depend on python2 which has reached end-of-life (3552)
Deprecated
Note: You should always set allow-deprecated-apis=false to test for changes.
- JSON API:
fundchannel_startsatoshifield really deprecated now (useamount). (3603) - JSON API: The "urgent", "slow", and "normal" field of the
feeratescommand are now deprecated. (3570) - JSON API: Removed double wrapping of
rpc_commandpayload inrpc_commandJSON field. (3560) - Plugins: htlc_accepted_hook "failure_code" only handles simple cases now, use "failure_message". (3472)
- Plugins: invoice_payment_hook "failure_code" only handles simple cases now, use "failure_message". (3472)
Removed
- JSON API:
listnodesglobalfeaturesoutput (featuressince in 0.7.3). (3603) - JSON API:
listpeerslocalfeaturesandglobalfeaturesoutput (featuressince in 0.7.3). (3603) - JSON API:
peer_connectedhooklocalfeaturesandglobalfeaturesoutput (featuressince in 0.7.3). (3603) - JSON API:
fundchannelandfundchannel_startsatoshiparameter removed (renamed toamountin 0.7.3). (3603) - JSON API:
closeforceparameter removed (deprecated in 0.7.2.1) (3603) - JSON API:
sendpaydescriptionparameter removed (renamed tolabelin 0.7.0). (3603)
Fixed
- Plugins: A crashing plugin will no longer cause a hook call to be delayed indefinitely (3539)
- Plugins: setting an 'init' feature bit allows us to accept it from peers. (3609)
- Plugins: if an option has a type int or bool, return the option as that type to the plugin's init (3582)
- Plugins: Plugins no longer linger indefinitely if their process terminates (3539)
- JSON API: Pending RPC method calls are now terminated if the handling plugin exits prematurely. (3639)
- JSON API:
fundchannel_startreturnsamounteven when deprecated APIs are enabled. (3603) - JSON API: Passing 0 as minconf to withdraw allows you to use unconfirmed transaction outputs, even if explicitly passed as the
utxosparameter (3593) - JSON API:
txpreparedoesn't crash lightningd anymore if you pass unconfirmed utxos (3534) - invoice: The invoice parser assumed that an amount without a multiplier was denominated in msatoshi instead of bitcoins. (3636)
- pay: The
pay-plugin was generating non-contiguous shadow routes (3617) paywould crash on expired waits with tried routes (3630)paywould crash when attempting to find cheaper route with exemptfee (3630)- Multiple definition of chainparams on Fedora (or other really recent gcc) (3631)
- bcli now handles 0msat outputs in gettxout. (3605)
- Fix assertion on reconnect if we fail to run openingd. (3604)
- Use lightning-rfc #740 feespike margin factor of 2 (3589)
- Always broadcast the latest close transaction at the end of the close fee negotiation, instead of sometimes broadcasting the peer's initial closing proposal. (3556)
Security
0.8.1 - 2020-02-12: "Channel to the Moon"
This release named by Vasil Dimov @vasild.
Added
- Plugin: pluggable backends for Bitcoin data queries, default still bitcoind (using bitcoin-cli). (3488)
- Plugin: Plugins can now signal support for experimental protocol extensions by registering featurebits for
node_announcements, the connection handshake, and for invoices. For now this is limited to non-dynamic plugins only (3477) - Plugin: 'plugin start' now restores initial umask before spawning the plugin process (3375)
- JSON API:
fundchannelandfundchannel_startcan now accept an optional parameter,push_msat, which will gift that amount of satoshis to the peer at channel open. (3369) - JSON API:
waitanyinvoicenow supports atimeoutparameter, which when set will cause the command to fail if unpaid aftertimeoutseconds (can be 0). (3449) - Config:
--rpc-file-modesets permissions on the JSON-RPC socket. (3437) - Config:
--subdaemonallows alternate subdaemons. (3372) - lightningd: Optimistic locking prevents instances from running concurrently against the same database, providing linear consistency to changes. (3358)
- hsmd: Added fields to hsm_sign_remote_commitment_tx to allow complete validation by signing daemon. (3363)
- Wallet: withdrawal transactions now sets nlocktime to the current tip. (3465)
- elements: Added support for the dynafed block header format and elementsd >=0.18.1 (3440)
Changed
- JSON API: The hooks
db_write,invoice_payment, andrpc_commandnow accept{ "result": "continue" }to mean "do default action". (3475) - Plugin: Multiple plugins can now register for the htlc_accepted hook. (3489)
- JSON API:
listforwardsnow showsout_channeleven if we couldn't forward. - JSON API:
funchannel_cancel: only the opener of a fundchannel can cancel the channel open (3336) - JSON API:
sendpayoptionalmsatoshiparam for non-MPP (if set), must be the exact amount sent to the final recipient. (3470) - JSON API:
waitinvoicenow returns error code 903 to designate that the invoice expired during wait, instead of the previous -2 (3441) - JSON_API: The
connectcommand now returns its own error codes instead of a generic -1. (3397) - Plugin:
notify_sendpay_successandnotify_sendpay_failureare now always called, even if there is no command waiting on the result. (3405) - hsmtool:
hsmtoolnow creates its backup copy in the same directory as the originalhsm_secretfile. (3409) - JSON API:
invoiceexposeprivatechannelscan specify exact channel candidates. (3351) - JSON API:
db_writenew fielddata_versionwhich contains a numeric transaction counter. (3358) - JSON API:
plugin stopresult is now accessible using theresultkey instead of the empty ('') key. (3374) - lightning-cli: specifying
--rpc-file(without--network) has been restored. (3353)
Deprecated
Note: You should always set allow-deprecated-apis=false to test for changes.
- JSON API: The hook
db_writereturningtrue: use{ "result": "continue" }. (3475) - JSON API: The hook
invoice_paymentreturning{}: use{ "result": "continue" }. (3475) - JSON API: The hook
rpc_commandreturning{"continue": true}: use{ "result": "continue" }. (3475) - JSON API:
plugin stopresult with an empty ("") key: use "result". (3374)
Removed
- Plugin: Relative plugin paths are not relative to startup (deprecated v0.7.2.1) (3471)
- JSON API: Dummy fields in listforwards (deprecated v0.7.2.1) (3471)
Fixed
- Doc: Corrected and expanded
lightning-listpeers.7documentation. (3497) - Doc: Fixed factual errors in
lightning-listchannels.7documentation. (3494) - Protocol: Corner case where channel could become unusable (https://github.com/lightningnetwork/lightning-rfc/issues/728) (3500)
- Plugins: Dynamic C plugins can now be managed when lightningd is up (3480)
- Doc:
connect: clarified failure problems and usage. (3459) - Doc:
fundchannel: clarify that we automaticallyconnects if your node knows how. (3459) - Protocol: Now correctly reject "fees" paid when we're the final hop (lightning-rfc#711) (3474)
- JSON API:
txprepareno longer crashes when more than two outputs are specified (3384) - Pyln: now includes the "jsonrpc" field to jsonrpc2 requests (3442)
- Plugin:
paynow detects a previously non-permanent error (final_cltv_too_soon) that has been merged into a permanent error (incorrect_or_unknown_payment_details), and retries. (3376) - JSON API: The arguments for
createonionare now checked to ensure they fit in the onion packet. (3404) - TOR: We don't send any further request if the return code of connect is not zero or error. (3408)
- Build: Developer mode compilation on FreeBSD. (3344)
- Protocol: We now reject invoices which ask for sub-millisatoshi amounts (3481)
Security
0.8.0 - 2019-12-16: "Blockchain Good, Orange Coin Bad"
This release was named by Michael Schmoock @m-schmoock.
Added
- JSON API: Added
createonionandsendonionJSON-RPC methods allowing the implementation of custom protocol extensions that are not directly implemented in c-lightning itself. (3260) - JSON API:
listinvoicesnow displays the payment preimage if the invoice was paid. (3295) - JSON API:
listpeerschannels now includeclose_toandclose_to_addriff aclose_toaddress was specified at channel open (3223) - The new
pyln-testingpackage now contains the testing infrastructure so it can be reused to test against c-lightning in external projects (3218) - config: configuration files now support
include. (3268) - options: Allow the Tor inbound service port differ from 9735 (3155)
- options: Persistent Tor address support (3155)
- plugins: A new plugin hook,
rpc_commandallows a plugin to take overlightningdfor any RPC command. (2925) - plugins: Allow the
accepterto specify an upfront_shutdown_script for a channel via aclose_tofield in the openchannel hook result (3280) - plugins: Plugins may now handle modern TLV-style payloads via the
htlc_acceptedhook (3260) - plugins: libplugin now supports writing plugins which register to hooks (3317)
- plugins: libplugin now supports writing plugins which register to notifications (3317)
- protocol: Payment amount fuzzing is restored, but through shadow routing. (3212)
- protocol: We now signal the network we are running on at init. (3300)
- protocol: can now send and receive TLV-style onion messages. (3335)
- protocol: can now send and receive BOLT11 payment_secrets. (3335)
- protocol: can now receive basic multi-part payments. (3335)
- JSON RPC: low-level commands sendpay and waitsendpay can now be used to manually send multi-part payments. (3335)
- quirks: Workaround LND's
reply_channel_rangeissues instead of sending error. (3264) - tools: A new command,
guesstoremote, is added to the hsmtool. It is meant to be used to recover funds after an unilateral close of a channel withoption_static_remotekeyenabled. (3292)
Changed
⚠️ The default network and the default location of the lightning home directory changed. Please make sure that the configuration, key file and database are moved into the network-specific subdirectory.
- config: Default network (new installs) is now bitcoin, not testnet. (3268)
- config: Lightning directory, plugins and files moved into
<network>/subdir (3268) - JSON API: The
fundchannelcommand now tries to connect to the peer before funding the channel, no need toconnectbeforefundchannelif an address for the peer is known (3314) - JSON API:
htlc_acceptedhook hastype(currentlylegacyortlv) and other fields directly insideonion. (3167) - JSON API:
lightning_prefixes removed from subdaemon names, including in listpeersownerfield. (3241) - JSON API:
listconfigsnow structures plugins and include their options (3283) - JSON API: the
raw_payloadnow includes the first byte, i.e., the realm byte, of the payload as well. This allows correct decoding of a TLV payload in the plugins. (3261) - logging: formatting made uniform: [NODEID-]SUBSYSTEM: MESSAGE (3241)
- options:
configand<network>/configread by default. (3268) - options: log-level can now specify different levels for different subsystems. (3241)
- protocol: The TLV payloads for the onion packets are no longer considered an experimental feature and generally available. (3260)
- quirks: We'll now reconnect and retry if we get an error on an established channel. This works around lnd sending error messages that may be non-fatal. (3340)
⚠️ If you don't have a config file, you now may need to specify the network to lightning-cli (3268)
Deprecated
Note: You should always set allow-deprecated-apis=false to test for changes.
- JSON API:
listconfigsduplicated "plugin" paths (3283) - JSON API:
htlc_acceptedhookper_hop_v0object deprecated, as isshort_channel_idfor the final hop. (3167)
Removed
- JSON:
listpayswon't shown payments made via sendpay without a bolt11 string, or before 0.7.0. (3309)
Fixed
- JSON API: #3231
listtransactionscrash (3256) - JSON API:
listconfigsappends '...' to truncated config options. (3268) pyln-clientnow handles unicode characters in JSON-RPC requests and responses correctly. (3018)- bitcoin: If bitcoind goes backwards (e.g. reindex) refuse to start (unless forced with --rescan). (3274)
- bug:
gossipdcrash on huge number of unknown channels. (3273) - gossip: No longer discard most
node_announcements(fixes #3194) (3262) - options: We disable all dns even on startup the scan for bogus dns servers, if
--always-use-proxyis set true (3251) - protocol: "Bad commitment signature" closing channels when we sent back-to-back update_fee messages across multiple reconnects. (3329)
- protocol: Unlikely corner case is simultanous HTLCs near balance limits fixed. (3286)
Security
0.7.3 - 2019-10-18: "Bitcoin's Proof of Stake"
This release was named by @trueptolemy.
Added
- DB: lightningd now supports different SQL backends, instead of the default which is sqlite3. Adds a PostgresSQL driver
- elements: Add support of Liquid-BTC on elements
- JSON API:
closenow accepts an optional parameterdestination, to which the to-local output will be sent. - JSON API:
txprepareandwithdrawnow accept an optional parameterutxos, a list of utxos to include in the prepared transaction - JSON API:
listfundsnow lists a blockheight for confirmed transactions, and hasconnectedandstatefields for channels, likelistpeers. - JSON API:
fundchannel_startnow includes fieldscriptpubkey - JSON API: New method
listtransactions - JSON API:
signmessagewill now create a signature from your node on a message;checkmessagewill verify it. - JSON API:
fundchannel_startnow accepts an optional parameterclose_to, the address to which these channel funds should be sent to on close. Returnsusing_close_toif will use. - Plugin: new notifications
sendpay_successandsendpay_failure. - Protocol: nodes now announce features in
node_announcementbroadcasts. - Protocol: we now offer
option_gossip_queries_exfor finegrained gossip control. - Protocol: we now retransmit
funding_lockedupon reconnection while closing if there was no update - Protocol: no longer ask for
initial_routing_sync(only affects ancient peers). - bolt11: support for parsing feature bits (field
9). - Wallet: we now support the encryption of the BIP32 master seed (a.k.a.
hsm_secret). - pylightning: includes implementation of handshake protocol
Changed
- Build: Now requires
gettext - JSON API: The parameter
excludeofgetroutenow also support node-id. - JSON API:
txpreparenow usesoutputsas parameter other thandestinationandsatoshi - JSON API:
fundchannel_cancelis extended to work before funding broadcast. - JSON-API:
paycan exclude error nodes if the failcode ofsendpayhas the NODE bit set - JSON API: The
plugincommand now returns on error. A timeout of 20 seconds is added tostartandstartdirsubcommands at the end of which the plugin is errored if it did not complete the handshake withlightningd. - JSON API: The
plugincommand does not allow to start static plugins afterlightningdstartup anymore. - Protocol: We now push our own gossip to all peers, independent of their filter.
- Protocol: Now follows spec in responses to short channel id queries on unknown chainhashes
- Tor: We default now with autotor to generate if possible temporary ED25519-V3 onions. You can use new option
enable-autotor-v2-modeto fallback to V2 RSA1024 mode.
Deprecated
Note: You should always set allow-deprecated-apis=false to test for changes.
- JSON API:
fundchannelnow usesamountas the parameter name to replacesatoshi - JSON API:
fundchannel_startnow usesamountas the parameter name to replacesatoshi - JSON API:
listpeersandlistnodesfieldslocalfeaturesandglobalfeatures(now justfeatures). - Plugin:
peer_connectedhook fieldslocalfeaturesandglobalfeatures(now justfeatures).
Removed
- JSON API:
short_channel_idparameters in JSON commands with:separators (deprecated since 0.7.0). - JSON API:
descriptionparameters inpayandsendpay(deprecated since 0.7.0). - JSON API:
descriptionoutput field inwaitsendpayandsendpay(deprecated since 0.7.0). - JSON API:
listpayments(deprecated since 0.7.0).
Fixed
- Fixed bogus "Bad commit_sig signature" which caused channel closures when reconnecting after updating fees under simultaneous bidirectional traffic.
- Relative
--lightning_diris now working again. - Build: MacOS now builds again (missing pwritev).
Security
0.7.2.1 - 2019-08-19: "Nakamoto's Pre-approval by US Congress"
This release was named by Antoine Poinsot @darosior.
(Technically a .1 release, as it contains last-minute fixes after 0.7.2 was tagged)
Added
- JSON API: a new command
pluginallows one to manage plugins without restartinglightningd. - 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'sconfiguration,startup. It allows a plugin to know if it has been started onlightningdstartup. - Plugin: new notifications
invoice_payment,forward_eventandchannel_opened. - Protocol:
--enable-experimental-featuresadds gossip query extensions aka https://github.com/lightningnetwork/lightning-rfc/pull/557 - contrib: new
bootstrap-node.shto connect to random mainnet nodes. - JSON API:
listfundsnow returns alsofunding_outputforchannels - Plugin: plugins can now suggest
lightning-clidefault to -H for responses. - Lightningd: add support for
signetnetworks using the--network=signetor--signetstartup option
Changed
- Build: now requires
python3-makoto be installed, i.e.sudo apt-get install python3-mako - JSON API:
closeoptional arguments have changed: it now defaults to unilateral close after 48 hours. - Plugin: if the config directory has a
pluginssubdirectory, those are loaded. - lightningd: check bitcoind version when setup topology and confirm the version not older than v0.15.0.
- Protocol: space out reconnections on startup if we have more than 5 peers.
- JSON API:
listforwardsincludes the 'payment_hash' field. - Plugin: now plugins always run from the
lightning-dirfor easy local storage.
Deprecated
Note: You should always set allow-deprecated-apis=false to test for
changes.
- Plugin: using startup-relative paths for
pluginandplugin-dir: they're now relative tolightning-dir. - JSON API:
listforwardsremoved dummy (zero) fields forout_msat,fee_msat,in_channelandout_channelif unknown (i.e. deleted from db, orstatusislocal-failed.
Removed
Fixed
- Plugin:
payno longer crashes on timeout. - Plugin:
disconnectnotifier now called if remote side disconnects. - channeld: ignore, and simply try reconnecting if lnd sends "sync error".
- Protocol: we now correctly ignore unknown odd messages.
- 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.
- Detect when we're still syncing with bitcoin network: don't send or receive
HTLCs or allow
fundchannel. - Rare onchaind error where we don't recover our own unilateral close with multiple same-preimage HTLCs fixed.
Security
0.7.1 - 2019-06-29: "The Unfailing Twitter Consensus Algorithm"
This release was named by (C-Lightning Core Team member) Lisa Neigut @niftynei.
Added
- Protocol: we now enforce
option_upfront_shutdown_scriptif a peer negotiates it. - JSON API: New command
setchannelfeesets channel specific routing fees. - JSON API: new withdraw methods
txprepare,txsendandtxdiscard. - JSON API: add three new RPC commands:
fundchannel_start,fundchannel_completeandfundchannel_cancel. Allows a user to initiate and complete a channel open using funds that are in a external wallet. - Plugin: new hooks
db_writefor intercepting database writes,invoice_paymentfor intercepting invoices before they're paid,openchannelfor intercepting channel opens, andhtlc_acceptedto decide whether to resolve, reject or continue an incoming or forwarded payment.. - Plugin: new notification
warningto report anyLOG_UNUSUAL/LOG_BROKENlevel event. - Plugin: Added a default plugin directory :
lightning_dir/plugins. Each plugin directory it contains will be added to lightningd on startup. - Plugin: the
connectedhook can now send anerror_messageto the rejected peer. - JSON API:
newaddroutputsbech32orp2sh-segwit, or both with newallparameter (#2390) - JSON API:
listpeersstatus now shows how many confirmations until channel is open (#2405) - Config: Adds parameter
min-capacity-satto reject tiny channels. - JSON API:
listforwardsnow includes the time an HTLC was received and when it was resolved. Both are expressed as UNIX timestamps to facilitate parsing (Issue #2491, PR #2528) - JSON API:
listforwardsnow includes the local_failed forwards with failcode (Issue #2435, PR #2524) - 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)
- JSON API:
listchannelshas new fieldshtlc_minimum_msatandhtlc_maximum_msat.
Changed
- Gossip: we no longer compact the
gossip_storefile dynamically, due to lingering bugs. Restart if it gets too large. - Protocol: no longer ask for entire gossip flood from peers, unless we're missing gossip.
- JSON API:
invoiceexpiry defaults to 7 days, and can have s/m/h/d/w suffixes. - Config: Increased default amount for minimal channel capacity from 1k sat to 10k sat.
- JSON API: A new parameter is added to
fundchannel, which now accepts an utxo array to use to fund the channel. - Build: Non-developer builds are now done with "-Og" optimization.
- JSON API:
paywill no longer return failure until it is no longer retrying; previously it could "timeout" but still make the payment. - JSON API: the command objects that
helpoutputs 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). - 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.
Deprecated
Note: You should always set allow-deprecated-apis=false to test for
changes.
- JSON API:
newaddroutput fieldaddress: usebech32orp2sh-segwitinstead.
Removed
- JSON RPC:
global_featuresandlocal_featuresfields andlistchannels'flagsfield. (Deprecated since 0.6.2). - pylightning: Remove RPC support for c-lightning before 0.6.3.
Fixed
- Protocol: reconnection during closing negotiation now supports
option_data_loss_protectproperly. --bind-addr=<path>fixed for nodes using local sockets (eg. testing).- Unannounced local channels were forgotten for routing on restart until reconnection occurred.
- lightning-cli: arguments containing
"now succeed, rather than causing JSON errors. - Protocol: handle lnd sending more messages before
reestablish; don't fail channel, and handle older lnd's spurious empty commitments. - Fixed
fundchannelcrash when we have many UTXOs and we skip unconfirmed ones. - lightningd: fixed occasional hang on
connectwhen peer had sent error. - JSON RPC:
decodeinvoiceandpaynow handle unknown invoice fields properly. - JSON API:
waitsendpay(PAY_STOPPED_RETRYING) error handler now returns valid JSON - protocol: don't send multiple identical feerate changes if we want the feerate higher than we can afford.
- JSON API:
stopnow only returns once lightningd has released all resources.
Security
- Fixes CVE-2019-12998 (Full Disclosure).
0.7.0 - 2019-02-28: "Actually an Altcoin"
This release was named by Mark Beckwith @wythe.
Added
- plugins: fully enabled, and ready for you to write some!
- plugins:
payis now a plugin. - protocol:
paywill now use routehints in invoices if it needs to. - build: reproducible source zipfile and Ubuntu 18.04.1 build.
- JSON API: New command
paystatusgives detailed information onpaycommands. - JSON API:
getroute,invoice,sendpayandpaycommandsmsatoshiparameter can have suffixesmsat,sat(optionally with 3 decimals) orbtc(with 1 to 11 decimal places). - JSON API:
fundchannelandwithdrawcommandssatoshiparameter can have suffixesmsat(must end in000),satorbtc(with 1 to 8 decimal places). - JSON API:
decodepay,getroute,sendpay,pay,listpeers,listfunds,listchannelsand all invoice commands now return anamount_msatfield which has anmsatsuffix. - JSON API:
listfundschannelsnow has_msatfields for each existing raw amount field, withmsatsuffix. - JSON API:
waitsendpaynow has anerring_directionfield. - JSON API:
listpeersnow has adirectionfield inchannels. - JSON API:
listchannelsnow takes asourceoption to filter by node id. - JSON API:
getrouteriskfactorargument is simplified;paynow defaults to setting it to 10. - JSON API:
sendpaynow takes abolt11field, and it's returned inlistpaymentsandwaitsendpay. - JSON API:
fundchannelandwithdrawnow have a new parameterminconfthat limits coinselection to outputs that have at leastminconfconfirmations (default 1). (#2380) - JSON API:
listfundsnow displays addresses for all outputs owned by the wallet (#2387) - JSON API:
waitsendpayandsendpayoutput fieldlabelas specified bysendpaycall. - JSON API:
listpayscommand for higher-level payment view thanlistpayments, especially important with multi-part-payments coming. - JSON API:
listpaymentsis nowlistsendpays. - lightning-cli:
help <cmd>finds man pages even ifmake installnot run. - pylightning: New class 'Millisatoshi' can be used for JSON API, and new '_msat' fields are turned into this on reading.
Changed
- protocol:
option_data_loss_protectis now enabled by default. - JSON API: The
short_channel_idseparator has been changed to bexto match the specification. - JSON API:
listpeersnow includesfunding_allocation_msat, which returns a map of the amounts initially funded to the channel by each peer, indexed by channel id. - JSON API:
helpwith acommandargument gives a JSON array, like other commands. - JSON API:
sendpaydescriptionparameter is renamedlabel. - JSON API:
paynow takes an optionallabelparameter for labelling payments, in place of never-useddescription. - build: we'll use the system libbase58 and libsodium if found suitable.
Deprecated
Note: You should always set allow-deprecated-apis=false to test for
changes.
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.
- JSON API:
short_channel_idfields in JSON commands with:separators (usexinstead). - JSON API:
paydescriptionis deprecated, as is support for BOLT11 strings usingh. - JSON API:
sendpayparameterdescriptionandwaitsendpayandsendpayoutput fieldsdescription(nowlabel). - JSON API:
listpaymentshas been deprecated (you probably wantlistpays)
Removed
- JSON API: the
waitsendpaycommand error return no longer includeschannel_update
Fixed
- Protocol: handling
query_channel_rangefor large numbers of blocks (eg. 4 billion) was slow due to a bug. - Fixed occasional deadlock with peers when exchanging huge amounts of gossip.
- Fixed a crash when running in daemon-mode due to db filename overrun (#2348)
- Handle lnd sending premature 'funding_locked' message when we're expected 'reestablish'; we used to close channel if this happened.
- 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)
- You can no longer make giant unpayable "wumbo" invoices.
- CLTV of total route now correctly evaluated when finding best route.
riskfactorarguments topayandgetroutenow have an effect.- 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)
Security
0.6.3 - 2019-01-09: "The Smallblock Conspiracy"
This release was named by @molxyz and @ctrlbreak.
Added
- JSON API: New command
checkchecks the validity of a JSON API call without running it. - JSON API:
getinfonow returnsnum_peersnum_pending_channels,num_active_channelsandnum_inactive_channelsfields. - JSON API: use
\n\nto terminate responses, for simplified parsing (pylightning now relies on this) - JSON API:
fundchannelnow includes anannounceoption, when false it will keep channel private. Defaults to true. - JSON API:
listpeers'schannelsnow includes aprivateflag to indicate if channel is announced or not. - JSON API:
invoiceroute hints may now include private channels if you have no public ones, unless new optionexposeprivatechannelsis false. - Plugins: experimental plugin support for
lightningd, including option passthrough and JSON-RPC passthrough. - Protocol: we now support features
option_static_remotekeyandgossip_queries_exfor peers.
Changed
- JSON API:
payanddecodepayaccept and ignorelightning:prefixes. - pylightning: Allow either keyword arguments or positional arguments.
- JSON-RPC: messages are now separated by 2 consecutive newlines.
- JSON-RPC:
jsonrpc:2.0now included in json-rpc command calls. complies with spec.
Deprecated
Note: You should always set allow-deprecated-apis=false to test for
changes.
- pylightning: Support for pre-2-newline JSON-RPC (<= 0.6.2 lightningd) is deprecated.
Removed
- option_data_loss_protect is now only offered if EXPERIMENTAL_FEATURES is enabled, since it seems incompatible with lnd and has known bugs.
Fixed
- JSON API: uppercase invoices now parsed correctly (broken in 0.6.2).
- JSON API: commands are once again read even if one hasn't responded yet (broken in 0.6.2).
- Protocol: allow lnd to send
update_feebeforefunding_locked. - Protocol: fix limit on how much funder can send (fee was 1000x too small)
- Protocol: don't send invalid onion errors if peer says onion was bad.
- Protocol: don't crash when peer sends a 0-block-expiry HTLC.
- pylightning: handle multiple simultanous RPC replies reliably.
- build: we use
--prefixas handed to./configure
Security
0.6.2 - 2018-10-20: "The Consensus Loving Nasal Daemon"
This release was named by practicalswift.
Added
- JSON API:
listpeershas new fieldscratch_txid: the latest tx in channel. - JSON API:
listpeershas new arrayhtlcs: the current live payments. - JSON API:
listchannelshas two new fields:message_flagsandchannel_flags. This replacesflags. - JSON API:
invoicenow adds route hint to invoices for incoming capacity (RouteBoost), and warns if insufficient capacity. - JSON API:
listforwardslists all forwarded payments, their associated channels, and fees. - JSON API:
getinfoshows forwarding fees earnt asmsatoshi_fees_collected. - Bitcoind: more parallelism in requests, for very slow nodes.
- Testing: fixed logging, cleaner interception of bitcoind, minor fixes.
- Protocol: we set and handle the new
htlc_maximum_msatchannel_update field.
Changed
- Protocol:
channel_updatesent to disable channel only if we reject an HTLC. - Protocol: we don't send redundant
node_announcementon every new channel. - Config: config file can override
lightning-dir(makes sense with--conf). - Config:
--confoption is now relative to current directory, notlightning-dir. - lightning-cli:
help <cmd>prints basic information even if no man page found. - JSON API:
getinfonow reports global statistics about forwarded payments, including total fees earned and amounts routed.
Deprecated
Note: You should always set allow-deprecated-apis=false to test for
changes.
- JSON RPC:
listchannels'flagsfield. This has been split into two fields, see Added. - JSON RPC:
global_featuresandlocal_featuresfields: useglobalfeaturesandlocalfeaturesas per BOLT #1.
Removed
- JSON API: the optional 'seed' parameter to
getroutewas removed.
Fixed
- Startup: more coherent complaint if daemon already running.
- Lightningd: correctly save full HTLCs across restarts; fixup old databases.
- JSON RPC:
getinfonow shows correct Tor port. - JSON RPC:
pingnow works even after one peer fails to respond. - JSON RPC:
getroutefuzzpercentandpaymaxfeepercentcan now be > 100. - JSON RPC:
riskfactorinpayandgetrouteno longer always treated as 1. - JSON-RPC:
listpeerswas always reporting 0 for all stats. - JSON RPC:
withdraw allsaysCannot afford transactionif you have absolutely no funds, rather thanOutput 0 satoshis would be dust. - Protocol: don't send gossip about closed channels.
- Protocol: fix occasional deadlock when both peers flood with gossip.
- Protocol: fix occasional long delay on sending
reply_short_channel_ids_end. - Protocol: re-send
node_announcementwhen address/alias/color etc change. - Protocol: multiple HTLCs with the same payment_hash are handled correctly.
- Options: 'autotor' defaults to port 9051 if not specified.
Security
0.6.1 - 2018-09-11: "Principled Opposition To Segwit"
This release was named by ZmnSCPxj.
Added
- Protocol: gossipd now deliberately delays spamming with
channel_update. - Protocol: liveness ping when we commit changes but peer is idle: speeds up failures and reduces forced closures.
- Protocol:
option_data_loss_protectnow supported to protect peers against being out-of-date. - JSON API: Added description to invoices and payments (#1740).
- JSON API:
getinfohas new fieldsaliasandcolor. - JSON API:
listpeershas new fieldsglobal_featuresandlocal_features. - JSON API:
listnodeshas new fieldglobal_features. - JSON API:
pingcommand to send a ping to a connected peer. - JSON API:
feeratescommand to retrieve current fee estimates. - JSON API:
withdrawandfundchannelcan be given manual feerate. - Config:
--confoption to set config file. - Documentation: Added CHANGELOG.md
- pylightning: RpcError now has
methodandpayloadfields. - Sending lightningd a SIGHUP will make it reopen its
log-file, if any.
Changed
- Protocol: Fee estimates are now smoothed over time, to avoid sudden jumps.
- 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
mancommand. - HSM: The HSM daemon now maintains the per-peer secrets, rather than handing them out. It's still lax in what it signs though.
- connectd: A new daemon
lightning_connectdhandles connecting to/from peers, instead ofgossipddoing that itself.lightning_openingdnow handles peers immediately, even if they never actually open a channel. - Test:
python-xdistis now a dependency for tests. - Logging: JSON connections no longer spam debug logs.
- Routing: We no longer consider channels that are not usable either because of
their capacity or their
htlc_minimum_msatparameter (#1777) - We now try to connect to all known addresses for a peer, not just the one given or the first one announced.
- Crash logs are now placed one-per file like
crash.log.20180822233752 - We will no longer allow withdrawing funds or funding channels if we
do not have a fee estimate (eg. bitcoind not synced); use new
feeratearg.
Deprecated
Removed
- JSON API:
listpeersresults no long havealiasandcolorfields; they're inlistnodes(we used to internally merge the information). - JSON API:
listpeerswill never havestatefield (it accidentally used to exist and set toGOSSIPINGbefore we opened a channel).connectedwill indicate if we're connected, and thechannelsarray indicates individual channel states (if any). - Config:
default-fee-rateis no longer available; use explicitfeerateoption if necessary. - Removed all Deprecated options from 0.6.
Fixed
- Protocol:
node_announcementmultiple addresses are correctly ordered and uniquified. - Protocol: if we can't estimate feerate, be almost infinitely tolerant of other side setting fees to avoid unilateral close.
- JSON API:
listnodes: now displays node aliases and colors even if they don't advertise a network address - JSON API:
fundchannel all: now restricts to 2^24-1 satoshis rather than failing. - JSON API:
listnodes: now correctly printsaddressesif more than one is advertised. - Config:
bind-addrof a publicly accessible network address was announced. - When we reconnect and have to retransmit failing HTLCs, the errors weren't encrypted by us.
lightningd_configman page is now installed bymake 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_updateinside error messages now refers to correct channel. - Stripping type prefix from
channel_updates that are nested in an onion reply to be compatible with eclair and lnd (#1730). - Failing tests no longer delete the test directory, to allow easier debugging (Issue: #1599)
Security
0.6 - 2018-06-22: "I Accidentally The Smart Contract"
In the prehistory of c-lightning, no changelog was kept. But major JSON API changes are tracked.
This release was named by Fabrice Drouin.
Deprecated
Note: You should always set allow-deprecated-apis=false to test for
changes.
- Config:
port. Useaddr=:<portnum>. - Config:
ipaddr. Useaddr. - Config:
anchor-confirms. Usefunding-confirms. - Config:
locktime-blocks. Usewatchtime-blocks. - 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:
listinvoicecommand. Uselistinvoices. - JSON API: invoice result fields
paid_timestampandexpiry_time. Usepaid_atandexpires_at. - JSON API:
invoicecommand fieldfallback. Usefallbacks. - JSON API:
decodepayresult fieldstimestampandfallback. Usecreated_atandfallbacks. - JSON API: payment result fields
timestamp. Usecreated_at. - JSON API:
getinforesult fieldport. Usebindingandaddressarrays. - JSON API:
getlogresult fieldcreation_time. Usecreated_at. - JSON API:
getpeersresult fieldchannel_reserve_satoshis. Usetheir_channel_reserve_satoshis. - JSON API:
getpeersresult fieldto_self_delay. Usetheir_to_self_delay.
Older versions
There predate the BOLT specifications, and are only of vague historic interest:
- 0.1 - 2015-08-08: "MtGox's Cold Wallet" (named by Rusty Russell)
- 0.2 - 2016-01-22: "Butterfly Labs' Timely Delivery" (named by Anthony Towns)
- 0.3 - 2016-05-25: "Nakamoto's Genesis Coins" (named by Braydon Fuller)
- 0.4 - 2016-08-19: "Wright's Cryptographic Proof" (named by Christian Decker)
- 0.5 - 2016-10-19: "Bitcoin Savings & Trust Daily Interest" (named by Glenn Willen)
- 0.5.1 - 2016-10-21
- 0.5.2 - 2016-11-21: "Bitcoin Savings & Trust Daily Interest II"