channeldb: stored un-revoked hashes are now 32 bytes

This commit is contained in:
Olaoluwa Osuntokun 2016-06-26 22:58:55 -07:00
parent 914159cb87
commit 1a48db3039
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2
2 changed files with 2 additions and 2 deletions

@ -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

@ -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,