embark/lib/modules/blockchain_process
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
..
blockchain.js Embark blockchain logs when running standalone 2018-10-25 12:51:43 +02:00
blockchainProcess.js Add support for Parity 2018-10-22 19:53:49 +02:00
blockchainProcessLauncher.js conflict in api 2018-10-23 10:25:13 +02:00
dev_funds.js Accept standard Ether units and update/add tests 2018-10-22 19:54:43 +02:00
gethClient.js Add message warning user a password is needed to unlock 2018-10-22 19:54:43 +02:00
index.js conflict in api 2018-10-23 10:25:13 +02:00
miner.js Fix datadir for miner 2018-09-20 15:30:06 +10:00
parityClient.js Add support for Parity 2018-10-22 19:53:49 +02:00
proxy.js Listen to contract events 2018-10-23 11:03:29 +02:00
simulator.js supply radix 2018-09-19 21:12:20 -05:00