lnwallet/test: move htlcDesc struct

This commit is contained in:
Joost Jager committed 2020-06-15 13:51:03 +02:00
1 parent c27406b579
commit 997bab0343
1 file changed
+7 -7
+7 -7
View File
@@ -63,13 +63,6 @@ type testContext struct {
feePerKW btcutil.Amount
}
// htlcDesc is a description used to construct each HTLC in each test case.
type htlcDesc struct {
index int
remoteSigHex string
resolutionTxHex string
}
// getHTLC constructs an HTLC based on a configured HTLC with auxiliary data
// such as the remote signature from the htlcDesc. The partially defined HTLCs
// originate from the BOLT 03 spec and are contained in the test context.
@@ -341,6 +334,13 @@ var testHtlcs = []struct {
},
}
// htlcDesc is a description used to construct each HTLC in each test case.
type htlcDesc struct {
index int
remoteSigHex string
resolutionTxHex string
}
// testCases encode the raw test vectors specified in Appendix C of BOLT 03.
var testCases = []struct {
commitment channeldb.ChannelCommitment