lnwallet: move stateHintTests global var into TestCommitTxStateHint
This commit is contained in:
1 file changed
+8
-6
@@ -573,13 +573,18 @@ 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
|
||||||
inputs int
|
inputs int
|
||||||
shouldFail bool
|
shouldFail bool
|
||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
name: "states 0 to 1000",
|
name: "states 0 to 1000",
|
||||||
from: 0,
|
from: 0,
|
||||||
@@ -606,10 +611,7 @@ var stateHintTests = []struct {
|
|||||||
inputs: 2,
|
inputs: 2,
|
||||||
shouldFail: true,
|
shouldFail: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCommitTxStateHint(t *testing.T) {
|
|
||||||
t.Parallel()
|
|
||||||
|
|
||||||
var obsfucator [StateHintSize]byte
|
var obsfucator [StateHintSize]byte
|
||||||
copy(obsfucator[:], testHdSeed[:StateHintSize])
|
copy(obsfucator[:], testHdSeed[:StateHintSize])
|
||||||
|
|||||||
Reference in new issue
Block a user