[2.x.x] Use blocking IO in P2P to reduce CPU load (#2855)
* Use blocking IO in P2P to reduce CPU load
This commit is contained in:
+2
-2
@@ -33,9 +33,9 @@ use num;
|
||||
|
||||
#[macro_use]
|
||||
mod common;
|
||||
pub mod cuckatoo;
|
||||
pub mod cuckaroo;
|
||||
pub mod cuckarood;
|
||||
pub mod cuckatoo;
|
||||
mod error;
|
||||
#[allow(dead_code)]
|
||||
pub mod lean;
|
||||
@@ -49,9 +49,9 @@ use chrono::prelude::{DateTime, NaiveDateTime, Utc};
|
||||
|
||||
pub use self::common::EdgeType;
|
||||
pub use self::types::*;
|
||||
pub use crate::pow::cuckatoo::{new_cuckatoo_ctx, CuckatooContext};
|
||||
pub use crate::pow::cuckaroo::{new_cuckaroo_ctx, CuckarooContext};
|
||||
pub use crate::pow::cuckarood::{new_cuckarood_ctx, CuckaroodContext};
|
||||
pub use crate::pow::cuckatoo::{new_cuckatoo_ctx, CuckatooContext};
|
||||
pub use crate::pow::error::Error;
|
||||
|
||||
const MAX_SOLS: u32 = 10;
|
||||
|
||||
Reference in New Issue
Block a user