fix(@embark/core): Re-enable regular txs commands/api

https://github.com/embark-framework/embark/pull/1367 introduced a change that prevented the `blockchain_listener` from listening to logs until the IPC server connected. However, the restriction went too far, and included restricting registration of console commands and API endpoints for the regular transactions feature.

This fix reverts the changes that affect registration of regular txs endpoints and console commands.
This commit is contained in:
emizzle 2019-03-11 13:59:02 +11:00 committed by Iuri Matias
parent d61dc6ec2f
commit 236f6e63e2
1 changed files with 3 additions and 1 deletions

View File

@ -26,10 +26,12 @@ class BlockchainListener {
this.ipc.server.once('connect', () => { this.ipc.server.once('connect', () => {
this.processLogsApi = new ProcessLogsApi({embark: this.embark, processName: PROCESS_NAME, silent: true}); this.processLogsApi = new ProcessLogsApi({embark: this.embark, processName: PROCESS_NAME, silent: true});
this._listenToBlockchainLogs(); this._listenToBlockchainLogs();
});
if (this.ipc.isServer()) {
this._listenToCommands(); this._listenToCommands();
this._registerConsoleCommands(); this._registerConsoleCommands();
this._registerApiEndpoint(); this._registerApiEndpoint();
}); }
} }
/** /**