Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
warn when blacklisted account present in store
Browse files Browse the repository at this point in the history
  • Loading branch information
rphmeier committed Oct 24, 2017
1 parent 097815c commit 0b2da28
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ethcore/src/account_provider/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,13 @@ impl AccountProvider {
}
}

if let Ok(accounts) = self.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 {
Expand Down

0 comments on commit 0b2da28

Please sign in to comment.