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

bookkeeper: dont skip zero balance channels that are missing #5503

Merged
merged 4 commits into from
Aug 10, 2022

Conversation

niftynei
Copy link
Collaborator

@niftynei niftynei commented Aug 8, 2022

We weren't adding zero balance channels during "catch up starts (accounting for things missing while bookkeeper wasn't running)", which resulted in a crash/restart when any payment got routed through these channels.

Also patches a flake (which really needs a nicer fix than this line/by line patch but yolo) and removes a duplicated log statement.

Changelog-None.

@niftynei niftynei added this to the v0.12 milestone Aug 8, 2022
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 751f13b

@@ -145,7 +145,7 @@ def test_bookkeeping_external_withdraws(node_factory, bitcoind):
assert inc['credit_msat'] == amount_msat
# The event should show up in the 'bkpr_listaccountevents' however
events = l1.rpc.bkpr_listaccountevents()['events']
assert len(events) == 3
assert len(events) == 4
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we now record an extra event for wallet balances (starting at zero)

@rustyrussell
Copy link
Contributor

Ack 3d9ff53

@niftynei niftynei mentioned this pull request Aug 10, 2022
@niftynei niftynei merged commit 9d3bf4a into ElementsProject:master Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants