Skip to content

Commit

Permalink
updated get_info
Browse files Browse the repository at this point in the history
  • Loading branch information
idky137 committed Oct 23, 2024
1 parent fc7fa36 commit d37eb76
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zaino-serve/src/rpc/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -927,8 +927,9 @@ impl CompactTxStreamer for GrpcClient {
let sapling_activation_height = blockchain_info
.upgrades
.get(&sapling_id)
.map(|sapling_json| sapling_json.into_parts().1)
.unwrap_or(zebra_chain::block::Height(1));
.map_or(zebra_chain::block::Height(1), |sapling_json| {
sapling_json.into_parts().1
});

let consensus_branch_id = zebra_chain::parameters::ConsensusBranchId::from(
blockchain_info.consensus.into_parts().0,
Expand Down

0 comments on commit d37eb76

Please sign in to comment.