Skip to content

Commit

Permalink
fix: docstring for creating a mempool instance
Browse files Browse the repository at this point in the history
  • Loading branch information
Sword-Smith committed May 22, 2024
1 parent 5136656 commit 68a96cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/models/state/mempool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,12 +412,14 @@ impl Mempool {
/// # Example
///
/// ```
/// use neptune_core::models::state::mempool::Mempool;
/// use bytesize::ByteSize;
/// use neptune_core::models::blockchain::block::Block;
/// use neptune_core::models::state::mempool::Mempool;
/// use neptune_core::config_models::network::Network;
///
/// let network = Network::Main;
/// let genesis_block = Block::genesis_block(network);
/// let mempool = Mempool::new(ByteSize::gb(1), genesis_block);
/// let mempool = Mempool::new(ByteSize::gb(1), genesis_block.hash());
/// // insert transactions here.
/// let mut most_valuable_transactions = vec![];
/// for (transaction_digest, fee_density) in mempool.get_sorted_iter() {
Expand Down

0 comments on commit 68a96cb

Please sign in to comment.