htlcswitch: add basic table driven tests for ExpectedFee

This commit is contained in:
yohei okada committed 2018-06-15 17:29:02 +09:00
1 parent b5a228808b
commit 7b37cbd2d9
2 files changed
+54 -1

No files matched your search

-1
View File
@@ -94,7 +94,6 @@ type ForwardingPolicy struct {
func ExpectedFee(f ForwardingPolicy,
htlcAmt lnwire.MilliSatoshi) lnwire.MilliSatoshi {
// TODO(roasbeef): write some basic table driven tests
return f.BaseFee + (htlcAmt*f.FeeRate)/1000000
}