Skip to content

Commit a287245

Browse files
Crypt-iQcfromknecht
authored andcommitted
Off by 1 & gofmt
1 parent df442be commit a287245

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

persistlog/decayedlog.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ outer:
8989
if err != nil {
9090
return err
9191
}
92-
} else if lastHeight != 0 && uint32(epoch.Height) - lastHeight > cltv {
92+
} else if lastHeight != 0 && uint32(epoch.Height)-lastHeight > cltv {
9393
// This CLTV just expired or
9494
// expired in the past but the
9595
// garbage collector was not

sphinx_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"bytes"
55
"encoding/hex"
66
"fmt"
7+
"os"
78
"reflect"
89
"strconv"
910
"testing"
@@ -12,7 +13,6 @@ import (
1213
"github.com/davecgh/go-spew/spew"
1314
"github.com/roasbeef/btcd/btcec"
1415
"github.com/roasbeef/btcd/chaincfg"
15-
"os"
1616
)
1717

1818
// BOLT 4 Test Vectors

0 commit comments

Comments
 (0)