Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
45e0ee8
Genric over hasher
dvdplm Jul 11, 2018
eb26a69
WIP start adding NodeCodec
dvdplm Jul 11, 2018
acf8284
Add codec to TrieBackend
dvdplm Jul 11, 2018
90707dc
Typechecks
dvdplm Jul 11, 2018
4ccc851
Fix error type
dvdplm Jul 11, 2018
21b7892
Cleanup
dvdplm Jul 11, 2018
6b2fa02
Tests build (and fail)
dvdplm Jul 11, 2018
f331b0c
Fix tests: don't use MemoryDB::default()
dvdplm Jul 11, 2018
f0f2413
Lockfile
dvdplm Jul 11, 2018
87740d7
Address grumbles
dvdplm Jul 12, 2018
a34f614
Teach environmental! about generics
dvdplm Jul 12, 2018
c7503ad
Add Finder artifacts
dvdplm Jul 12, 2018
711da4f
whitespace
dvdplm Jul 12, 2018
a70f4a0
Merge branch 'refactor/environmental-generic-traits' into refactor/su…
dvdplm Jul 12, 2018
b4f210a
Add a toy impl of Hasher and plug it in to Externalities
dvdplm Jul 30, 2018
3b5f60b
Use `uint` and `fixed-hash` from `parity-common`
dvdplm Jul 30, 2018
1aeb495
lock file updates
dvdplm Jul 30, 2018
f7c30f4
Merge branch 'master' into refactor/substrate-state-machine-generic
dvdplm Jul 30, 2018
80c96a1
Make hashes Encodable/Decodable
dvdplm Jul 31, 2018
e3277ac
lock file updates
dvdplm Jul 31, 2018
d38216b
Impl FromIterator for TestExternalities so we can collect() and use map!
dvdplm Aug 1, 2018
5f19c7b
Use rustc-hex from crates
dvdplm Aug 1, 2018
848ce8f
Fix tests in runtime-io
dvdplm Aug 1, 2018
1358bb9
Merge branch 'master' into refactor/substrate-state-machine-generic
dvdplm Aug 1, 2018
9b8f417
lockfile shenanigans
dvdplm Aug 1, 2018
ca01909
Add a BlakeHasher impl
dvdplm Aug 1, 2018
9e42668
Use BlakeHasher in runtime-io
dvdplm Aug 1, 2018
0f77d2b
lockfile updates
dvdplm Aug 2, 2018
402c35c
ws
dvdplm Aug 2, 2018
85b5fe1
Add a Blake2/RLP-flavoured NodeCodec
dvdplm Aug 2, 2018
56649b6
Use Blake-flavoured Hasher and NodeCodec
dvdplm Aug 2, 2018
5e5e61e
lockfile
dvdplm Aug 2, 2018
fc14711
Implement PartialEq and Default for TestExternalities
dvdplm Aug 2, 2018
05d8200
Add note about limitations of environmental!
dvdplm Aug 2, 2018
65c4f64
Make it compile, but this is probably broken
dvdplm Aug 2, 2018
56f9ef6
Derive Debug so tests in executor can work
dvdplm Aug 2, 2018
eac3f25
Make executor use BlakeHasher
dvdplm Aug 2, 2018
f3422c5
ws
dvdplm Aug 3, 2018
aa40b78
WIP make client generic
dvdplm Aug 3, 2018
54a2b66
typechecks
dvdplm Aug 3, 2018
277aadd
cleanup
dvdplm Aug 3, 2018
02a302a
client tests pass
dvdplm Aug 3, 2018
dae069b
Fix client/db
dvdplm Aug 3, 2018
7a93cf7
cleanup
dvdplm Aug 3, 2018
6329abb
Fix network
dvdplm Aug 3, 2018
dc7fc67
Fix rpc
dvdplm Aug 3, 2018
d7c0935
Fix service
dvdplm Aug 3, 2018
a553f31
Make TestExternalities work better au lieu d'un HashMap
dvdplm Aug 3, 2018
9bfe799
Fix tests in council
dvdplm Aug 3, 2018
e4cefb3
Fix tests in contract
dvdplm Aug 3, 2018
6277110
Fix tests in council
dvdplm Aug 3, 2018
adc13a2
Fix democracy
dvdplm Aug 3, 2018
252bbd8
Add comment about odd-looking reexports in tests
dvdplm Aug 3, 2018
c94018c
Don't need to load branch
dvdplm Aug 3, 2018
c49609d
Fix staking
dvdplm Aug 3, 2018
0fb6dc1
Fix session
dvdplm Aug 3, 2018
6ebfc7f
Some polkadot fixes and lockfile
dvdplm Aug 3, 2018
056bffd
Fix executive
dvdplm Aug 3, 2018
ccb61a9
Merge branch 'master' into refactor/substrate-state-machine-generic
dvdplm Aug 3, 2018
f565cf9
fixup lockfile
dvdplm Aug 3, 2018
d11d578
Fix polkadot/api
dvdplm Aug 4, 2018
c7334b2
Fix polkadot/service
dvdplm Aug 4, 2018
b6bde9a
Fix polkadot/runtime tests
dvdplm Aug 4, 2018
08f25d3
Merge branch 'master' into refactor/substrate-state-machine-generic
dvdplm Aug 5, 2018
9b139b2
Fix tests in test-runtime
dvdplm Aug 6, 2018
0c82f95
Test fixes
dvdplm Aug 6, 2018
50b4b12
Fix missing component in the `std` feature
dvdplm Aug 6, 2018
111f9fd
Use PhantomData and Result from core
dvdplm Aug 6, 2018
1276733
Fix paths
dvdplm Aug 6, 2018
334e008
load heapsize on wasm
dvdplm Aug 6, 2018
2faff87
implement `HeapSizeOf` for wasm
dvdplm Aug 6, 2018
751fe9e
Add toy impl of `blake2_256` for no_std
dvdplm Aug 6, 2018
81d7278
lockfile
dvdplm Aug 6, 2018
dd551a6
Merge branch 'master' into refactor/substrate-state-machine-generic
dvdplm Aug 7, 2018
dcd9541
Use kvdb* from parity-common and fix errors
dvdplm Aug 7, 2018
2370a16
rebuilt lockfile
dvdplm Aug 7, 2018
0d4a4fe
Add dummy impl of `on_advance_round` for rhododendron::Context
dvdplm Aug 7, 2018
6367815
Fix build after merge
dvdplm Aug 7, 2018
cf7e338
Add HeapSizeOf bound where needed
dvdplm Aug 8, 2018
af1b17e
Sort out dependencies for no_std
dvdplm Aug 8, 2018
ca89697
Add HeapSizeOf bound where needed
dvdplm Aug 8, 2018
da711ef
use temp branch pending PR merges
dvdplm Aug 8, 2018
3b206c2
Remove unneeded tests
dvdplm Aug 8, 2018
8064c6d
Lock file and wasm artifacts
dvdplm Aug 8, 2018
0066026
lockfile
dvdplm Aug 8, 2018
bfcf5df
Use magic commit for libp2p
dvdplm Aug 8, 2018
35b29ba
Cleanup
dvdplm Aug 9, 2018
04b7065
Implement blake2_256 for no_std
dvdplm Aug 9, 2018
8152a78
Back on parity-common master
dvdplm Aug 9, 2018
cafe669
Merge branch 'master' into refactor/substrate-state-machine-generic
dvdplm Aug 9, 2018
11ea517
missing type params
dvdplm Aug 9, 2018
4d14020
Merge branch 'master' into refactor/substrate-state-machine-generic
gavofyork Aug 9, 2018
19d07db
Update Cargo.lock
gavofyork Aug 9, 2018
60df8c1
whitespace
dvdplm Aug 9, 2018
6833f7b
Merge branch 'refactor/substrate-state-machine-generic' of github.com…
dvdplm Aug 9, 2018
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
Prev Previous commit
Next Next commit
Cleanup
  • Loading branch information
