core-lightning/wallet
lisa neigut 9caf20f636 coin moves: don't log coin moves in onchaind if we're replaying
On node start we replay onchaind's transactions from the database/from
our loaded htlc table.  To keep things tidy, we shouldn't notify the
ledger about these, so we wrap pretty much everything in a flag that
tells us whether or not this is a replay.

There's a very small corner case where dust transactions will get missed
if the node crashes after the htlc has been added to the database but
before we've successfully notified onchaind about it.

Notably, most of the obtrusive updates to onchaind wrappings are due to
the fact that we record dust (ignored outputs) before we receive
confirmation of its confirmation.
2020-05-12 15:46:58 +09:30
..
test coin moves: don't log coin moves in onchaind if we're replaying 2020-05-12 15:46:58 +09:30
.gitignore wallet: Create and manage a sqlite3 database for the wallet 2017-06-06 09:16:10 +09:30
db.c wallet-htlc: add 'we-filled' flag to saved htlc state 2020-05-12 15:46:58 +09:30
db.h common: add struct onionreply 2020-01-23 16:17:42 +10:30
db_common.h db: Track the data_version in the database 2020-01-02 14:12:59 -06:00
db_postgres.c db: Implement postgres driver primitives 2019-09-22 02:03:43 +00:00
db_sqlite3.c db: unregister sqlite3 trace callback also in error case 2020-05-07 10:41:16 +09:30
invoices.c wallet: add invoice features into db. 2019-11-24 23:33:17 +00:00
invoices.h wallet: add invoice features into db. 2019-11-24 23:33:17 +00:00
Makefile wallet/Makefile: fix dependency line. 2019-11-28 11:50:13 +01:00
txfilter.c common: tal_dup_talarr() helper. 2020-02-27 14:16:16 +10:30
txfilter.h pubkey: rename PUBKEY_DER_LEN to PUBKEY_CMPR_LEN. 2019-04-09 12:37:16 -07:00
wallet.c coin moves: record wallet deposits 2020-05-12 15:46:58 +09:30
wallet.h wallet-htlc: add 'we-filled' flag to saved htlc state 2020-05-12 15:46:58 +09:30
walletrpc.c coin moves: record withdrawals 2020-05-12 15:46:58 +09:30
walletrpc.h Use expected LIGHTNING_DIR_FILE_H define 2018-03-25 23:54:21 +00:00