State RFC: remove duplicate validation steps (#1123)

This commit is contained in:
teor 2020-10-06 12:03:17 +10:00 committed by GitHub
parent b473476a4a
commit b05273ac16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 7 deletions

View File

@ -623,14 +623,9 @@ check that `block`'s parent hash is `null` (all zeroes) and its height is `0`.
(Due to a [bug in zcashd](https://github.com/ZcashFoundation/zebra/issues/559), genesis block transactions
are ignored during validation.)
3. If the block is a genesis block, skip any transaction updates.
4. Update the `sprout_anchors` and `sapling_anchors` trees with the Sprout and Sapling anchors.
(Due to a [bug in zcashd](https://github.com/ZcashFoundation/zebra/issues/559), genesis block transactions
are ignored during validation.)
3. Update the `sprout_anchors` and `sapling_anchors` trees with the Sprout and Sapling anchors.
4. Iterate over the enumerated transactions in the block. For each transaction:
5. Iterate over the enumerated transactions in the block. For each transaction:
1. Insert `(transaction_hash, block_height || BE32(tx_index))` to
`tx_by_hash`;