Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Serde annotations in pool crate #3081

Merged
merged 2 commits into from
Oct 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pool/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,21 +105,21 @@ pub struct PoolConfig {
/// Base fee for a transaction to be accepted by the pool. The transaction
/// weight is computed from its number of inputs, outputs and kernels and
/// multiplied by the base fee to compare to the actual transaction fee.
#[serde = "default_accept_fee_base"]
#[serde(default = "default_accept_fee_base")]
pub accept_fee_base: u64,

/// Maximum capacity of the pool in number of transactions
#[serde = "default_max_pool_size"]
#[serde(default = "default_max_pool_size")]
pub max_pool_size: usize,

/// Maximum capacity of the pool in number of transactions
#[serde = "default_max_stempool_size"]
#[serde(default = "default_max_stempool_size")]
pub max_stempool_size: usize,

/// Maximum total weight of transactions that can get selected to build a
/// block from. Allows miners to restrict the maximum weight of their
/// blocks.
#[serde = "default_mineable_max_weight"]
#[serde(default = "default_mineable_max_weight")]
pub mineable_max_weight: usize,
}

Expand Down