Skip to content

Commit

Permalink
Remove redundant arguments in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Apr 12, 2022
1 parent 9cd382b commit 8f6a9b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion zebra-state/src/arbitrary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl ContextuallyValidBlock {
lock_script: transparent::Script::new(&[]),
};

let zero_utxo = transparent::OrderedUtxo::new(zero_output, block::Height(1), false, 1);
let zero_utxo = transparent::OrderedUtxo::new(zero_output, block::Height(1), 1);

let zero_spent_utxos = block
.block
Expand Down
6 changes: 3 additions & 3 deletions zebra-state/src/service/check/tests/utxo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fn accept_shielded_mature_coinbase_utxo_spend() {
value: Amount::zero(),
lock_script: transparent::Script::new(&[]),
};
let ordered_utxo = transparent::OrderedUtxo::new(output, created_height, true, 0);
let ordered_utxo = transparent::OrderedUtxo::new(output, created_height, 0);

let min_spend_height = Height(created_height.0 + MIN_TRANSPARENT_COINBASE_MATURITY);
let spend_restriction = transparent::CoinbaseSpendRestriction::OnlyShieldedOutputs {
Expand All @@ -69,7 +69,7 @@ fn reject_unshielded_coinbase_utxo_spend() {
value: Amount::zero(),
lock_script: transparent::Script::new(&[]),
};
let ordered_utxo = transparent::OrderedUtxo::new(output, created_height, true, 0);
let ordered_utxo = transparent::OrderedUtxo::new(output, created_height, 0);

let spend_restriction = transparent::CoinbaseSpendRestriction::SomeTransparentOutputs;

Expand All @@ -91,7 +91,7 @@ fn reject_immature_coinbase_utxo_spend() {
value: Amount::zero(),
lock_script: transparent::Script::new(&[]),
};
let ordered_utxo = transparent::OrderedUtxo::new(output, created_height, true, 0);
let ordered_utxo = transparent::OrderedUtxo::new(output, created_height, 0);

let min_spend_height = Height(created_height.0 + MIN_TRANSPARENT_COINBASE_MATURITY);
let spend_height = Height(min_spend_height.0 - 1);
Expand Down

0 comments on commit 8f6a9b0

Please sign in to comment.