zebra/zebra-chain/src
Arya 8a786fe6ce
add(consensus): Adds block construction and validation for NU5 from block height 1 for Regtest (#8475)
* Always activate Canopy at Height(1) on Regtest

* Ignores the zip 212 grace period on configured Testnets and Regtest

* - Returns early when there is no Heartwood activation height when creating or updating HistoryTree
- Skips call to `check::legacy_chain()` when no NU5 activation height is set (it would return immediately anyway)
- Replaces `.map()` with `.filter_map()` in `NetworkUpgrade::target_spacings()`
- Removes outdated TODO

* - When proof of work is disabled, skips checking if Zebra is synced to the network tip in the getblocktemplate method

* Sets full_verifier_utxo_lookahead to Height::MIN instead of panicking

* When network is regtest, skips starting sync task and commits the genesis block if it's missing in the state

* updates/fixes test config

* Adds test for committing Canopy blocks on Regtest

* - Updates median time past and difficulty checks to use fewer than 11/17/28 blocks

* uses SLOW_START_INTERVAL of 0 if PoW is disabled, adds TODOs

* Update getblocktemplate method to return reserved chain history activation root hash, uses Nu5 at height 1

Test passes.

* Updates test to expect NU5 as the default nu activation at Height(1)

* Removes invalid difficulty snapshot

* fixes tests

* removes regtest NU5 activation height config field

* Apply suggestions from code review

* Update zebra-state/src/service/check/difficulty.rs

Co-authored-by: Marek <mail@marek.onl>

* Update zebra-state/src/service/check/difficulty.rs

* Updates docs/comments, renames an argument

---------

Co-authored-by: Marek <mail@marek.onl>
2024-05-02 19:43:42 +00:00
..
amount
block add(consensus): Adds block construction and validation for NU5 from block height 1 for Regtest (#8475) 2024-05-02 19:43:42 +00:00
chain_sync_status
chain_tip change(chain): Remove `Copy` trait impl from `Network` (#8354) 2024-03-19 20:45:27 +00:00
diagnostic fix(net): Fix potential network hangs, and reduce code complexity (#7859) 2023-11-16 19:53:24 +00:00
fmt
history_tree add(consensus/network): Add an empty `Parameters` struct in `Network::Testnet` (#8368) 2024-04-17 02:20:34 +00:00
orchard fix(beta-toolchain): Warnings (#8404) 2024-04-18 01:45:22 +00:00
parallel change(state): Make the types for finalized blocks consistent (#7923) 2023-11-08 22:06:16 +00:00
parameters add(consensus): Adds block construction and validation for NU5 from block height 1 for Regtest (#8475) 2024-05-02 19:43:42 +00:00
primitives add(chain): Impl `zcash_protocol::consensus::Parameters` for `Network` (#8425) 2024-05-02 00:22:37 +00:00
sapling fix(beta-toolchain): Warnings (#8404) 2024-04-18 01:45:22 +00:00
serialization fix(beta-toolchain): Warnings (#8404) 2024-04-18 01:45:22 +00:00
sprout fix(beta-toolchain): Warnings (#8404) 2024-04-18 01:45:22 +00:00
tests fix(beta-toolchain): Warnings (#8404) 2024-04-18 01:45:22 +00:00
transaction Bump `chrono` from 0.4.34 to 0.4.38 (#8400) 2024-04-19 23:23:57 +00:00
transparent fix(beta-toolchain): Warnings (#8404) 2024-04-18 01:45:22 +00:00
value_balance
work add(consensus): Adds block construction and validation for NU5 from block height 1 for Regtest (#8475) 2024-05-02 19:43:42 +00:00
amount.rs change(scan): Refactor scanning tests (#8047) 2023-12-06 01:57:01 +00:00
block.rs add(consensus): Adds `disable_pow` and `genesis_hash` fields, converts `equihash::Solution` to an enum (#8421) 2024-04-26 05:30:36 +00:00
chain_sync_status.rs
chain_tip.rs change(chain): Remove `Copy` trait impl from `Network` (#8354) 2024-03-19 20:45:27 +00:00
diagnostic.rs
error.rs
fmt.rs change(scan): Refactor scanning tests (#8047) 2023-12-06 01:57:01 +00:00
history_tree.rs add(consensus): Adds block construction and validation for NU5 from block height 1 for Regtest (#8475) 2024-05-02 19:43:42 +00:00
lib.rs change(tests): Remove Matches on Network From Tests (#8295) 2024-03-05 09:12:25 -05:00
orchard.rs
parallel.rs
parameters.rs add(consensus/network): Add an empty `Parameters` struct in `Network::Testnet` (#8368) 2024-04-17 02:20:34 +00:00
primitives.rs add(chain): Impl `zcash_protocol::consensus::Parameters` for `Network` (#8425) 2024-05-02 00:22:37 +00:00
sapling.rs change(scan): Refactor scanning tests (#8047) 2023-12-06 01:57:01 +00:00
serialization.rs
shutdown.rs
sprout.rs
subtree.rs change(state): Refactor the naming of note commitment subtrees (#7855) 2023-10-30 20:06:54 +00:00
tests.rs change(tests): Remove Matches on Network From Tests (#8295) 2024-03-05 09:12:25 -05:00
transaction.rs Fix new nightly clippy and rustc lints (#7860) 2023-10-27 19:35:57 +00:00
transparent.rs change(chain): Remove `Copy` trait impl from `Network` (#8354) 2024-03-19 20:45:27 +00:00
value_balance.rs fix(beta-toolchain): Warnings (#8404) 2024-04-18 01:45:22 +00:00
work.rs