mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 06:32:18 +02:00
lntest: count unconfirmed balance as well
It looks like in some cases (apparently mostly on Windows) a previous sub test sometimes leaves some unconfirmed balance in the wallet. That balance is confirmed in the next test when new coins are sent to the wallet.
This commit is contained in:
@@ -1615,7 +1615,9 @@ func (n *NetworkHarness) sendCoins(amt btcutil.Amount, target *HarnessNode,
|
||||
return err
|
||||
}
|
||||
|
||||
expectedBalance := btcutil.Amount(initialBalance.ConfirmedBalance) + amt
|
||||
fullInitialBalance := initialBalance.ConfirmedBalance +
|
||||
initialBalance.UnconfirmedBalance
|
||||
expectedBalance := btcutil.Amount(fullInitialBalance) + amt
|
||||
return target.WaitForBalance(expectedBalance, true)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user