wallet: Actually load wallet stats when asked to

The call to `sqlite3_step` is actually needed, otherwise we'll always
get the default values for all types.
This commit is contained in:
Christian Decker
2018-10-12 14:58:36 +02:00
committed by Rusty Russell
parent 2354b3e706
commit 81f5b89fe3
3 changed files with 8 additions and 1 deletions

View File

@@ -976,7 +976,6 @@ def test_forward_pad_fees_and_cltv(node_factory, bitcoind):
assert only_one(l3.rpc.listinvoices('test_forward_pad_fees_and_cltv')['invoices'])['status'] == 'paid'
@pytest.mark.xfail(strict=True)
def test_forward_stats(node_factory):
l1, l2, l3 = node_factory.line_graph(3, announce=True)