Skip to content

Commit

Permalink
graph: make some staff public
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkucharczyk committed Nov 26, 2024
1 parent 11f7226 commit 724c102
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions substrate/client/transaction-pool/src/graph/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ pub use self::pool::{
};
pub use validated_pool::{IsValidator, ValidatedTransaction};

pub(crate) use self::pool::CheckBannedBeforeVerify;
pub(crate) use listener::DroppedByLimitsEvent;
4 changes: 2 additions & 2 deletions substrate/client/transaction-pool/src/graph/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ impl Default for Options {
/// Should we check that the transaction is banned
/// in the pool, before we verify it?
#[derive(Copy, Clone)]
enum CheckBannedBeforeVerify {
pub(crate) enum CheckBannedBeforeVerify {
Yes,
No,
}
Expand Down Expand Up @@ -409,7 +409,7 @@ impl<B: ChainApi> Pool<B> {
}

/// Returns future that validates single transaction at given block.
async fn verify_one(
pub async fn verify_one(

Check failure on line 412 in substrate/client/transaction-pool/src/graph/pool.rs

View workflow job for this annotation

GitHub Actions / cargo-check-all-crate-macos

type `CheckBannedBeforeVerify` is more private than the item `Pool::<B>::verify_one`
&self,
block_hash: <B::Block as BlockT>::Hash,
block_number: NumberFor<B>,
Expand Down

0 comments on commit 724c102

Please sign in to comment.