Skip to content

Commit

Permalink
fix circular import
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-o-how committed Jan 22, 2025
1 parent 719b8a2 commit 74a700e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
4 changes: 1 addition & 3 deletions crates/chia-consensus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@ pub mod generator_rom;
pub mod merkle_set;
pub mod merkle_tree;
pub mod spendbundle_conditions;
pub mod spendbundle_validation;
pub mod pot_iterations;
pub mod pos_quality;
pub mod spendbundle_validation;
2 changes: 1 addition & 1 deletion crates/chia-protocol/src/block_record.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{Bytes32, ClassgroupElement, Coin, SubEpochSummary};
use chia_streamable_macro::streamable;
use chia_consensus::pot_iterations::{calculate_sp_iters, calculate_ip_iters};
use crate::pot_iterations::{calculate_sp_iters, calculate_ip_iters};
use pyo3::exceptions::PyValueError;

#[cfg(feature = "py-bindings")]
Expand Down
4 changes: 4 additions & 0 deletions crates/chia-protocol/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ mod unfinished_header_block;
mod vdf;
mod wallet_protocol;
mod weight_proof;
mod pot_iterations;
mod pos_quality;

#[cfg(feature = "py-bindings")]
mod lazy_node;
Expand Down Expand Up @@ -55,6 +57,8 @@ pub use crate::unfinished_header_block::*;
pub use crate::vdf::*;
pub use crate::wallet_protocol::*;
pub use crate::weight_proof::*;
pub use crate::pot_iterations::*;
pub use crate::pos_quality::*;

#[cfg(feature = "py-bindings")]
pub use crate::lazy_node::*;
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

use chia_protocol::Bytes32;
use chia_sha2::Sha256;
use std::convert::TryInto;
use crate::pos_quality::expected_plot_size;
// use crate::Bytes32;
// use chia_sha2::Sha256;
// use std::convert::TryInto;
// use crate::pos_quality::expected_plot_size;


#[cfg(feature = "py-bindings")]
Expand Down

0 comments on commit 74a700e

Please sign in to comment.