Skip to content

Commit 343d30a

Browse files
committed
bookkeeper: fix reloading of rebalances.
Parse key correctly. Signed-off-by: Rusty Russell <[email protected]> Changelog-Fixed: bookkeeper: failed reload of rebalances on restart.
1 parent ea1d233 commit 343d30a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

plugins/bkpr/rebalances.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ struct rebalances *init_rebalances(const tal_t *ctx,
135135
goto weird;
136136

137137
/* key = ["bookkeeper", "rebalances", "<lesser>-<greater>"] */
138-
if (!split_tok(buf, keytok + 2, '-', &lessertok, &greatertok))
138+
if (!split_tok(buf, keytok + 3, '-', &lessertok, &greatertok))
139139
goto weird;
140140

141141
if (!json_to_u64(buf, &lessertok, &lesser)

tests/test_bookkeeper.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,6 @@ def test_empty_node(node_factory, bitcoind):
760760
l1.rpc.bkpr_inspect('wallet')
761761

762762

763-
@pytest.mark.xfail(strict=True)
764763
def test_rebalance_tracking(node_factory, bitcoind):
765764
"""
766765
We identify rebalances (invoices paid and received by our node),

0 commit comments

Comments
 (0)