From 8b55c10e45dc8671e9975aba63f10e6892e4aa6c Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Tue, 2 Jun 2020 14:40:33 +0200 Subject: [PATCH] lnwallet/test: name testCase struct --- lnwallet/transactions_test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lnwallet/transactions_test.go b/lnwallet/transactions_test.go index 5f624b10a..cba6b0b44 100644 --- a/lnwallet/transactions_test.go +++ b/lnwallet/transactions_test.go @@ -341,13 +341,15 @@ type htlcDesc struct { resolutionTxHex string } -// testCases encode the raw test vectors specified in Appendix C of BOLT 03. -var testCases = []struct { +type testCase struct { commitment channeldb.ChannelCommitment htlcDescs []htlcDesc expectedCommitmentTxHex string remoteSigHex string -}{ +} + +// testCases encode the raw test vectors specified in Appendix C of BOLT 03. +var testCases = []testCase{ { commitment: channeldb.ChannelCommitment{ CommitHeight: 42,