dvdplm committed Aug 9, 2018
commit 35b29babf5f0b602abd7d45d2dae9018327e5e53
116 changes: 57 additions & 59 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion polkadot/runtime/src/parachains.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use substrate_runtime_support::dispatch::Result;
use rstd::marker::PhantomData;

#[cfg(any(feature = "std", test))]
use {runtime_primitives};
use runtime_primitives;

#[cfg(any(feature = "std", test))]
use std::collections::HashMap;
Expand Down
78 changes: 38 additions & 40 deletions polkadot/runtime/wasm/Cargo.lock

Large diffs are not rendered by default.

Binary file not shown.
1 change: 0 additions & 1 deletion substrate/cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ extern crate ansi_term;
extern crate regex;
extern crate time;
extern crate fdlimit;

extern crate futures;
extern crate tokio;
extern crate names;
Expand Down
6 changes: 3 additions & 3 deletions substrate/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ substrate-runtime-primitives = { path = "../runtime/primitives" }
substrate-state-machine = { path = "../state-machine" }
substrate-keyring = { path = "../../substrate/keyring" }
substrate-telemetry = { path = "../telemetry" }
hashdb = { git = "https://github.com/paritytech/parity-common", branch = "refactor/no_std-friendly" }
patricia-trie = { git = "https://github.com/paritytech/parity-common", branch = "refactor/no_std-friendly" }
rlp = { git = "https://github.com/paritytech/parity-common", branch = "refactor/no_std-friendly" }
hashdb = { git = "https://github.com/paritytech/parity-common", branch = "temp/combined-hashdb-plain_hasher-changes" }
patricia-trie = { git = "https://github.com/paritytech/parity-common", branch = "temp/combined-hashdb-plain_hasher-changes" }
rlp = { git = "https://github.com/paritytech/parity-common", branch = "temp/combined-hashdb-plain_hasher-changes" }

