-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Give accounts precedence over address_book entries #3732
Conversation
@@ -37,7 +37,7 @@ class IdentityName extends Component { | |||
render () { | |||
const { address, accountsInfo, tokens, empty, name, shorten, unknown, className } = this.props; | |||
const account = accountsInfo[address] || tokens[address]; | |||
const hasAccount = account && (!account.meta || !account.meta.deleted); | |||
const hasAccount = account && (account.uuid || !account.meta || !account.meta.deleted); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think isAccount
would be more intuitive here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hasAccount
is perfectly acceptable (as it is in the current codebase) since it indicates that the account is in the acocuntsInfo list.
Wontfix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In addition https://github.com/ethcore/parity/pull/3739 removes the line (in this specific file as well as all the others that has the same hasAccount
check & naming completely)
@@ -57,7 +57,7 @@ impl<C: 'static> ParityAccounts for ParityAccountsClient<C> where C: MiningBlock | |||
let info = try!(store.accounts_info().map_err(|e| errors::account("Could not fetch account info.", e))); | |||
let other = store.addresses_info().expect("addresses_info always returns Ok; qed"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated but this proof seems a bit strange
Rust side LGTM |
marked grumble from @derhuerst comment |
Will be removed anyway. |
parity_accountsInfo
to return entries where accounts have a higher/overriding priority over address_book.json entries