fees were not returned if the fees were zero (#345)

This commit is contained in:
callebtc
2023-10-15 15:04:33 +02:00
committed by GitHub
parent a7cc210874
commit 21bb42f294
2 changed files with 3 additions and 2 deletions

View File

@@ -227,7 +227,8 @@ async def test_melt(wallet1: Wallet):
await wallet1.pay_lightning(
send_proofs, invoice=invoice.pr, fee_reserve_sat=fee_reserve_sat
)
assert wallet1.balance == 128 - total_amount
# the payment was without fees so we need to remove it from the total amount
assert wallet1.balance == 128 - (total_amount - fee_reserve_sat)
@pytest.mark.asyncio