Skip to content

Commit

Permalink
Rename network to network_upgrade
Browse files Browse the repository at this point in the history
Make it clearer, to avoid mixing up `Network` and `NetworkUpgrade` types.

Co-authored-by: teor <teor@riseup.net>
  • Loading branch information
jvff and teor2345 authored Jun 22, 2021
1 parent 0b08aa0 commit e162d90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zebra-consensus/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,10 +427,10 @@ where
unimplemented!("V5 transaction validation is not yet complete");
}

/// Verifies if a V5 `transaction` is supported by the network `upgrade`.
/// Verifies if a V5 `transaction` is supported by `network_upgrade`.
fn verify_v5_transaction_network_upgrade(
transaction: &Transaction,
upgrade: NetworkUpgrade,
network_upgrade: NetworkUpgrade,
) -> Result<(), TransactionError> {
match upgrade {
// Supports V5 transactions
Expand Down

0 comments on commit e162d90

Please sign in to comment.