Skip to content
Snippets Groups Projects
Commit 2e728005 authored by Arkadiy Paronyan's avatar Arkadiy Paronyan Committed by Gav Wood
Browse files

Fixed transaction propagation (#854)

parent da2469b8
Branches
No related merge requests found
...@@ -416,7 +416,7 @@ impl<C: Components> network::TransactionPool<ComponentExHash<C>, ComponentBlock< ...@@ -416,7 +416,7 @@ impl<C: Components> network::TransactionPool<ComponentExHash<C>, ComponentBlock<
Err(e) => match e.into_pool_error() { Err(e) => match e.into_pool_error() {
Ok(e) => match e.kind() { Ok(e) => match e.kind() {
transaction_pool::ErrorKind::AlreadyImported(hash) => transaction_pool::ErrorKind::AlreadyImported(hash) =>
Some(::std::str::FromStr::from_str(&hash).map_err(|_| {}) Some(::std::str::FromStr::from_str(&hash[2..]).map_err(|_| {})
.expect("Hash string is always valid")), .expect("Hash string is always valid")),
_ => { _ => {
debug!("Error adding transaction to the pool: {:?}", e); debug!("Error adding transaction to the pool: {:?}", e);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment