File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ func TestUnitConversionTolerance(t *testing.T) {
19
19
)
20
20
var (
21
21
rate = rfqmath.BigIntFixedPoint {
22
- Coefficient : rfqmath .NewBigIntFromUint64 (9852216748 ),
22
+ Coefficient : rfqmath .NewBigIntFromUint64 (9_852_216_748 ),
23
23
Scale : 0 ,
24
24
}
25
25
)
@@ -61,8 +61,12 @@ func TestUnitConversionTolerance(t *testing.T) {
61
61
newMarginAssetUnits , rate ,
62
62
)
63
63
64
+ proposedMargin := rfqmath .UnitsToMilliSatoshi (marginAssetUnits , rate ) +
65
+ lnwire .MilliSatoshi (numHTLCs )
66
+
64
67
t .Logf ("Old tolerance allowed in msat: %d" , allowedMarginMSat )
65
68
t .Logf ("New tolerance allowed in msat: %d" , newAllowedMarginMSat )
69
+ t .Logf ("Proposed tolerance allowed in msat: %d" , proposedMargin )
66
70
}
67
71
68
72
// TestUnitConversionToleranceRapid uses rapid to randomly draw invoice amounts,
You can’t perform that action at this time.
0 commit comments