parser: include block time in compact encodings
This commit is contained in:
@@ -83,7 +83,7 @@ func (b *block) ToCompact() *rpc.CompactBlock {
|
|||||||
//TODO ProtoVersion: 1,
|
//TODO ProtoVersion: 1,
|
||||||
Height: uint64(b.GetHeight()),
|
Height: uint64(b.GetHeight()),
|
||||||
Hash: b.GetEncodableHash(),
|
Hash: b.GetEncodableHash(),
|
||||||
//TODO Time: b.hdr.Time,
|
Time: b.hdr.Time,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only Sapling transactions have a meaningful compact encoding
|
// Only Sapling transactions have a meaningful compact encoding
|
||||||
|
|||||||
12
testdata/compact_blocks.json
vendored
12
testdata/compact_blocks.json
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user