From b9a61550219dfdedf24b54c3089431f3e36b7ff4 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Sun, 20 Dec 2015 21:48:56 -0600 Subject: [PATCH] lnwallet: add field to track current out-of-chain revocation hash --- lnwallet/channel.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lnwallet/channel.go b/lnwallet/channel.go index de685109d..a71233af4 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -53,6 +53,10 @@ type OpenChannelState struct { ourShaChain *revocation.HyperShaChain theirShaChain *revocation.HyperShaChain + // Current revocation for their commitment transaction. However, since + // this is the hash, and not the pre-image, we can't yet verify that + // it's actually in the chain. + theirCurrentRevocation [wire.HashSize]byte // Final delivery address ourDeliveryAddress btcutil.Address