-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix opt.tuiEndpoint references, and entropy reloading #281
Conversation
const currentAccount = entropy?.keyring?.accounts?.registration?.address | ||
if (currentAccount && currentAccount !== storedConfig.selectedAccount) { | ||
const currentAccount = findAccountByAddressOrName( | ||
storedConfig.accounts, | ||
entropy?.keyring?.accounts?.registration?.address | ||
) | ||
if (currentAccount && currentAccount.name !== storedConfig.selectedAccount) { | ||
await entropy.close() | ||
entropy = await loadEntropy(storedConfig.selectedAccount, options.tuiEndpoint); | ||
entropy = await loadEntropy(storedConfig.selectedAccount, options.endpoint); | ||
} | ||
|
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.
This was the major tui slowdown. selectedAccount
is stored as account.name
now, not account.address
, so this was if (true)
meaning loadEntropy
was always being called another time
This doubled tui startup from 2s => 4s, which felt stink!
Hmm, second time I've see that in CI:
|
Have added a commit which blocks the writing of bad config (some) |
No description provided.