mirror of https://github.com/embarklabs/embark.git
fix(@embark/ganache): make embark blockchain exit when using Ganache
This commit is contained in:
parent
c624582d12
commit
53dc751981
|
@ -20,7 +20,7 @@ class Ganache {
|
|||
this._registerStatusCheck();
|
||||
this._getProvider(); // No need to return anything, we just want to populate currentProvider
|
||||
this.embark.logger.info(__('Blockchain node is ready').cyan);
|
||||
cb();
|
||||
cb(null, true);
|
||||
},
|
||||
stopFn: (cb) => {
|
||||
this.currentProvider = null;
|
||||
|
|
|
@ -78,9 +78,9 @@ export default class Blockchain {
|
|||
return cb(null, true);
|
||||
}
|
||||
// start node
|
||||
client.launchFn.call(client, () => {
|
||||
client.launchFn.call(client, (_err, isVM) => {
|
||||
started();
|
||||
cb();
|
||||
cb(null, isVM);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -130,7 +130,6 @@ export default class ProxyManager {
|
|||
|
||||
// HTTP
|
||||
this.httpProxy = await new Proxy({
|
||||
endpoint,
|
||||
events: this.events,
|
||||
isWs: false,
|
||||
logger: this.logger,
|
||||
|
|
Loading…
Reference in New Issue