From 2b8fa8ba694cd35819a4e8a1c8553092be974d83 Mon Sep 17 00:00:00 2001 From: lollerfirst Date: Tue, 17 Sep 2024 13:33:25 +0200 Subject: [PATCH] test fix --- tests/test_dlc.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_dlc.py b/tests/test_dlc.py index 8c4085dd..12cbb7bd 100644 --- a/tests/test_dlc.py +++ b/tests/test_dlc.py @@ -646,7 +646,7 @@ async def test_payout_dlc(wallet: Wallet, ledger: Ledger): # CLAIMING our victorious payout # Generating outputs amounts = [128] - secrets, rs, _ = await wallet.generate_n_secrets( + secrets, rs, dpaths = await wallet.generate_n_secrets( len(amounts), skip_bump=True ) outputs, rs = wallet._construct_outputs(amounts, secrets, rs) @@ -666,4 +666,6 @@ async def test_payout_dlc(wallet: Wallet, ledger: Ledger): assert response.errors is None, f"Payout failed: {response.errors[0].detail}" assert len(response.paid) > 0, "Payout failed: paid list is empty" assert response.paid[0].dlc_root == dlc_root.hex() - assert len(response.paid[0].outputs) == len(amounts) \ No newline at end of file + assert len(response.paid[0].outputs) == len(amounts) + + proofs = await wallet._construct_proofs(response.paid[0].outputs, secrets, rs, dpaths) \ No newline at end of file