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
2 changed files with 2 additions and 2 deletions

View File

@@ -135,7 +135,7 @@ type OpenChannel struct {
// Current revocation for their commitment transaction. However, since // Current revocation for their commitment transaction. However, since
// this is the hash, and not the pre-image, we can't yet verify that // this is the hash, and not the pre-image, we can't yet verify that
// it's actually in the chain. // it's actually in the chain.
TheirCurrentRevocation [20]byte TheirCurrentRevocation [32]byte
LocalElkrem *elkrem.ElkremSender LocalElkrem *elkrem.ElkremSender
RemoteElkrem *elkrem.ElkremReceiver RemoteElkrem *elkrem.ElkremReceiver

View File

@@ -35,7 +35,7 @@ var (
}, },
Index: 9, Index: 9,
} }
rev = [20]byte{ rev = [wire.HashSize]byte{
0x51, 0xb6, 0x37, 0xd8, 0xfc, 0xd2, 0xc6, 0xda, 0x51, 0xb6, 0x37, 0xd8, 0xfc, 0xd2, 0xc6, 0xda,
0x48, 0x59, 0xe6, 0x96, 0x31, 0x13, 0xa1, 0x17, 0x48, 0x59, 0xe6, 0x96, 0x31, 0x13, 0xa1, 0x17,
0x2d, 0xe7, 0x93, 0xe4, 0x2d, 0xe7, 0x93, 0xe4,