Add transparent data to the CompactBlock format.#1
Conversation
|
This replaces the .proto changes previously suggested in zcash/librustzcash#1781 |
|
Thanks for doing this! |
pacu
left a comment
There was a problem hiding this comment.
The way I see it this proto file looks good to me.
I assume that once merged the different repos will be updating their copies
Example for Zaino
git subtree add --prefix=zaino-proto/lightwallet-protocol --squash git@github.com:zcash/lightwallet-protocol.git main
LarryRuane
left a comment
There was a problem hiding this comment.
tACK bf5975a (tested with a lightwalletd branch with the corresponding changes but which doesn't have a PR yet), although I don't see this change yet.
Yeah,
POOL_TYPE_INVALIDseems good.
Also, I think the three commits could be squashed into one.
b1fb556 to
f9b777c
Compare
|
I just thought of another question for both of you ... I'm implementing the Currently, we do return these "empty" blocks, so I guess for compatibility, we should continue doing that. Alternatively, we could define that if no |
We should continue to return the empty blocks; particular with out-of-order scanning, we need to verify that a block did not contain any outputs for our wallet, and also gaps in block order would break our ability to check the hash chaining between blocks. |
|
Got it, thanks.
Not that it matters, I'm just curious, what is out-of-order scanning? (I do understand the need to check block chaining.) re-ACK f9b777c (although I'd be fine with squashing the commits, that's personal preference) |
|
@pacu if you're comfortable, please review zcash/lightwalletd#534; I can't seem to add you as a reviewer on that PR. |
7c1947d to
af261f8
Compare
|
force-pushed to address comments from code review and rebase atop #4 |
pacu
left a comment
There was a problem hiding this comment.
LGTM modulo two documentation issues.
This also modifies the `BlockRange` type to allow callers to specify a set of pool types for which data should be returned. In the case that no pool types are specified, a server should return compact blocks containing only data relevant to the shielded (Sapling and Orchard) pools. Co-authored-by: Larry Ruane <larryruane@gmail.com> Co-authored-by: Pacu <francisco.gindre@gmail.com> Co-authored-by: Jack Grigg <jack@electriccoin.co>
Co-authored-by: Daira-Emma Hopwood <daira@jacaranda.org>
a4a1a06 to
a95359d
Compare
|
force-pushed t address comments from review. |
The merge-base changed after approval.
The merge-base changed after approval.
The merge-base changed after approval.
This also modifies the
BlockRangetype to allow callers to specify a set of pool types for which data should be returned. In the case that no pool types are specified, a server should return compact blocks containing only data relevant to the shielded (Sapling and Orchard) pools.