embark-area-51/lib/modules
emizzle 728713a183
Embark blockchain logs when running standalone
When running `embark blockchain` followed by `embark run` previously, logs generated in the standalone `embark blockchain` process were black boxed and not accessible to the main Embark process.

This is fixed by creating a client IPC connection in the `embark blockchain` process that connects to the IPC server connection running in `embark run`. The connection is made by way of polling `ipc.connect` and continues polling even after a connection is made in case `embark run` is killed and restarted without restarting `embark blockchain`.

`LogHandler` was introduced to extrapolate functionality used in `ProcessLauncher` that needed to also be used in the standalone blockchain process. It also caps the number of logs that are stored in memory per process by a constant value defined in `constants.json`.

A `blockchain_listener` was module was created (and run inside of `embark run`) that listens for logs emitted by the `embark blockchain` client IPC and runs them through the `LogHandler`. Additionally, this module registers the API endpoints needed to handle requests for blockchain process logs in the cockpit (which were 404’ing before).

# Conflicts:
#	lib/modules/blockchain_process/blockchain.js
2018-10-25 12:51:43 +02:00
..
authenticator fix(modules/authenticator): ensure request hash doesn't include query params 2018-10-23 11:12:49 +02:00
blockchain_connector display last error found 2018-10-23 18:27:40 -04:00
blockchain_listener Embark blockchain logs when running standalone 2018-10-25 12:51:43 +02:00
blockchain_process Embark blockchain logs when running standalone 2018-10-25 12:51:43 +02:00
code_generator use constants instead of magic numbers 2018-10-22 19:54:47 +02:00
compiler remove console log 2018-10-23 10:15:46 +02:00
console display last error found 2018-10-23 18:27:40 -04:00
console_listener display last error found 2018-10-23 18:27:40 -04:00
contracts_manager display last error found 2018-10-23 18:27:40 -04:00
core_process Addressed PR comments 2018-10-23 10:57:04 +02:00
coverage fix linting 2018-10-23 10:41:22 +02:00
debugger display last error found 2018-10-23 18:27:40 -04:00
deployment rebase fixes 2018-10-23 10:44:13 +02:00
deploytracker Reduce coupling by using action for event 2018-09-22 15:08:50 +01:00
ens fix ENS API 2018-10-23 14:20:42 -04:00
graph fix eslint on EVERYTHING 2018-10-23 10:26:14 +02:00
ipfs fix: make code compile again after rebase 2018-10-23 11:26:15 +02:00
library_manager Add plugins and versions to backend tab 2018-10-23 10:32:02 +02:00
logger_api Rebase updates 2018-10-23 10:57:04 +02:00
pipeline Revert "fix(modules/pipeline): ensure REST file API parses query parameters" 2018-10-23 11:12:53 +02:00
plugin_cmd preprend embark to plugin name 2018-09-13 10:29:03 -04:00
profiler fix linting 2018-10-23 10:41:22 +02:00
scaffolding add error if framework is not supported 2018-10-23 11:11:13 +02:00
scaffolding-react fix array display and setting 2018-10-23 11:12:49 +02:00
scaffolding-solidity add better message at the end 2018-10-23 11:12:49 +02:00
solidity display last error found 2018-10-23 18:27:40 -04:00
specialconfigs fix a couple of bugs caused by bounties 2018-10-22 19:54:48 +02:00
storage chore(modules/storage): make process launcher callback optional 2018-10-23 10:50:41 +02:00
swarm fix missing blockchainConfig pass to StorageLauncher in swarm index 2018-10-23 11:19:15 -04:00
tests fix reset 2018-10-23 11:01:07 -04:00
transactionTracker fix avergae not calculated correctly 2018-10-23 10:41:20 +02:00
vyper Fix the way we pass compiler options instead of assuming via the environment 2018-08-30 13:27:18 -04:00
watcher Do not run webpack for file changes that do not need webpack 2018-10-22 19:54:48 +02:00
webserver Change back how auth works for websockets. 2018-10-23 11:08:22 +02:00
whisper refactor(modules/whisper): use ProcessManager APIs to launch process 2018-10-23 10:58:33 +02:00