From 75c98a3398b3b2c6bd05bc22a73278dae3a91dd1 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Mon, 3 Jul 2023 15:25:09 +0000 Subject: [PATCH] Bring in latest `compact_formats.proto` From zcash/librustzcash@c13c8c667896e8089ad49e88d5c033f9e844ffc4, including the rework of how the commitment tree sizes are to be represented in CompactBlocks. --- common/common.go | 4 +- docs/rtd/index.html | 83 ++++++--- frontend/service.go | 8 +- parser/block.go | 9 +- parser/transaction.go | 6 +- walletrpc/compact_formats.pb.go | 308 ++++++++++++++++++++------------ walletrpc/compact_formats.proto | 48 +++-- 7 files changed, 289 insertions(+), 177 deletions(-) diff --git a/common/common.go b/common/common.go index 8d3ee167..8940ab3a 100644 --- a/common/common.go +++ b/common/common.go @@ -339,8 +339,8 @@ func getBlockFromRPC(height int) (*walletrpc.CompactBlock, error) { t.SetTxID(parser.Reverse(txid)) } r := block.ToCompact() - r.SaplingCommitmentTreeSize = block1.Trees.Sapling.Size - r.OrchardCommitmentTreeSize = block1.Trees.Orchard.Size + r.ChainMetadata.SaplingCommitmentTreeSize = block1.Trees.Sapling.Size + r.ChainMetadata.OrchardCommitmentTreeSize = block1.Trees.Orchard.Size return r, nil } diff --git a/docs/rtd/index.html b/docs/rtd/index.html index 5e9dca23..791e96a3 100644 --- a/docs/rtd/index.html +++ b/docs/rtd/index.html @@ -178,6 +178,10 @@

Table of Contents

compact_formats.proto