Fixed transaction propagation (#850)

This commit is contained in:
Arkadiy Paronyan
2018-09-30 17:48:41 +02:00
committed by Gav Wood
parent cad28aa283
commit a5a7dd2480
7 changed files with 39 additions and 6 deletions
+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;
}