This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 676
fix: rearchitect server status and move async functions from constructors to initialize functions #877
Merged
mikeseese
merged 13 commits into
develop
from
fix/server-and-initialization-rearchitecture
Mar 30, 2021
Merged
fix: rearchitect server status and move async functions from constructors to initialize functions #877
mikeseese
merged 13 commits into
develop
from
fix/server-and-initialization-rearchitecture
Mar 30, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Mar 26, 2021
mikeseese
added a commit
that referenced
this pull request
Mar 26, 2021
davidmurdoch
suggested changes
Mar 29, 2021
davidmurdoch
suggested changes
Mar 30, 2021
mikeseese
added a commit
that referenced
this pull request
Mar 30, 2021
davidmurdoch
approved these changes
Mar 30, 2021
mikeseese
added a commit
that referenced
this pull request
Mar 30, 2021
mikeseese
added a commit
that referenced
this pull request
Mar 30, 2021
mikeseese
added a commit
that referenced
this pull request
Mar 30, 2021
…nc-init implement #877 async init changes for the filecoin flavor
sambacha
pushed a commit
to contractshark/ganache-core
that referenced
this pull request
Apr 14, 2021
* chore: point community link at our discord channel (trufflesuite#874) * chore(deps): bump y18n from 4.0.0 to 4.0.1 (trufflesuite#884) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix: rearchitect server status and move async functions from constructors to initialize functions (trufflesuite#877) * feat: add filecoin flavor (trufflesuite#888) Co-authored-by: David Murdoch <davidmurdoch@users.noreply.github.com> Co-authored-by: David Murdoch <187813+davidmurdoch@users.noreply.github.com> Co-authored-by: Tim Coulter <tim@timothyjcoulter.com> * fix: support a uws fallback if uws native binaries don't exist (win+electron) (trufflesuite#893) Co-authored-by: David Murdoch <187813+davidmurdoch@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mike Seese <seesemichaelj@gmail.com> Co-authored-by: David Murdoch <davidmurdoch@users.noreply.github.com> Co-authored-by: Tim Coulter <tim@timothyjcoulter.com>
sambacha
pushed a commit
to contractshark/ganache-core
that referenced
this pull request
Apr 15, 2021
* chore: point community link at our discord channel (trufflesuite#874) * chore(deps): bump y18n from 4.0.0 to 4.0.1 (trufflesuite#884) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix: rearchitect server status and move async functions from constructors to initialize functions (trufflesuite#877) * feat: add filecoin flavor (trufflesuite#888) Co-authored-by: David Murdoch <davidmurdoch@users.noreply.github.com> Co-authored-by: David Murdoch <187813+davidmurdoch@users.noreply.github.com> Co-authored-by: Tim Coulter <tim@timothyjcoulter.com> * fix: support a uws fallback if uws native binaries don't exist (win+electron) (trufflesuite#893) Co-authored-by: David Murdoch <187813+davidmurdoch@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mike Seese <seesemichaelj@gmail.com> Co-authored-by: David Murdoch <davidmurdoch@users.noreply.github.com> Co-authored-by: Tim Coulter <tim@timothyjcoulter.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was driven by having an issue incorporating Ganache v7 into Ganache UI. If there was an error before the
Server.status
was set toopening
, but the constructors started async operations (i.e. opening the database), then things would get locked without the ability to be closed properly duringServer.close()
So this PR does a couple of things:
Status
enum to be more accurate and appropriateinitialize
functions so that we can guarantee that we can appropriately close things when things failGanache.provider()
to become asynchronous by nature. It always "was" and the work around was to use an event emitter to say when things were ready. This may get modified to go back to the old way (while still keeping the other benefits added in this PR) to maintain back-compatibility. However that decision is still waiting on feedback from the rest of the team. This PR won't get merged until the final direction has been decided and implemented in this PR. In the meantime, the other parts can be reviewed.