embark-area-51/lib/contracts
emizzle ee59d43c77 Handle geth process exit via crash/kill and also via killing `embark blockchain`
First case - run `embark run` which starts a blockchain node, then manually kill the `geth` process. Would throw `{ [Error: connect ECONNREFUSED 127.0.0.1:8543] message: 'connect ECONNREFUSED 127.0.0.1:8543', code: -32603 }` error and ruins the dashboard.

Second case, 1) run `embark blockchain` 2) run `embark run` 3) kill `embark blockchain` throws the error `{ [Error: connect ECONNREFUSED 127.0.0.1:8543] message: 'connect ECONNREFUSED 127.0.0.1:8543', code: -32603 }` and ruins the dashboard.

The first case was solved by having the child blockchain process that spawns geth listen for geth exit, then kill itself.

The second case required updating of `eth-block-tracker` to v4.0.1 inside of the `embark-web3-provider-engine`. v4.0.1 was a major version update and introduced breaking changes. Those changes were handled inside of `embark-web3-provider-engine`, covered in **blocker** PR https://github.com/jrainville/provider-engine/pull/1.
2018-08-21 15:08:25 -04:00
..
code_templates detect if there is a connection error and pass it down to the ready function 2018-06-29 18:14:08 -04:00
accountParser.js Housekeeping and removal of none additions 2018-07-18 14:08:32 +02:00
blockchain.js Handle geth process exit via crash/kill and also via killing `embark blockchain` 2018-08-21 15:08:25 -04:00
code_generator.js fix metamask check for non dev environment 2018-06-29 18:14:21 -04:00
compiler.js early callback in compiler 2018-05-17 10:02:53 -04:00
contract_deployer.js add triple equals 2018-08-21 15:03:34 -04:00
contracts.js fix tests using new dependencies 2018-08-21 15:03:34 -04:00
deploy_manager.js make groups of dependencyCount to do async by group 2018-08-21 15:03:34 -04:00
fundAccount.js fix lint 2018-07-18 17:53:37 +03:00
provider.js Handle geth process exit via crash/kill and also via killing `embark blockchain` 2018-08-21 15:08:25 -04:00