fix(@embark/ganache): make embark blockchain exit when using Ganache

This commit is contained in:
Jonathan Rainville 2020-03-05 15:17:06 -05:00 committed by Iuri Matias
parent c624582d12
commit 53dc751981
3 changed files with 3 additions and 4 deletions

View File

@ -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;

View File

@ -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);
});
});
});

View File

@ -130,7 +130,6 @@ export default class ProxyManager {
// HTTP
this.httpProxy = await new Proxy({
endpoint,
events: this.events,
isWs: false,
logger: this.logger,