Skip to content

Conversation

mcmire
Copy link
Contributor

@mcmire mcmire commented May 12, 2023

Description

NetworkController features asynchronous behavior that can be quite tricky to debug. Specifically, for a brief moment in time, more than one network may be "active" simultaneously. This can happen if the network is switched before the code responsible for establishing a preconfigured network (triggered via initializeProvider or one of the several ways to switch the network) has yet to complete. This logging should aid us in writing and debugging this behavior.

Changes

There should be no functional changes.

References

Relates to #1375.

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation for new or updated code as appropriate (note: this will usually be JSDoc)
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

NetworkController features asynchronous behavior that can be quite
tricky to debug. Specifically, for a brief moment in time, more than one
network may be "active" simultaneously. This can happen if the network
is switched before the code responsible for establishing a preconfigured
network (triggered via `initializeProvider` or one of the several ways
to switch the network) has yet to complete. This logging should aid us
in writing and debugging this behavior.
@mcmire
Copy link
Contributor Author

mcmire commented May 16, 2023

After discussion, we determined that this was a lower priority PR to merge.

@mcmire
Copy link
Contributor Author

mcmire commented May 19, 2023

I'll keep working on this to add the logger to the network client instead of the provider, but this isn't high priority — we can always add this after the merge.

@desi desi added the team-wallet-framework Deprecated: Please use `team-core-platform` instead. label Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-wallet-framework Deprecated: Please use `team-core-platform` instead.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants