Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
3687d6d
pytest: check current bookkeeper events in saved test_migration snaps…
rustyrussell Aug 18, 2025
bf936ac
db: helper for binding/reading bitcoin_outpoint.
rustyrussell Aug 18, 2025
d462ac1
wallet: chain_moves and channel_moves tables.
rustyrussell Aug 19, 2025
e8b5410
wallet: routines to append to chain_moves and channel_moves tables.
rustyrussell Aug 19, 2025
e17e29e
wallet: update chain_moves and channel_moves tables from channel_id -…
rustyrussell Aug 19, 2025
03c2e1d
wallet: record all coin movements into chain_moves or channel_moves t…
rustyrussell Aug 19, 2025
0fab87d
common: fix values of enum mvt_tag since they're now embedded in the db.
rustyrussell Aug 19, 2025
f639800
lightningd: reorder JSON fields into more coherent order.
rustyrussell Aug 19, 2025
5645ca6
wallet: add accessors to read chain_moves & channel_moves tables.
rustyrussell Aug 19, 2025
77a176f
lightningd: speed mapping from coinmoves table to channel for listcoi…
rustyrussell Aug 19, 2025
4c4d4a0
lightningd: add listchainmoves and listchannelmoves commands.
rustyrussell Aug 19, 2025
4eeb213
pytest: test listcoinmoves / listchannelmoves for unilateral closes.
rustyrussell Aug 19, 2025
a39f66f
pytest: test accounting is correct for onchain fulfills.
rustyrussell Aug 19, 2025
0d2cac5
pytest: test coinmoves in the case of unexpected fulfill.
rustyrussell Aug 19, 2025
95af546
pytest: test listcoinmoves / listchannelmoves during penalties.
rustyrussell Aug 19, 2025
684682b
lightningd: add chainmoves and channelmoves to wait command.
rustyrussell Aug 19, 2025
33c4b03
plugins/sql: add listchainmoves and listchannelmoves.
rustyrussell Aug 19, 2025
af272d9
sql: optimize listchainmoves and listchannelmoves accesses.
rustyrussell Aug 19, 2025
d294ba1
plugins/sql: use `created_index` as primary key, where available.
rustyrussell Aug 19, 2025
47cb999
pytest: test for parallel refresh.
rustyrussell Aug 19, 2025
8b53c45
sql: avoid trying to do parallel refreshes.
rustyrussell Aug 19, 2025
0385f9d
bkpr: NULL-out the function migrations.
rustyrussell Aug 19, 2025
522f831
bkpr: send a backtrace if we get a fatal db event.
rustyrussell Aug 19, 2025
ba62642
bkpr: strings in structures should be const.
rustyrussell Aug 19, 2025
f29fe20
bookkeeper: use modern plugin_get_data() instead of globals.
rustyrussell Aug 19, 2025
68715cd
bkpr: expose `struct bkpr` to outside bookkeeper.c.
rustyrussell Aug 19, 2025
e86d478
bkpr: move account db functions from recorder.c into account.c.
rustyrussell Aug 19, 2025
d188655
bkpr: find_or_create_account() instead of raw new_account().
rustyrussell Aug 19, 2025
f6a3aa8
bkpr: cache accounts table in memory.
rustyrussell Aug 19, 2025
e90136a
bkpr: use direct names, not another table, in db.
rustyrussell Aug 19, 2025
459b84c
]bkpr: save accounts in the datastore instead of database.
rustyrussell Aug 19, 2025
8e485bb
bkpr: remove accounts table from db altogether.
rustyrussell Aug 19, 2025
c191e00
bkpr: move onchain fees access into bkpr/onchain_fee.
rustyrussell Aug 19, 2025
b744e1b
bkpr: remove redundant account_onchain_fees
rustyrussell Aug 19, 2025
f3caafa
bkpr: keep onchain_fees in memory & datastore.
rustyrussell Aug 19, 2025
6025044
bkpr: save and restore onchain_fees from the datastore, not the db.
rustyrussell Aug 19, 2025
ea1da6d
bkpr: remove onchain_fees table.
rustyrussell Aug 19, 2025
823b36a
bookkeeper: infrastructure to keep descriptions (annotations) in mem …
rustyrussell Aug 19, 2025
12e5e9f
bkpr: use the in-memory event descriptions, not the database ones.
rustyrussell Aug 19, 2025
deef239
bkpr: infrastructure to keep rebalance pairs in mem & datastore.
rustyrussell Aug 19, 2025
ddd9d1a
bookkeeper: use the in-memory rebalances.
rustyrussell Aug 19, 2025
1ded980
bkpr: pass bkpr struct into all functions in recorder.c.
rustyrussell Aug 19, 2025
f765dc3
bkpr: add in-mem & datastore storage for external blockheights.
rustyrussell Aug 19, 2025
8119b52
pytest: use assert inside event testing.
rustyrussell Aug 19, 2025
aacd452
lightningd: new internal-use commands to allow utxo spend / deposit i…
rustyrussell Aug 19, 2025
a98835d
common: use "foreign" in extra_tags to indicate a chain movement is i…
rustyrussell Aug 19, 2025
62271c2
bookkeeper: don't set origin account to "null" if that's specified as…
rustyrussell Aug 19, 2025
f47d920
bkpr: forward utxo_deposit / utxo_spend notifications to new injectut…
rustyrussell Aug 19, 2025
53dfc9c
libplugin: allow sync interface to be used at all times.
rustyrussell Aug 19, 2025
49b1c7d
plugins/bkpr/test/run-recorder: remove.
rustyrussell Aug 19, 2025
d4430c6
bookkeeper: call refresh before processing any commands.
rustyrussell Aug 19, 2025
86bbccf
bkpr: use list commands instead of subscribing to notifications.
rustyrussell Aug 19, 2025
ce8766f
wallet: remove notification on duplicate chain entries.
rustyrussell Aug 19, 2025
3b68ed7
bkpr: helpers to query sql plugin for chainmoves and channelmoves.
rustyrussell Aug 19, 2025
46a468e
bkpr: take, don't steal in new_channel_event.
rustyrussell Aug 19, 2025
ea2c01f
bkpr: convert all the local db sql queries into calls to sql plugin.
rustyrussell Aug 19, 2025
6116d85
bkpr: remove missing event handling.
rustyrussell Aug 19, 2025
b5ff099
bookkeeper: remove database.
rustyrussell Aug 19, 2025
60d6ae2
pytest: restore bookkeeper to recover tests.
rustyrussell Aug 19, 2025
a00877d
db: support mode where we don't want to create the db.
rustyrussell Aug 19, 2025
27aa83f
lightningd: migrate events from bookkeeper at startup.
rustyrussell Aug 19, 2025
1c3c454
wallet: generate fixup chainmoves and channelmoves when first starting.
rustyrussell Aug 19, 2025
1742cf3
bkpr: restore run-recorder.
rustyrussell Aug 19, 2025
b68c97b
plugins/bkpr/test/run-recorder: don't hand NULL cmd.
rustyrussell Aug 19, 2025
5a38d5c
pytest: wait to make sure moves are registered in coinmoves tests.
rustyrussell Aug 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .msggen.json
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,8 @@
"pending": 0
},
"WaitSubsystem": {
"chainmoves": 4,
"channelmoves": 5,
"forwards": 1,
"htlcs": 3,
"invoices": 0,
Expand Down Expand Up @@ -3715,6 +3717,16 @@
"UtxoPsbt.psbt": 1,
"UtxoPsbt.reservations[]": 6
},
"WaitChainmoves": {
"Wait.chainmoves.account": 1,
"Wait.chainmoves.credit_msat": 2,
"Wait.chainmoves.debit_msat": 3
},
"WaitChannelmoves": {
"Wait.channelmoves.account": 1,
"Wait.channelmoves.credit_msat": 2,
"Wait.channelmoves.debit_msat": 3
},
"WaitDetails": {
"Wait.details.bolt11": 4,
"Wait.details.bolt12": 5,
Expand Down Expand Up @@ -3758,6 +3770,8 @@
"Wait.subsystem": 1
},
"WaitResponse": {
"Wait.chainmoves": 10,
"Wait.channelmoves": 11,
"Wait.created": 2,
"Wait.deleted": 4,
"Wait.details": 5,
Expand Down Expand Up @@ -12892,6 +12906,38 @@
"added": "v23.08",
"deprecated": null
},
"Wait.chainmoves": {
"added": "v25.09",
"deprecated": null
},
"Wait.chainmoves.account": {
"added": "v25.09",
"deprecated": null
},
"Wait.chainmoves.credit_msat": {
"added": "v25.09",
"deprecated": null
},
"Wait.chainmoves.debit_msat": {
"added": "v25.09",
"deprecated": null
},
"Wait.channelmoves": {
"added": "v25.09",
"deprecated": null
},
"Wait.channelmoves.account": {
"added": "v25.09",
"deprecated": null
},
"Wait.channelmoves.credit_msat": {
"added": "v25.09",
"deprecated": null
},
"Wait.channelmoves.debit_msat": {
"added": "v25.09",
"deprecated": null
},
"Wait.created": {
"added": "pre-v0.10.1",
"deprecated": null
Expand Down
18 changes: 18 additions & 0 deletions cln-grpc/proto/node.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions cln-grpc/src/convert.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 35 additions & 1 deletion cln-rpc/src/model.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading