Browse Source

parser: Add PrevHash field to CompactBlocks

remove_0mq
Jack Grigg 5 years ago
parent
commit
7451d85d15
No known key found for this signature in database GPG Key ID: 9E8255172BBF9898
  1. 1
      parser/block.go
  2. 12
      testdata/compact_blocks.json

1
parser/block.go

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

12
testdata/compact_blocks.json

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save