Skip to content

Conversation

rustyrussell
Copy link
Contributor

@rustyrussell rustyrussell commented Sep 22, 2025

We test rebalances, but we didn't restart and check persistence :(

Not sure if this fixes the crash though...

See: #8549

@rustyrussell rustyrussell added this to the v25.12 milestone Sep 22, 2025
@s373nZ
Copy link
Contributor

s373nZ commented Sep 22, 2025

Tested this on my production node originally reporting #8549. Can confirm it fixes the bad datastore log messages, but it doesn't fix the bkpr-listbalances command.

tACK a6a5872

as this PR is limited in scope to the rebalance parsing.

@madelinevibes madelinevibes added the 25.09.1 Point release for 25.09 label Sep 25, 2025
@rustyrussell rustyrussell force-pushed the guilt/fix-bkpr-rebalance-parse branch from f1a771e to a2bf1cf Compare September 30, 2025 06:59
```
lightningd-1 2025-09-22T02:10:10.978Z **BROKEN** plugin-bookkeeper: Unparsable datastore ["bookkeeper","rebalances","1-2"]
```

And, indeed, rebalance is missing:

```
>       outbound_ev = only_one([ev for ev in inc_evs if ev['tag'] == 'rebalance_fee'])

tests/test_bookkeeper.py:825: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

arr = []

    def only_one(arr):
        """Many JSON RPC calls return an array; often we only expect a single entry
        """
>       assert len(arr) == 1
E       AssertionError

```

Signed-off-by: Rusty Russell <[email protected]>
Parse key correctly.

Signed-off-by: Rusty Russell <[email protected]>
Changelog-Fixed: bookkeeper: failed reload of rebalances on restart.
@rustyrussell rustyrussell force-pushed the guilt/fix-bkpr-rebalance-parse branch from a2bf1cf to 5263318 Compare October 1, 2025 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
25.09.1 Point release for 25.09
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants