Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More coin_move adjustments #5043

Merged
merged 10 commits into from
Mar 5, 2022

Conversation

niftynei
Copy link
Collaborator

A few more things fell out in the wash, so to speak, while working on the upcoming bookkeeper plugin.

@niftynei niftynei added this to the v0.11 milestone Feb 16, 2022
@niftynei niftynei force-pushed the nifty/acct_more_adj branch 2 times, most recently from d3626ce to 9de4c5e Compare February 23, 2022 21:38
We don't need to switch on this; if it's zero the below ops will be
effectiely no-ops.
Every event that's coming out of here that specifies a different place
to be deposited should be marked as originating from this channel's
 account.
The bookkeeper needs to know how many outputs to expect before we can
consider a channel resolved onchain.
Only shows up on delayed to us outputs, but nice to have anyway.

It's missing for channel index destined deposits, maybe nice to add at
some point in the future; right now you can figure out which close a
wallet deposit comes from via the channel close txid
Reporting coin movements was crashing for liquid-regtest tests because
we were using an un-initialized field (the tx_part output's satoshi
field).

We fill this in 'as a convenience' for other wally_tx_outputs that are
on liquid elsewhere, here we do the same for tx_parts sent over the
wire to onchaind.
It's better to report every single utxo on close so we know when
to mark a channel account as definitively closed.
Useful for accounting for missed/historical channel opens, to figure out
what the actual sat contribution from each peer is at a utxo level

Changelog-Added: JSONRPC: `listpeers` now includes a `pushed_msat` value. For leased channels, is the total lease_fee.
channel moves don't have blockheights
This was causing journal_entries to show up in the accountant plugin,
since we don't emit events for unconfirmed events until they're actually
confirmed onchain.
Copy link
Contributor

@rustyrussell rustyrussell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack 995b3df

@rustyrussell rustyrussell merged commit 9075c74 into ElementsProject:master Mar 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants