lnwallet: move stateHintTests global var into TestCommitTxStateHint
This commit is contained in:
1 file changed
+6
-4
@@ -573,7 +573,12 @@ func TestHTLCReceiverSpendValidation(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var stateHintTests = []struct {
|
}
|
||||||
|
|
||||||
|
func TestCommitTxStateHint(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
|
stateHintTests := []struct {
|
||||||
name string
|
name string
|
||||||
from uint64
|
from uint64
|
||||||
to uint64
|
to uint64
|
||||||
@@ -608,9 +613,6 @@ var stateHintTests = []struct {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCommitTxStateHint(t *testing.T) {
|
|
||||||
t.Parallel()
|
|
||||||
|
|
||||||
var obsfucator [StateHintSize]byte
|
var obsfucator [StateHintSize]byte
|
||||||
copy(obsfucator[:], testHdSeed[:StateHintSize])
|
copy(obsfucator[:], testHdSeed[:StateHintSize])
|
||||||
timeYesterday := uint32(time.Now().Unix() - 24*60*60)
|
timeYesterday := uint32(time.Now().Unix() - 24*60*60)
|
||||||
|
|||||||
Reference in new issue
Block a user