[dev-dependencies]
substrate-test-client = { path = "../test-client" }
10 changes: 5 additions & 5 deletions substrate/client/db/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ authors = ["Parity Technologies <[email protected]>"]
[dependencies]
parking_lot = "0.4"
log = "0.3"
kvdb = { git = "https://github.com/paritytech/parity-common", branch = "refactor/no_std-friendly" }
kvdb-rocksdb = { git = "https://github.com/paritytech/parity-common", branch = "refactor/no_std-friendly" }
hashdb = { git = "https://github.com/paritytech/parity-common", branch = "refactor/no_std-friendly" }
memorydb = { git = "https://github.com/paritytech/parity-common", branch = "refactor/no_std-friendly" }
kvdb = { git = "https://github.com/paritytech/parity-common", branch = "temp/combined-hashdb-plain_hasher-changes" }
kvdb-rocksdb = { git = "https://github.com/paritytech/parity-common", branch = "temp/combined-hashdb-plain_hasher-changes" }
hashdb = { git = "https://github.com/paritytech/parity-common", branch = "temp/combined-hashdb-plain_hasher-changes" }
memorydb = { git = "https://github.com/paritytech/parity-common", branch = "temp/combined-hashdb-plain_hasher-changes" }
substrate-primitives = { path = "../../../substrate/primitives" }
substrate-runtime-primitives = { path = "../../../substrate/runtime/primitives" }
substrate-client = { path = "../../../substrate/client" }
Expand All @@ -20,4 +20,4 @@ substrate-executor = { path = "../../../substrate/executor" }
substrate-state-db = { path = "../../../substrate/state-db" }

[dev-dependencies]
kvdb-memorydb = { git = "https://github.com/paritytech/parity-common", branch = "refactor/no_std-friendly" }
kvdb-memorydb = { git = "https://github.com/paritytech/parity-common", branch = "temp/combined-hashdb-plain_hasher-changes" }
5 changes: 2 additions & 3 deletions substrate/client/db/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ struct PendingBlock<Block: BlockT> {
struct StateMetaDb<'a>(&'a KeyValueDB);

