File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ import (
18
18
"pgregory.net/rapid"
19
19
)
20
20
21
+ // testCaseGkrEncodeDecode defines a unit test case for encoding
22
+ // and decoding a group key reveal.
21
23
type testCaseGkrEncodeDecode struct {
22
24
testName string
23
25
@@ -280,8 +282,8 @@ func TestGroupKeyRevealEncodeDecodeRapid(tt *testing.T) {
280
282
})
281
283
}
282
284
283
- // TestNonSpendableLeafScript tests that the unspendable leaf script is actually
284
- // unspendable .
285
+ // TestNonSpendableLeafScript tests that the non-spendable leaf script is
286
+ // actually non-spendable .
285
287
func TestNonSpendableLeafScript (t * testing.T ) {
286
288
var assetID ID
287
289
_ , err := rand .Read (assetID [:])
@@ -380,7 +382,7 @@ func TestNonSpendableLeafScript(t *testing.T) {
380
382
spendTx .TxIn [0 ].Witness = finalWitness
381
383
382
384
// Finally, we'll execute the spend. This should fail if
383
- // the leaf is actually unspendable .
385
+ // the leaf is actually non-spendable .
384
386
vm , err := txscript .NewEngine (
385
387
leafScript , spendTx , 0 ,
386
388
txscript .StandardVerifyFlags , nil , sigHash ,
You can’t perform that action at this time.
0 commit comments