Browse Source

parser: include block time in compact encodings

wip_broken_chromebook
George Tankersley 6 years ago
parent
commit
7d7390eeae
  1. 2
      parser/block.go
  2. 12
      testdata/compact_blocks.json

2
parser/block.go

@ -83,7 +83,7 @@ func (b *block) ToCompact() *rpc.CompactBlock {
//TODO ProtoVersion: 1,
Height: uint64(b.GetHeight()),
Hash: b.GetEncodableHash(),
//TODO Time: b.hdr.Time,
Time: b.hdr.Time,
}
// Only Sapling transactions have a meaningful compact encoding

12
testdata/compact_blocks.json

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