This commit is contained in:
2026-03-20 06:55:27 -05:00
parent 3355c1ea85
commit aae94a4f3c

View File

@@ -99,14 +99,12 @@ func (b *Block) GetPrevHash() []byte {
}
func (b *Block) ToCompact() *walletrpc.CompactBlock {
headerBytes, _ := b.hdr.MarshalBinary()
compactBlock := &walletrpc.CompactBlock{
ProtoVersion: 1,
Height: uint64(b.GetHeight()),
PrevHash: b.hdr.HashPrevBlock,
Hash: b.GetEncodableHash(),
Time: b.hdr.Time,
Header: headerBytes,
}
// Only Sapling transactions have a meaningful compact encoding