Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Handling of Zcash consensus branch ID will cause problems for future upgrades that don't change tx version #61

Open
daira opened this issue Jan 1, 2020 · 3 comments

Comments

@daira
Copy link

daira commented Jan 1, 2020

See 7707109#commitcomment-36629702 :

This will work for now, but it's not the ideal way to code this. In general you're assuming that the consensus branch ID is determined by the transaction version, which will cause a problem for any upgrade that doesn't change the tx version (as Blossom didn't). Furthermore there could be multiple tx versions valid at the same time, but the consensus branch ID changes at the upgrade regardless of which tx version is actually used.

@OttoAllmendinger
Copy link
Contributor

thanks for the heads up!

@zquestz
Copy link

zquestz commented May 23, 2020

Just a note, this already happened on testnet.

// Fix the consensusBranchId to the latest valid value.
bitgo.networks.zcashTest.consensusBranchId['4'] = 0xf5b9230b

@dractw
Copy link

dractw commented Nov 18, 2020

And happened once again with 0xe9ff75a6 :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants