Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-o-how committed Jul 31, 2024
1 parent f389d9d commit 7e59c45
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/chia-bls/benches/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,4 @@ fn cache_benchmark(c: &mut Criterion) {
}

criterion_group!(cache, cache_benchmark);
criterion_main!(cache);
criterion_main!(cache);
2 changes: 1 addition & 1 deletion crates/chia-bls/src/bls_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,4 +312,4 @@ pub mod tests {
.0
);
}
}
}
2 changes: 1 addition & 1 deletion crates/chia-consensus/src/gen/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mod coin_id;
mod condition_sanitizers;
pub mod conditions;
pub mod condition_tools;
pub mod conditions;
pub mod flags;
pub mod get_puzzle_and_solution;
pub mod messages;
Expand Down
11 changes: 9 additions & 2 deletions crates/chia-consensus/src/spendbundle_validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ pub fn validate_clvm_and_signature(
constants: &ConsensusConstants,
height: u32,
cache: &Arc<Mutex<BlsCache>>,
) -> Result<(OwnedSpendBundleConditions, Vec<([u8; 32], Vec<u8>)>, Duration), ErrorCode> {
) -> Result<
(
OwnedSpendBundleConditions,
Vec<([u8; 32], Vec<u8>)>,
Duration,
),
ErrorCode,
> {
let start_time = Instant::now();
let npcresult = get_conditions_from_spendbundle(spend_bundle, max_cost, height, constants)
.map_err(|e| e.1)?;
Expand Down Expand Up @@ -396,4 +403,4 @@ ff01\
)
.expect("SpendBundle should be valid for this test");
}
}
}
4 changes: 3 additions & 1 deletion wheel/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ use chia_consensus::gen::solution_generator::solution_generator_backrefs as nati
use chia_consensus::merkle_set::compute_merkle_set_root as compute_merkle_root_impl;
use chia_consensus::merkle_tree::{validate_merkle_proof, MerkleSet};
use chia_consensus::spendbundle_conditions::get_conditions_from_spendbundle;
use chia_consensus::spendbundle_validation::{get_flags_for_height_and_constants, validate_clvm_and_signature};
use chia_consensus::spendbundle_validation::{
get_flags_for_height_and_constants, validate_clvm_and_signature,
};
use chia_protocol::{
BlockRecord, Bytes32, ChallengeBlockInfo, ChallengeChainSubSlot, ClassgroupElement, Coin,
CoinSpend, CoinState, CoinStateFilters, CoinStateUpdate, EndOfSubSlotBundle, Foliage,
Expand Down

0 comments on commit 7e59c45

Please sign in to comment.