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

Add mempool params to node configuration #193

Merged
merged 3 commits into from
Jun 29, 2017

Conversation

alekseysidorov
Copy link
Contributor

No description provided.

/// Memory pool configuration parameters.
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct MemoryPoolConfig {
/// Maximum number of uncommited transactions.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more config. 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we have to refactor structure of configurations to better usability.

@@ -298,6 +298,7 @@ impl State {
validator_state: validator_id.map(ValidatorState::new),
public_key: public_key,
secret_key: secret_key,
mempool: mempool,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Field init shorthand can be used here:

...
secret_key: secret_key,
mempool,
...

@dj8yfo
Copy link
Contributor

dj8yfo commented Jun 27, 2017

@alekseysidorov just in case you're eager to make life easier #34

impl Default for MemoryPoolConfig {
fn default() -> MemoryPoolConfig {
MemoryPoolConfig {
unconfirmed_txs_limit: 20000,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you make default value x10 bigger?

@vldm vldm mentioned this pull request Jun 27, 2017
7 tasks
dj8yfo
dj8yfo previously approved these changes Jun 28, 2017
@dj8yfo dj8yfo merged commit 881d050 into exonum:master Jun 29, 2017
vldm pushed a commit that referenced this pull request Jul 13, 2017
Add mempool params to node configuration

Former-commit-id: c832fe0ad8d1e3c558386e220420bfa0e9f0c3b4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants