From 1009ad233b3704ad56990a756ae7fc0d48368e28 Mon Sep 17 00:00:00 2001 From: Richard Safier Date: Thu, 28 Mar 2024 21:43:24 -0400 Subject: [PATCH] fix ListUnspent minconfs setting --- LNUnit.Tests/AbcLightningFixture.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LNUnit.Tests/AbcLightningFixture.cs b/LNUnit.Tests/AbcLightningFixture.cs index ddcc519..979d038 100644 --- a/LNUnit.Tests/AbcLightningFixture.cs +++ b/LNUnit.Tests/AbcLightningFixture.cs @@ -639,7 +639,7 @@ public async Task SendMany_Onchain() await Builder.WaitUntilSyncedToChain("alice"); //verify last address got funds - var unspend = alice.LightningClient.ListUnspent(new ListUnspentRequest() { }); + var unspend = alice.LightningClient.ListUnspent(new ListUnspentRequest() { MinConfs = 1, MaxConfs = 20 }); var confirmedAddresses = new List(); foreach (var u in unspend.Utxos) { @@ -650,7 +650,7 @@ public async Task SendMany_Onchain() confirmedAddresses.Add(exists); } } - Assert.That(addresses.Count, Is.EqualTo(confirmedAddresses.Count), "Confirmed deposits doesn't match request."); + Assert.That(confirmedAddresses.Count, Is.EqualTo(addresses.Count), "Confirmed deposits doesn't match request."); } [Test]