mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-25 18:11:08 +02:00
multi: formatting and comment fixes
This commit is contained in:
@@ -63,6 +63,7 @@ func TestDecodeAcceptChannel(t *testing.T) {
|
||||
if !bytes.Equal(
|
||||
decoded.UpfrontShutdownScript, encoded.UpfrontShutdownScript,
|
||||
) {
|
||||
|
||||
t.Fatalf("decoded script: %x does not equal encoded script: %x",
|
||||
decoded.UpfrontShutdownScript, encoded.UpfrontShutdownScript)
|
||||
}
|
||||
|
@@ -60,7 +60,6 @@ func TestExtraOpaqueDataEncodeDecode(t *testing.T) {
|
||||
// time, we'll actually feed in blank bytes.
|
||||
quickCfg := &quick.Config{
|
||||
Values: func(v []reflect.Value, r *rand.Rand) {
|
||||
|
||||
var newTestCase testCase
|
||||
if r.Int31()%2 == 0 {
|
||||
newTestCase.emptyBytes = true
|
||||
|
@@ -89,7 +89,6 @@ func TestFeatureVectorSetUnset(t *testing.T) {
|
||||
t.Errorf("Expectation failed in case %d, bit %d", i, j)
|
||||
break
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
for _, bit := range test.bits {
|
||||
|
@@ -70,7 +70,6 @@ func ErrorPayloadTooLarge(size int) error {
|
||||
"but maximum message payload is %d bytes",
|
||||
size, MaxMsgBody,
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
// String return the string representation of message type.
|
||||
|
@@ -200,7 +200,6 @@ func BenchmarkWriteMessage(b *testing.B) {
|
||||
m := msg
|
||||
// Run each message as a sub benchmark test.
|
||||
b.Run(msg.MsgType().String(), func(b *testing.B) {
|
||||
|
||||
b.ResetTimer()
|
||||
for i := 0; i < b.N; i++ {
|
||||
// Fetch a buffer from the pool and reset it.
|
||||
|
@@ -236,7 +236,6 @@ func (o *OpenChannel) Encode(w *bytes.Buffer, pver uint32) error {
|
||||
|
||||
if err := WritePublicKey(w, o.HtlcPoint); err != nil {
|
||||
return err
|
||||
|
||||
}
|
||||
|
||||
if err := WritePublicKey(w, o.FirstCommitmentPoint); err != nil {
|
||||
|
@@ -49,7 +49,6 @@ var (
|
||||
// TestQueryShortChanIDsUnsorted tests that decoding a QueryShortChanID request
|
||||
// that contains duplicate or unsorted ids returns an ErrUnsortedSIDs failure.
|
||||
func TestQueryShortChanIDsUnsorted(t *testing.T) {
|
||||
|
||||
for _, test := range unsortedSidTests {
|
||||
test := test
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user