Fixed transaction propagation (#850)

This commit is contained in:
Arkadiy Paronyan authored and Gav Wood committed 2018-09-30 16:48:41 +01:00
1 parent cad28aa283
commit a5a7dd2480
7 files changed
+39 -6

No files matched your search

+2 -1
View File
@@ -158,7 +158,7 @@ impl<Components> Service<Components>
Components::build_transaction_pool(config.transaction_pool, client.clone())?
);
let transaction_pool_adapter = TransactionPoolAdapter::<Components> {
imports_external_transactions: !config.roles == Roles::LIGHT,
imports_external_transactions: !(config.roles == Roles::LIGHT),
pool: transaction_pool.clone(),
client: client.clone(),
};
@@ -404,6 +404,7 @@ impl<C: Components> network::TransactionPool<ComponentExHash<C>, ComponentBlock<
fn import(&self, transaction: &ComponentExtrinsic<C>) -> Option<ComponentExHash<C>> {
if !self.imports_external_transactions {
debug!("Transaction rejected");
return None;
}