parser: Add PrevHash field to CompactBlocks

This commit is contained in:
Jack Grigg 2019-05-04 12:18:42 +01:00
parent ede5e7b7ec
commit 7451d85d15
No known key found for this signature in database
GPG Key ID: 9E8255172BBF9898
2 changed files with 7 additions and 6 deletions

View File

@ -91,6 +91,7 @@ func (b *block) ToCompact() *walletrpc.CompactBlock {
//TODO ProtoVersion: 1,
Height: uint64(b.GetHeight()),
Hash: b.GetEncodableHash(),
PrevHash: b.hdr.HashPrevBlock,
Time: b.hdr.Time,
}

File diff suppressed because one or more lines are too long