fix(transparent): check coinbase data is at least 2 bytes long #3457
Labels
A-consensus
Area: Consensus rule updates
C-bug
Category: This is a bug
I-consensus
Zebra breaks a Zcash consensus rule
I-invalid-data
Zebra relies on invalid or untrusted data, or sends invalid data
NU Sprout
Network Upgrade: Sprout specific tasks (before Overwinter)
Motivation
zcashd
requires coinbase data that's 2-100 bytes long:https://github.com/zcash/zcash/blob/d8c818bfa507adb845e527f5beb38345c490b330/src/main.cpp#L1697-L1698
But Zebra accepts coinbase data that's 1-100 bytes long:
zebra/zebra-chain/src/transparent/serialize.rs
Line 250 in fa07156
zebra/zebra-chain/src/transparent/serialize.rs
Line 74 in fa07156
Specifications
There is an upcoming change to the Zcash specifications:
zcash/zips#589
Related Work
We might want to merge these height changes first, they could cause a merge conflict:
The text was updated successfully, but these errors were encountered: