From 997bab034378ace465372dbff087d888e3106d5e Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Tue, 2 Jun 2020 14:39:52 +0200 Subject: [PATCH] lnwallet/test: move htlcDesc struct --- lnwallet/transactions_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lnwallet/transactions_test.go b/lnwallet/transactions_test.go index f940dde1..5f624b10 100644 --- a/lnwallet/transactions_test.go +++ b/lnwallet/transactions_test.go @@ -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