From 3338c9d96be71cb6a4f06f133e2e0a2c8eff4c52 Mon Sep 17 00:00:00 2001 From: Martin Stefcek Date: Mon, 15 Apr 2024 17:13:43 +0400 Subject: [PATCH] fix clippy --- base_layer/core/src/chain_storage/tests/blockchain_database.rs | 1 + .../validation/aggregate_body/aggregate_body_chain_validator.rs | 2 +- .../aggregate_body/aggregate_body_internal_validator.rs | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/base_layer/core/src/chain_storage/tests/blockchain_database.rs b/base_layer/core/src/chain_storage/tests/blockchain_database.rs index 3cf9fef173..1279b785b7 100644 --- a/base_layer/core/src/chain_storage/tests/blockchain_database.rs +++ b/base_layer/core/src/chain_storage/tests/blockchain_database.rs @@ -682,6 +682,7 @@ mod validator_node_merkle_root { public_key.clone(), Some(sidechain_public.clone()), Some(sidechain_signature), + 10000, ); let (tx, _outputs) = schema_to_transaction( &[txn_schema!( diff --git a/base_layer/core/src/validation/aggregate_body/aggregate_body_chain_validator.rs b/base_layer/core/src/validation/aggregate_body/aggregate_body_chain_validator.rs index bcccc592ca..6d977ff503 100644 --- a/base_layer/core/src/validation/aggregate_body/aggregate_body_chain_validator.rs +++ b/base_layer/core/src/validation/aggregate_body/aggregate_body_chain_validator.rs @@ -31,7 +31,7 @@ use crate::{ consensus::{ConsensusConstants, ConsensusManager}, transactions::{ aggregated_body::AggregateBody, - transaction_components::{TransactionError, TransactionInput}, + transaction_components::{TransactionError, TransactionInput, TransactionOutput}, }, validation::{ helpers::{check_input_is_utxo, check_not_duplicate_txo, check_tari_script_byte_size}, diff --git a/base_layer/core/src/validation/aggregate_body/aggregate_body_internal_validator.rs b/base_layer/core/src/validation/aggregate_body/aggregate_body_internal_validator.rs index dd03f97a7d..bcc937e868 100644 --- a/base_layer/core/src/validation/aggregate_body/aggregate_body_internal_validator.rs +++ b/base_layer/core/src/validation/aggregate_body/aggregate_body_internal_validator.rs @@ -115,6 +115,8 @@ impl AggregateBodyInternalConsistencyValidator { check_script_size(output, constants.max_script_byte_size())?; check_covenant_length(&output.covenant, constants.max_covenant_length())?; check_permitted_range_proof_types(constants, output)?; + check_template_registration_utxo(output)?; + check_confidential_output_utxo(output)?; check_validator_node_registration_utxo(constants, output, height)?; }