Merge pull request #6875 from paritytech/warn-blacklisted

warn when blacklisted account present in store
This commit is contained in:
Robert Habermeier 2017-11-07 11:23:20 -06:00 committed by GitHub
commit 099303a342
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,6 +178,13 @@ impl AccountProvider {
}
}
if let Ok(accounts) = sstore.accounts() {
for account in accounts.into_iter().filter(|a| settings.blacklisted_accounts.contains(&a.address)) {
warn!("Local Account {} has a blacklisted (known to be weak) address and will be ignored",
account.address);
}
}
// Remove blacklisted accounts from address book.
let mut address_book = AddressBook::new(&sstore.local_path());
for addr in &settings.blacklisted_accounts {