core-lightning/tests
Rusty Russell 36a2491a89 json: fix up msat amounts in non-_msat fields.
We had json_add_amount_msat_only(), which was designed to be used to
print out msat fields, if we had sats.

However, we misused it, so split it into the three different cases:
1. json_add_amount_sat_msat: We are using it correctly, with a field called
   xxx_msat.
2. json_add_amount_sats_deprecated: We were using it wrong, so deprecate
   the old field and create a new one which does end in _msat.
3. json_add_sats: we were using it to hand sats as a JSON parameter to an
   interface, where "XXXsat".

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Deprecated: Plugins: `rbf_channel` and `openchannel2` hooks `their_funding` (use `their_funding_msat`)
Changelog-Deprecated: Plugins: `openchannel2` hook `dust_limit_satoshis` (use `dust_limit_msat`)
Changelog-Deprecated: Plugins: `openchannel` hook `funding_satoshis` (use `funding_msat`)
Changelog-Deprecated: Plugins: `openchannel` hook `dust_limit_satoshis` (use `dust_limit_msat`)
Changelog-Deprecated: Plugins: `openchannel` hook `channel_reserve_satoshis` (use `channel_reserve_msat`)
Changelog-Deprecated: Plugins: `channel_opened` notification `amount` (use `funding_msat`)
Changelog-Deprecated: JSON-RPC: `listtransactions` `msat` (use `amount_msat`)
Changelog-Deprecated: Plugins: `htlc_accepted` `forward_amount` (use `forward_msat`)
2022-06-21 06:52:35 +09:30
..
data inflights: save the whole psbt to the database 2021-05-24 12:17:48 +09:30
fuzz check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
plugins json: fix up msat amounts in non-_msat fields. 2022-06-21 06:52:35 +09:30
vectors pytest: Remove onion test vectors containing legacy onions. 2022-03-18 09:20:11 +10:30
benchmark.py pytest: always provide payment_secret when making payments. 2021-07-14 14:38:00 -05:00
conftest.py tests: add marker for v1/v2 channel opens 2021-05-12 11:25:41 +09:30
db.py pytest: don't copy db to query it. 2021-08-26 12:44:02 +09:30
fixtures.py pytest: Use valgrind target suppressions instead of skipping tests 2022-03-10 10:21:41 +10:30
test_cln_rs.py pytest: don't add extra cln-grpc instance now plugin is builtin 2022-04-13 05:25:00 +09:30
test_closing.py doc: big BOLT update to incorporate warnings language. 2022-04-02 09:40:18 +10:30
test_connection.py jsonrpc: adds optional remote_addr to listpeers 2022-06-17 20:30:16 +09:30
test_db.py wallet/db_sqlite3.c: Support direct replication of SQLITE3 backends. 2021-11-17 12:10:07 +10:30
test_gossip.py gossipd: don't ever use zlib compression on gossip. 2022-05-19 09:47:32 +09:30
test_invoices.py pay/sendpay: also store description in case bolt11 uses description_hash. 2022-04-04 20:26:04 +09:30
test_misc.py tests: Update expected log prefix length to match truncated log 2022-06-19 16:42:11 +09:30
test_onion.py lightningd: remove support for legacy onion format. 2022-03-18 09:20:11 +10:30
test_opening.py plugin-funder: fix typos in option lease-fee-base-msat and funder-fuzz-percent 2022-03-01 09:38:40 +10:30
test_pay.py json: fix up msat amounts in non-_msat fields. 2022-06-21 06:52:35 +09:30
test_plugin.py json: fix up msat amounts in non-_msat fields. 2022-06-21 06:52:35 +09:30
test_wallet.py json: fix up msat amounts in non-_msat fields. 2022-06-21 06:52:35 +09:30
utils.py json: fix up msat amounts in non-_msat fields. 2022-06-21 06:52:35 +09:30
valgrind-suppressions.txt pytest: Use valgrind target suppressions instead of skipping tests 2022-03-10 10:21:41 +10:30