Skip to content

Commit

Permalink
Update Request::upgrade getter documentation
Browse files Browse the repository at this point in the history
Simplify it so that it won't become updated when #1683 is fixed.

Co-authored-by: teor <teor@riseup.net>
  • Loading branch information
jvff and teor2345 committed Jun 19, 2021
1 parent c662f1c commit 0b08aa0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zebra-consensus/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ impl Request {

/// The network upgrade to consider for the verification.
///
/// This is specified either explicitly in a request to verify a mempool transaction, or based
/// on the block height specified in a request to validate a transaction in a block.
/// This is based on the block height from the request, and the supplied `network`.
pub fn upgrade(&self, network: Network) -> NetworkUpgrade {
match self {
Request::Block { height, .. } => NetworkUpgrade::current(network, *height),
Expand Down

0 comments on commit 0b08aa0

Please sign in to comment.