From e01dd7f18d212c4af5441d2ee9f31737e9601a9b Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Wed, 27 Jul 2016 11:29:46 -0700 Subject: [PATCH] lnwallet: properly make channelState an enum by using iota --- lnwallet/channel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnwallet/channel.go b/lnwallet/channel.go index 939f3ce8..1ce5ee56 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -50,7 +50,7 @@ type channelState uint8 const ( // channelPending indicates this channel is still going through the // funding workflow, and isn't yet open. - channelPending channelState = 1 + channelPending channelState = iota // channelOpen represents an open, active channel capable of // sending/receiving HTLCs.