Merge pull request #6875 from paritytech/warn-blacklisted
warn when blacklisted account present in store
This commit is contained in:
commit
099303a342
@ -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.
|
// Remove blacklisted accounts from address book.
|
||||||
let mut address_book = AddressBook::new(&sstore.local_path());
|
let mut address_book = AddressBook::new(&sstore.local_path());
|
||||||
for addr in &settings.blacklisted_accounts {
|
for addr in &settings.blacklisted_accounts {
|
||||||
|
Loading…
Reference in New Issue
Block a user