Do not try to synchronize from light client (#2039)

* do not try to sync from light node

* use Roles' utility methods
This commit is contained in:
Svyatoslav Nikolsky
2019-05-14 15:41:11 +03:00
committed by Gavin Wood
parent 5bde98e95a
commit a29fd10859
8 changed files with 109 additions and 34 deletions
+1 -1
View File
@@ -169,7 +169,7 @@ impl<Components: components::Components> Service<Components> {
Components::build_transaction_pool(config.transaction_pool.clone(), client.clone())?
);
let transaction_pool_adapter = Arc::new(TransactionPoolAdapter::<Components> {
imports_external_transactions: !(config.roles == Roles::LIGHT),
imports_external_transactions: !config.roles.is_light(),
pool: transaction_pool.clone(),
client: client.clone(),
});