Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ZIP 239: Relay of Version 5 Transactions #516

Merged
merged 6 commits into from
Jun 3, 2021
Merged

Conversation

daira
Copy link
Collaborator

@daira daira commented May 29, 2021

closes #515

Signed-off-by: Daira Hopwood daira@jacaranda.org

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
@daira
Copy link
Collaborator Author

daira commented May 29, 2021

As specified in [2] (ZIP 200), a node that supports a network upgrade will clear its mempool when reaching the block before that upgrade's activation block. Before this point, the node will not accept transactions into its mempool that are invalid according to the pre-upgrade consensus protocol (so, in this case, it would not accept v5 transactions). This means that a correctly functioning node will not use the MSG_TXV5 MSG_WTX inv type until it has received the block preceding the NU5 network upgrade.

I was going from memory on how this works, and now that I check ZIP 200, it's not clearly specified exactly when the mempool is cleared. @str4d, am I right about how it works in zcashd?

daira added 2 commits May 29, 2021 18:25
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
…ctions.

The previous wording could have been misinterpreted to require not using MSG_TXV5 for these,
and was partly redundant. Also mention in Motivation that the format of serialized
v5 transactions is not consensus-critical.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
…TX`.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
@daira
Copy link
Collaborator Author

daira commented Jun 1, 2021

The last commit (f15f263) reflects changes from a review with @dconnolly and @nuttycom. Re-review needed.

@daira daira requested a review from dconnolly June 1, 2021 16:03
zip-0239.rst Show resolved Hide resolved
@daira daira merged commit 43b03a7 into zcash:master Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ZIP 239] Relay of Version 5 Transactions
3 participants