Skip to content

Commit

Permalink
Lint and fix conformance
Browse files Browse the repository at this point in the history
  • Loading branch information
austinabell committed Nov 7, 2020
1 parent 40348e5 commit edd8fad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions blockchain/state_manager/src/chain_rand.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0, MIT

use blockstore::BlockStore;
use chain::ChainStore;
use clock::ChainEpoch;
Expand Down
8 changes: 4 additions & 4 deletions tests/conformance_tests/src/rand_replay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl<'a> ReplayingRand<'a> {
}

impl Rand for ReplayingRand<'_> {
fn get_chain_randomness<DB: BlockStore>(
fn get_chain_randomness(
&self,
dst: DomainSeparationTag,
epoch: ChainEpoch,
Expand All @@ -44,10 +44,10 @@ impl Rand for ReplayingRand<'_> {
if let Some(bz) = self.matches(rule) {
Ok(bz)
} else {
self.fallback.get_chain_randomness(db, dst, epoch, entropy)
self.fallback.get_chain_randomness(dst, epoch, entropy)
}
}
fn get_beacon_randomness<DB: BlockStore>(
fn get_beacon_randomness(
&self,
dst: DomainSeparationTag,
epoch: ChainEpoch,
Expand All @@ -62,7 +62,7 @@ impl Rand for ReplayingRand<'_> {
if let Some(bz) = self.matches(rule) {
Ok(bz)
} else {
self.fallback.get_beacon_randomness(db, dst, epoch, entropy)
self.fallback.get_beacon_randomness(dst, epoch, entropy)
}
}
}

0 comments on commit edd8fad

Please sign in to comment.