diff --git a/lnwallet/btcwallet/btcwallet.go b/lnwallet/btcwallet/btcwallet.go index afff8e56..6c53db07 100644 --- a/lnwallet/btcwallet/btcwallet.go +++ b/lnwallet/btcwallet/btcwallet.go @@ -189,7 +189,7 @@ func (b *BtcWallet) ConfirmedBalance(confs int32, witness bool) (btcutil.Amount, } // NewAddress returns the next external or internal address for the wallet -// dicatated by the value of the `change` paramter. If change is true, then an +// dictated by the value of the `change` parameter. If change is true, then an // internal address will be returned, otherwise an external address should be // returned. // diff --git a/lnwallet/interface_test.go b/lnwallet/interface_test.go index 08ff115a..26cfaf86 100644 --- a/lnwallet/interface_test.go +++ b/lnwallet/interface_test.go @@ -852,7 +852,11 @@ func testListTransactionDetails(miner *rpctest.Harness, t.Fatalf("num confs incorrect, got %v expected %v", txDetail.NumConfirmations, 1) } - if txDetail.Value != -outputAmt { + + // We assert that the value is greater than the amount we + // attempted to send, as the wallet should've paid some amount + // of network fees. + if txDetail.Value >= -outputAmt { fmt.Println(spew.Sdump(txDetail)) t.Fatalf("tx value incorrect, got %v expected %v", int64(txDetail.Value), -int64(outputAmt))