lightning/doc
niftynei 4e503f7d0a bkpr/listpeeers: add lease_fees back to funds; separate out in listpeers
First, how we record "our_funds" and then apply pushes vs lease_fees
(for liquidity ad buys/sales) was exactly opposite.

For pushes we were reporting the total funded into the channel, with the
push representing how much we'd later moved to the peer.

For lease_fees we were rerporting the total in the channel, with the
push representing how much was already moved to the peer.

We fix this (from a view perspective) by re-adding lease fees to what's
reported in the channel funding totals. Since this is now new behavior
(for leased channel values), we added new fields so we can take the old
field names thru a deprecation cycle.

We also make it possible to differentiate btw a push and a lease_fee
(before they were all the same), by adding to new fields to `listpeers`:
`fee_paid_msat` and `fee_rcvd_msat`.

This allows us to avoid math in the bookkeeper, instead we just pick
the numbers out directly and record them.

Fixes #5472

Changelog-Added: JSON-RPC: `listpeers` now has a few new fields for `funding` (`remote_funds_msat`, `local_funds_msat`, `fee_paid_msat`, `fee_rcvd_msat`).
Changelog-Deprecated: JSON-RPC: `listpeers`.`funded` fields `local_msat` and `remote_msat` are now deprecated.
2022-07-31 21:53:05 +09:30
..
release-notes doc: Fixed typo in the release notes 2018-06-18 12:45:00 +02:00
schemas bkpr/listpeeers: add lease_fees back to funds; separate out in listpeers 2022-07-31 21:53:05 +09:30
.gitignore Add documentation. 2015-07-18 10:46:53 +09:30
BACKUP.md doc: remove ambiguity for functionality enabled after a release version 2022-03-10 10:24:34 +10:30
bitcoin.bib bitcoin.bib: Add Satoshi paper URL and date 2018-03-04 03:22:32 +01:00
CHANGELOG.md docs: Add configuration for the sphinx documentation generator 2019-02-18 02:42:29 +00:00
commit-tx.eps Add documentation. 2015-07-18 10:46:53 +09:30
commit-tx.svg Add documentation. 2015-07-18 10:46:53 +09:30
conf.py doc: Update lightning.readthedocs.org project name after rebrand 2022-05-14 11:43:46 +09:30
deployable-lightning.lyx udpate broken link 2018-06-08 17:56:48 +02:00
deployable-lightning.pdf Regenerate PDF. 2015-11-20 06:45:19 +10:30
dual-anchor-diag1.eps Add documentation. 2015-07-18 10:46:53 +09:30
dual-anchor-diag1.svg Add documentation. 2015-07-18 10:46:53 +09:30
dual-anchor-diag2.eps Add documentation. 2015-07-18 10:46:53 +09:30
dual-anchor-diag2.svg Add documentation. 2015-07-18 10:46:53 +09:30
dual-anchor-diag3.eps Add documentation. 2015-07-18 10:46:53 +09:30
dual-anchor-diag3.svg Add documentation. 2015-07-18 10:46:53 +09:30
dual-anchor-diag4.eps doc: fix flaw in escape transactions. 2015-07-20 14:07:25 +09:30
dual-anchor-diag4.svg doc: fix flaw in escape transactions. 2015-07-20 14:07:25 +09:30
dual-anchor-final.eps doc: fix flaw in escape transactions. 2015-07-20 14:07:25 +09:30
dual-anchor-final.svg doc: fix flaw in escape transactions. 2015-07-20 14:07:25 +09:30
dual-anchor-take2.svg Add documentation. 2015-07-18 10:46:53 +09:30
dual-anchor.svg Add documentation. 2015-07-18 10:46:53 +09:30
FAQ.md doc: mention ip discovery only active when no addresses are announced 2022-07-12 13:59:46 -05:00
FUZZING.md doc: add a document about our fuzz testing integration 2020-10-21 19:34:39 +02:00
HACKING.md Change lightning-rfc to bolts post repo move 2022-05-18 10:19:16 +09:30
htlc.eps Add documentation. 2015-07-18 10:46:53 +09:30
htlc.svg Add documentation. 2015-07-18 10:46:53 +09:30
index.rst bkpr: add docs, change names to 'bkpr-*' 2022-07-28 12:08:18 +09:30
INSTALL.md Add instructions for checking out a release tag 2022-07-17 11:45:34 +09:30
lightning-addgossip.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-autocleaninvoice.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-bkpr-channelsapy.7.md bkpr: add docs, change names to 'bkpr-*' 2022-07-28 12:08:18 +09:30
lightning-bkpr-dumpincomecsv.7.md bkpr: add docs, change names to 'bkpr-*' 2022-07-28 12:08:18 +09:30
lightning-bkpr-inspect.7.md bkpr: add docs, change names to 'bkpr-*' 2022-07-28 12:08:18 +09:30
lightning-bkpr-listaccountevents.7.md bkpr: save invoice description data to the database and display it 2022-07-28 12:08:18 +09:30
lightning-bkpr-listbalances.7.md bkpr: add docs, change names to 'bkpr-*' 2022-07-28 12:08:18 +09:30
lightning-bkpr-listincome.7.md bkpr: save invoice description data to the database and display it 2022-07-28 12:08:18 +09:30
lightning-check.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-checkmessage.7.md test: disable schema check of checkmessage with deprecated API 2022-07-19 17:55:31 +02:00
lightning-cli.1.md lightning-cli: document the real argument handling (for special effects). 2022-04-07 06:53:26 +09:30
lightning-close.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-commando-rune.7.md commando-rune: show warning when creating runes with no restrictions 2022-07-29 08:46:14 -07:00
lightning-commando.7.md doc: document commando and commando-rune. 2022-07-17 08:51:02 +09:30
lightning-connect.7.md lightningd: make "is peer connected" a tristate. 2022-07-18 20:50:04 -05:00
lightning-createinvoice.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-createonion.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-datastore.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-decode.7.md doc: fix bolt 12 link (it's not in master), update bolt 11 to new "bolts" repo. 2022-07-27 14:51:27 -07:00
lightning-decodepay.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-deldatastore.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-delexpiredinvoice.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-delinvoice.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-delpay.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-disableoffer.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-disconnect.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-emergencyrecover.7.md doc: Add documentation for new RPCs and a FIXME: in fromschema.py 2022-07-14 12:24:48 -05:00
lightning-feerates.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-fetchinvoice.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-fundchannel_cancel.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-fundchannel_complete.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-fundchannel_start.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-fundchannel.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-funderupdate.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-fundpsbt.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-getinfo.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-getlog.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-getroute.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-help.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-hsmtool.8.md hsmtool: implement checkhsm. 2022-07-22 16:57:27 +02:00
lightning-invoice.7.md fix doc: deschashonly 2022-07-29 16:33:06 +09:30
lightning-keysend.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-listchannels.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-listconfigs.7.md bkpr: Add an option to set the database to something else (postgres) 2022-07-28 12:08:18 +09:30
lightning-listdatastore.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-listforwards.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-listfunds.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-listinvoices.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-listnodes.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-listoffers.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-listpays.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-listpeers.7.md bkpr/listpeeers: add lease_fees back to funds; separate out in listpeers 2022-07-31 21:53:05 +09:30
lightning-listsendpays.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-listtransactions.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-makesecret.7.md makesecret: change info_hex arg to simply "hex" to match datastore command. 2022-07-15 22:17:58 +09:30
lightning-multifundchannel.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-multiwithdraw.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-newaddr.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-notifications.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-offer.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-offerout.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-openchannel_abort.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-openchannel_bump.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-openchannel_init.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-openchannel_signed.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-openchannel_update.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-parsefeerate.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-pay.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-ping.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-plugin.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-recoverchannel.7.md doc: Add documentation for new RPCs and a FIXME: in fromschema.py 2022-07-14 12:24:48 -05:00
lightning-reserveinputs.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-sendcustommsg.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-sendinvoice.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-sendonion.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-sendonionmessage.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-sendpay.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-sendpsbt.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-setchannel.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-setchannelfee.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-signmessage.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-signpsbt.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-staticbackup.7.md doc: Add documentation for new RPCs and a FIXME: in fromschema.py 2022-07-14 12:24:48 -05:00
lightning-stop.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-txdiscard.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-txprepare.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-txsend.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-unreserveinputs.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-utxopsbt.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-waitanyinvoice.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-waitblockheight.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-waitinvoice.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-waitsendpay.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-withdraw.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightningd-config.5.md doc: note that bookkeeper-dir and bookkeeper-db are in bookkeeper plugin. 2022-07-28 12:08:18 +09:30
lightningd.8.md lightningd: expand exit codes for various failures. 2022-07-20 19:28:33 +09:30
ln-draft-fig1.eps doc: add figures from LN draft (thanks Joseph!). 2015-07-20 14:07:40 +09:30
ln-draft-fig2.eps doc: add figures from LN draft (thanks Joseph!). 2015-07-20 14:07:40 +09:30
Makefile bkpr: add docs, change names to 'bkpr-*' 2022-07-28 12:08:18 +09:30
MAKING-RELEASES.md doc/MAKING-RELEASES.md: advice on updating python package versions. 2021-07-30 19:17:47 +02:00
PLUGINS.md doc: improve/update lightning-plugin, PLUGINS.md and lightning-listconfigs 2022-07-10 21:09:41 -05:00
REPRODUCIBLE.md doc: Spell out the reprobuild instructions for each distro 2022-07-21 15:21:12 -05:00
STYLE.md doc: update c-lightning to Core Lightning almost everywhere. 2022-04-07 06:53:26 +09:30
TOR.md doc: mention ip discovery only active when no addresses are announced 2022-07-12 13:59:46 -05:00
undoc-flags.json plugin-funder: fix typos in option lease-fee-base-msat and funder-fuzz-percent 2022-03-01 09:38:40 +10:30