Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
More leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
vorot93 committed Feb 18, 2020
1 parent 9acb32b commit 79d1686
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ethcore/sync/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ bytes = { package = "parity-bytes", version = "0.1" }
client-traits = { path = "../client-traits" }
common-types = { path = "../types" }
devp2p = { package = "ethcore-network-devp2p", path = "../../util/network-devp2p" }
engine = { path = "../engine" }
enum_primitive = "0.1.1"
ethcore-io = { path = "../../util/io" }
ethcore-private-tx = { path = "../private-tx" }
Expand All @@ -39,6 +38,7 @@ trace-time = "0.1"
triehash-ethereum = { version = "0.2", path = "../../util/triehash-ethereum" }

[dev-dependencies]
engine = { path = "../engine" }
env_logger = "0.5"
ethcore = { path = "..", features = ["test-helpers"] }
ethcore-io = { path = "../../util/io", features = ["mio"] }
Expand Down
5 changes: 4 additions & 1 deletion ethcore/sync/src/chain/fork_filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
// You should have received a copy of the GNU General Public License
// along with Parity Ethereum. If not, see <http://www.gnu.org/licenses/>.

//! This module contains a wrapper that connects this codebase with `ethereum-forkid` crate which provides `FORK_ID`
//! to support Ethereum network protocol, version 64 and above.

// Re-export ethereum-forkid crate contents here.
pub use ethereum_forkid::{BlockNumber, ForkId, RejectReason};

Expand All @@ -28,7 +31,7 @@ pub struct ForkFilterApi {
}

impl ForkFilterApi {
/// Create `ForkFilterApi` from `Engine` and a closure that returns `BlockChainInfo`
/// Create `ForkFilterApi` from `ChainInfo` and an `Iterator` over the hard forks.
pub fn new<C: ?Sized + ChainInfo, I: IntoIterator<Item = BlockNumber>>(client: &C, forks: I) -> Self {
let chain_info = client.chain_info();
Self {
Expand Down

0 comments on commit 79d1686

Please sign in to comment.