diff --git a/channeldb/channel.go b/channeldb/channel.go index fb830a9e..c3ee0461 100644 --- a/channeldb/channel.go +++ b/channeldb/channel.go @@ -135,7 +135,7 @@ type OpenChannel struct { // 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 [20]byte + TheirCurrentRevocation [32]byte LocalElkrem *elkrem.ElkremSender RemoteElkrem *elkrem.ElkremReceiver diff --git a/channeldb/channel_test.go b/channeldb/channel_test.go index 2a8a9a90..dea8973e 100644 --- a/channeldb/channel_test.go +++ b/channeldb/channel_test.go @@ -35,7 +35,7 @@ var ( }, Index: 9, } - rev = [20]byte{ + rev = [wire.HashSize]byte{ 0x51, 0xb6, 0x37, 0xd8, 0xfc, 0xd2, 0xc6, 0xda, 0x48, 0x59, 0xe6, 0x96, 0x31, 0x13, 0xa1, 0x17, 0x2d, 0xe7, 0x93, 0xe4,