core-lightning/wallet
niftynei d2c4d4aec2 coin_mvts: rewrite how onchain events are recorded, update tests
The old model of coin movements attempted to compute fees etc and log
amounts, not utxos. This is not as robust, as multi-party opens and dual
funded channels make it hard to account for fees etc correctly.

Instead, we move towards a 'utxo' view of the onchain events. Every
event is either the creation or 'destruction' of a utxo. For cases where
the value of the utxo is not (fully) debited/credited to our account, we
also record the output_value. E.g. channel closings spend a utxo who's
entire value we may not own.

Since we're now tracking UTXOs onchain, we can now do more complex
assertions about the onchain footprint of them. The integration tests
have been updated to now use more 'chain aware' assertions about the
ending state.
2021-12-28 04:42:42 +10:30
..
test coin_mvts: rewrite how onchain events are recorded, update tests 2021-12-28 04:42:42 +10:30
.gitignore reorganize .gitignore entries across subdirs. 2021-05-18 09:43:50 +09:30
db_common.h plugins: simplify shutdown loop, simply close the db 2021-12-14 09:33:10 +10:30
db_postgres.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
db_sqlite3.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
db.c plugins: simplify shutdown loop, simply close the db 2021-12-14 09:33:10 +10:30
db.h plugins: simplify shutdown loop, simply close the db 2021-12-14 09:33:10 +10:30
invoices.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
invoices.h daemons: remove unused functions or make static. 2021-12-06 10:05:39 +10:30
Makefile make: remove generated files when running clean 2021-12-06 10:06:25 +10:30
reservation.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
txfilter.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
txfilter.h common: use bitcoin_outpoint. 2021-10-15 12:09:36 +02:00
wallet.c coin_mvts: rewrite how onchain events are recorded, update tests 2021-12-28 04:42:42 +10:30
wallet.h wallet: make wallet_can_spend non-static because needed 2021-12-14 11:24:52 +10:30
walletrpc.c bitcoin/chainparams.h: Split BIP173 name into onchain and Lightning HRPs. 2021-12-14 11:21:35 +10:30
walletrpc.h daemons: remove unused functions or make static. 2021-12-06 10:05:39 +10:30