Add link to ZIP212 in coinbase comment

Co-authored-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
ying tong 2020-08-20 22:20:34 +08:00 committed by GitHub
parent 2f2c8ea5f3
commit 1ed936b893
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -970,6 +970,7 @@ bool ContextualCheckTransaction(
// decrypted to a note plaintext, MUST have note plaintext lead byte equal
// to 0x02. This applies even during the grace period, and also applies to
// funding stream outputs sent to shielded payment addresses, if any.
// https://zips.z.cash/zip-0212#consensus-rule-change-for-coinbase-transactions
if (canopyActive != (encPlaintext->get_leadbyte() == 0x02)) {
return state.DoS(
DOS_LEVEL_BLOCK,