Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
arya2 authored May 1, 2024
1 parent 855ad12 commit 8128a07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zebra-consensus/src/block/subsidy/general.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub fn block_subsidy(height: Height, network: &Network) -> Result<Amount<NonNega

// TODO: Add this as a field on `testnet::Parameters` instead of checking `disable_pow()`, this is 0 for Regtest in zcashd,
// see <https://github.com/zcash/zcash/blob/master/src/chainparams.cpp#L640>
if height < SLOW_START_SHIFT && !network.disable_pow() {
if height < SLOW_START_INTERVAL && !network.disable_pow() {
unreachable!(
"unsupported block height {height:?}: callers should handle blocks below {SLOW_START_INTERVAL:?}",
)
Expand Down
2 changes: 1 addition & 1 deletion zebra-state/src/service/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ where
// checkpoint verified. The state queues and block write task make sure that blocks are
// committed in strict height order. But this function is only called on semantically
// verified blocks, so there will be at least 1 million blocks in the state when it is
// called. So this error should never happen.
// called. So this error should never happen on Mainnet or the default Testnet.
#[cfg(not(test))]
if relevant_chain.is_empty() {
return Err(ValidateContextError::NotReadyToBeCommitted);
Expand Down

0 comments on commit 8128a07

Please sign in to comment.