mirror of https://github.com/embarklabs/embark.git
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:
parent
d61dc6ec2f
commit
236f6e63e2
|
@ -26,10 +26,12 @@ class BlockchainListener {
|
|||
this.ipc.server.once('connect', () => {
|
||||
this.processLogsApi = new ProcessLogsApi({embark: this.embark, processName: PROCESS_NAME, silent: true});
|
||||
this._listenToBlockchainLogs();
|
||||
});
|
||||
if (this.ipc.isServer()) {
|
||||
this._listenToCommands();
|
||||
this._registerConsoleCommands();
|
||||
this._registerApiEndpoint();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue