-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add(test): Add serialized NU5 blocks to test vectors (#9098)
* Add serialized Mainnet blocks for tests * Add Sapling anchors * Add Mainnet Orchard anchors * Remove wrong Testnet NU5 blocks * Add Testnet blocks with V5 txs to test vectors * Move the Sapling treestate * Add Sapling & Orchard anchors * Remove unneeded test for fake V5 txs We don't need this test anymore since we have real V5 txs now. * Add `has_transparent_inputs` to `Transaction` * Fix `v5_with_sapling_spends` test * Fix `binding_signatures` test * Refactor block test vectors * Use real V5 txs instead of fake ones * Fix `v5_transaction_is_rejected_before_nu5` test * Fix `v5_tx_is_accepted_after_nu5_activation` test * Fix `v5_tx_with_no_outputs_fails_validation` test * Move `v5_tx_with_no_outputs_fails_validation` test * Fix `v5_tx_with_no_inputs_fails_verification` test * Fix `v5_tx_with_orchard_actions_has_inputs..` test * Fix `v5_coinbase_tx_without_spends_flag_passes` * Simplify `orchard` imports * Fix `v5_tx_with_orchard_actions_has_flags` test * Fix `v5_coinbase_tx_with_enable_spends_fails` * Fix `v5_tx_with_duplicate_orchard_action` test * Fix `coinbase_outputs_are_decryptable_for_v5` * Fix `shielded_outputs_are_not_decryptable_for_v5` * Use `Network::iter` instead of Mainnet * Rename basic V5 tx test * Apply suggestions from code review Co-authored-by: Arya <[email protected]> * Return an `Ok` in tx is not coinbase * formatting * Update zebra-consensus/src/transaction/check.rs Co-authored-by: Arya <[email protected]> --------- Co-authored-by: Arya <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
410cac0
commit 82c23f3
Showing
18 changed files
with
705 additions
and
714 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.