zcash_client_backend: Add note commitment tree sizes to `CompactBlock` serialization.
This commit is contained in:
parent
fa67d9a645
commit
32e2991c4d
|
@ -22,6 +22,8 @@ message CompactBlock {
|
||||||
uint32 time = 5; // Unix epoch time when the block was mined
|
uint32 time = 5; // Unix epoch time when the block was mined
|
||||||
bytes header = 6; // (hash, prevHash, and time) OR (full header)
|
bytes header = 6; // (hash, prevHash, and time) OR (full header)
|
||||||
repeated CompactTx vtx = 7; // zero or more compact transactions from this block
|
repeated CompactTx vtx = 7; // zero or more compact transactions from this block
|
||||||
|
uint32 saplingCommitmentTreeSize = 8; // the size of the Sapling note commitment tree as of the end of this block
|
||||||
|
uint32 orchardCommitmentTreeSize = 9; // the size of the Orchard note commitment tree as of the end of this block
|
||||||
}
|
}
|
||||||
|
|
||||||
// CompactTx contains the minimum information for a wallet to know if this transaction
|
// CompactTx contains the minimum information for a wallet to know if this transaction
|
||||||
|
|
|
@ -26,6 +26,12 @@ pub struct CompactBlock {
|
||||||
/// zero or more compact transactions from this block
|
/// zero or more compact transactions from this block
|
||||||
#[prost(message, repeated, tag = "7")]
|
#[prost(message, repeated, tag = "7")]
|
||||||
pub vtx: ::prost::alloc::vec::Vec<CompactTx>,
|
pub vtx: ::prost::alloc::vec::Vec<CompactTx>,
|
||||||
|
/// the size of the Sapling note commitment tree as of the end of this block
|
||||||
|
#[prost(uint32, tag = "8")]
|
||||||
|
pub sapling_commitment_tree_size: u32,
|
||||||
|
/// the size of the Orchard note commitment tree as of the end of this block
|
||||||
|
#[prost(uint32, tag = "9")]
|
||||||
|
pub orchard_commitment_tree_size: u32,
|
||||||
}
|
}
|
||||||
/// CompactTx contains the minimum information for a wallet to know if this transaction
|
/// CompactTx contains the minimum information for a wallet to know if this transaction
|
||||||
/// is relevant to it (either pays to it or spends from it) via shielded elements
|
/// is relevant to it (either pays to it or spends from it) via shielded elements
|
||||||
|
|
Loading…
Reference in New Issue