impl<'a> state_db::MetaDb for StateMetaDb<'a> {
type Error = io::Error; // REVIEW: `kvdb::Error` is gone (https://github.com/paritytech/parity-ethereum/pull/8924/files#diff-ead7c616cf8709a265c3297ad8dbfccdL36) and replaced with `io:Error` in other places – is that ok here too?
type Error = io::Error;

fn get_meta(&self, key: &[u8]) -> Result<Option<Vec<u8>>, Self::Error> {
self.0.get(columns::STATE_META, key).map(|r| r.map(|v| v.to_vec()))
Expand Down Expand Up @@ -271,7 +271,7 @@ impl<Block: BlockT> state_machine::Storage<BlakeHasher> for StorageDb<Block> {
}

impl<Block: BlockT> state_db::HashDb for StorageDb<Block> {
type Error = io::Error; // REVIEW: `kvdb::Error` was removed (see above)
type Error = io::Error;
type Hash = H256;

fn get(&self, key: &H256) -> Result<Option<Vec<u8>>, Self::Error> {
Expand Down Expand Up @@ -308,7 +308,6 @@ impl<Block: BlockT> Backend<Block> {
fn from_kvdb(db: Arc<KeyValueDB>, pruning: PruningMode, finalization_window: u64) -> Result<Self, client::error::Error> {
let blockchain = BlockchainDb::new(db.clone())?;
let map_e = |e: state_db::Error<io::Error>| ::client::error::Error::from(format!("State database error: {:?}", e));
// let map_e = |e: state_db::Error<kvdb::Error>| ::client::error::Error::from(format!("State database error: {:?}", e));
let state_db: StateDb<Block::Hash, H256> = StateDb::new(pruning, &StateMetaDb(&*db)).map_err(map_e)?;
let storage_db = StorageDb {
db,
Expand Down
6 changes: 0 additions & 6 deletions substrate/client/db/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,7 @@ pub fn db_key_to_number<N>(key: &[u8]) -> client::error::Result<N> where N: As<u
/// Maps database error to client error
pub fn db_err(err: io::Error) -> client::error::Error {
use std::error::Error;
// REVIEW: not sure what value the `Io`/`Msg` kinds had or what we want to do here
client::error::ErrorKind::Backend(err.description().into()).into()
// match err.kind() {
// &kvdb::ErrorKind::Io(ref err) => client::error::ErrorKind::Backend(err.description().into()).into(),
// &kvdb::ErrorKind::Msg(ref m) => client::error::ErrorKind::Backend(m.clone()).into(),
// _ => client::error::ErrorKind::Backend("Unknown backend error".into()).into(),
// }
}

/// Open RocksDB database.
Expand Down
2 changes: 1 addition & 1 deletion substrate/client/src/in_mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ where
let hash = header.hash();
let parent_hash = *header.parent_hash();

self.states.write().insert(hash, operation.new_state.unwrap_or_else(|| old_state.clone())); // REVIEW: this was `.unwrap_or_else(|| old_state.clone())` – but ther compiler complained about trying to insert a rference into the hash map. Not sure how that could have worked before?
self.states.write().insert(hash, operation.new_state.unwrap_or_else(|| old_state.clone()));
self.blockchain.insert(hash, header, justification, body, pending_block.is_best);
// dumb implementation - store value for each block
if pending_block.is_best {
Expand Down
2 changes: 1 addition & 1 deletion substrate/executor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ twox-hash = "1.1.0"
lazy_static = "1.0"
parking_lot = "*"
log = "0.3"
hashdb = { git = "https://github.com/paritytech/parity-common", branch = "refactor/no_std-friendly" }
hashdb = { git = "https://github.com/paritytech/parity-common", branch = "temp/combined-hashdb-plain_hasher-changes" }

[dev-dependencies]
assert_matches = "1.1"
Expand Down
2 changes: 1 addition & 1 deletion substrate/executor/src/wasm_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ impl ReadPrimitive<u32> for MemoryInstance {
}
}

// REVIEW: this macro does not support `where` clauses and that seems somewhat tricky to add
// TODO: this macro does not support `where` clauses and that seems somewhat tricky to add
impl_function_executor!(this: FunctionExecutor<'e, E>,
ext_print_utf8(utf8_data: *const u8, utf8_len: u32) => {
if let Ok(utf8) = this.memory.get(utf8_data, utf8_len as usize) {
Expand Down
13 changes: 6 additions & 7 deletions substrate/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,19 @@ crunchy = "0.1"
substrate-runtime-std = { path = "../runtime-std", default_features = false }
substrate-codec = { path = "../codec", default_features = false }
elastic-array = {version = "0.10", optional = true }
fixed-hash = { git = "https://github.com/paritytech/parity-common", default_features = false, branch = "refactor/no_std-friendly" }
fixed-hash = { git = "https://github.com/paritytech/parity-common", default_features = false, branch = "temp/combined-hashdb-plain_hasher-changes" }
rustc-hex = { version = "2.0", default_features = false }
serde = { version = "1.0", default_features = false }
serde_derive = { version = "1.0", optional = true }
# TODO: Used to fetch `uint` from "https://github.com/rphmeier/primitives.git" – what was `compile-for-wasm` adding?
uint = { git = "https://github.com/paritytech/parity-common", default_features = false, branch = "refactor/no_std-friendly" }
rlp = { git = "https://github.com/paritytech/parity-common", optional = true, branch = "refactor/no_std-friendly" }
uint = { git = "https://github.com/paritytech/parity-common", default_features = false, branch = "temp/combined-hashdb-plain_hasher-changes" }
rlp = { git = "https://github.com/paritytech/parity-common", optional = true, branch = "temp/combined-hashdb-plain_hasher-changes" }
twox-hash = { version = "1.1.0", optional = true }
byteorder = { version = "1.1", default_features = false }
blake2-rfc = { version = "0.2.18", optional = true }
wasmi = { version = "0.4", optional = true }
hashdb = { git = "https://github.com/paritytech/parity-common", branch = "refactor/no_std-friendly", default_features = false }
patricia-trie = { git = "https://github.com/paritytech/parity-common", optional = true, branch = "refactor/no_std-friendly" }
plain_hasher = { git = "https://github.com/paritytech/parity-common", branch = "refactor/no_std-friendly", default_features = false }
hashdb = { git = "https://github.com/paritytech/parity-common", branch = "temp/combined-hashdb-plain_hasher-changes", default_features = false }
patricia-trie = { git = "https://github.com/paritytech/parity-common", optional = true, branch = "temp/combined-hashdb-plain_hasher-changes" }
plain_hasher = { git = "https://github.com/paritytech/parity-common", branch = "temp/combined-hashdb-plain_hasher-changes", default_features = false }

[dev-dependencies]
substrate-serializer = { path = "../serializer" }
Expand Down
1 change: 0 additions & 1 deletion substrate/primitives/src/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ impl_rest!(H160, 20);
impl_rest!(H256, 32);
impl_rest!(H512, 64);


#[cfg(test)]
mod tests {
use super::*;
Expand Down
1 change: 0 additions & 1 deletion substrate/primitives/src/uint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ mod tests {
($name::from(1_000), "0x3e8"),
($name::from(100_000), "0x186a0"),
($name::from(u64::max_value()), "0xffffffffffffffff"),
// TODO: `uint` doesn't have the same conversion facilities as `ethereum_types::H256` – need to port over the manual impls from `ethereum-types` to the macro so we can to `1.into()`
($name::from(u64::max_value()) + $name::from(1), "0x10000000000000000"),
];

Expand Down
5 changes: 1 addition & 4 deletions substrate/runtime-io/with_std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ use primitives::H256;

// TODO: use the real error, not NoError.

// REVIEW: The `environmental!` machinery can't really work with generics so need a concrete impl here.
// This means that consumers of the generated code can't use generics either?
environmental!(ext: trait Externalities<BlakeHasher>);

/// Get `key` from storage and return a `Vec`, empty if there's a problem.
Expand Down Expand Up @@ -94,7 +92,6 @@ pub fn chain_id() -> u64 {
}

/// "Commit" all existing operations and get the resultant storage root.
// TODO: this used to be: `pub fn storage_root() -> [u8; 32]` – does it really need to use H256?
pub fn storage_root() -> H256 {
ext::with(|ext|
ext.storage_root()
Expand Down Expand Up @@ -130,7 +127,7 @@ pub fn ed25519_verify<P: AsRef<[u8]>>(sig: &[u8; 64], msg: &[u8], pubkey: P) ->

/// Execute the given closure with global function available whose functionality routes into the
/// externalities `ext`. Forwards the value that the closure returns.
// TODO: need a concrete hasher here due to limitations of the `environmental!` macro, otherwise a type param would have been fine I think.
// NOTE: need a concrete hasher here due to limitations of the `environmental!` macro, otherwise a type param would have been fine I think.
pub fn with_externalities<R, F: FnOnce() -> R>(ext: &mut Externalities<BlakeHasher>, f: F) -> R {
ext::using(ext, f)
}
Expand Down
2 changes: 1 addition & 1 deletion substrate/runtime/council/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ impl<T: Trait> primitives::BuildStorage for GenesisConfig<T>

#[cfg(test)]
mod tests {
// These `pub` are here for a reason, edit with care
// These re-exports are here for a reason, edit with care
pub use super::*;
pub use runtime_io::with_externalities;
pub use substrate_primitives::H256;
Expand Down
4 changes: 0 additions & 4 deletions substrate/runtime/system/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,6 @@ impl<T: Trait> Default for GenesisConfig<T> {
#[cfg(any(feature = "std", test))]
impl<T: Trait> primitives::BuildStorage for GenesisConfig<T>
{
// TODO: I don't think passing a StorageMap instead of a TextExternalities can work here, as
// StorageMap does not implement the Externalities trait, but it compiles and there are no tests
// so…
// fn build_storage(self) -> Result<runtime_io::TestExternalities<BlakeHasher>, String> {
fn build_storage(self) -> Result<primitives::StorageMap, String> {
use codec::Encode;

Expand Down
10 changes: 5 additions & 5 deletions substrate/state-machine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ heapsize = "0.4"

substrate-primitives = { path = "../primitives", version = "0.1.0" }

hashdb = { git = "https://github.com/paritytech/parity-common", branch = "refactor/no_std-friendly" }
memorydb = { git = "https://github.com/paritytech/parity-common", branch = "refactor/no_std-friendly" }
patricia-trie = { git = "https://github.com/paritytech/parity-common", branch = "refactor/no_std-friendly" }
triehash = { git = "https://github.com/paritytech/parity-common", branch = "refactor/no_std-friendly" }
rlp = { git = "https://github.com/paritytech/parity-common", branch = "refactor/no_std-friendly" }
hashdb = { git = "https://github.com/paritytech/parity-common", branch = "temp/combined-hashdb-plain_hasher-changes" }
memorydb = { git = "https://github.com/paritytech/parity-common", branch = "temp/combined-hashdb-plain_hasher-changes" }
patricia-trie = { git = "https://github.com/paritytech/parity-common", branch = "temp/combined-hashdb-plain_hasher-changes" }
triehash = { git = "https://github.com/paritytech/parity-common", branch = "temp/combined-hashdb-plain_hasher-changes" }
rlp = { git = "https://github.com/paritytech/parity-common", branch = "temp/combined-hashdb-plain_hasher-changes" }
1 change: 0 additions & 1 deletion substrate/state-machine/src/trie_backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ pub struct Ephemeral<'a, H: 'a + Hasher> {
overlay: &'a mut MemoryDB<H>,
}

// REVIEW: this is boiler plate, need macro?
impl<'a, H: Hasher> AsHashDB<H> for Ephemeral<'a, H> where H::Out: HeapSizeOf {
fn as_hashdb(&self) -> &HashDB<H> { self }
fn as_hashdb_mut(&mut self) -> &mut HashDB<H> { self }
Expand Down
2 changes: 1 addition & 1 deletion substrate/test-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ substrate-primitives = { path = "../primitives" }
substrate-runtime-support = { path = "../runtime-support" }
substrate-test-runtime = { path = "../test-runtime" }
substrate-runtime-primitives = { path = "../runtime/primitives" }
hashdb = { git = "https://github.com/paritytech/parity-common", branch = "refactor/no_std-friendly" }
hashdb = { git = "https://github.com/paritytech/parity-common", branch = "temp/combined-hashdb-plain_hasher-changes" }