29 Commits

Author SHA1 Message Date
Jonathan Rainville
f98d3826dd remove provider-engine as it has been creating lots of issues 2018-09-29 22:08:39 -04:00
Jonathan Rainville
500ef163a7 wip fixes 2018-09-29 22:07:27 -04:00
Iuri Matias
50124435d8 move blockchain connection code to its own module 2018-09-29 20:33:25 -04:00
Iuri Matias
0928bb73b7 move accountParser to utils 2018-09-29 20:28:53 -04:00
Jonathan Rainville
e8134556da fix webserver errors 2018-09-29 19:47:39 -04:00
Jonathan Rainville
bde03ea646 remove provider-engine as it has been creating lots of issues 2018-09-29 19:47:39 -04:00
Jonathan Rainville
15ba457f60 wip fixes 2018-09-29 19:46:13 -04:00
emizzle
ffa2c44c96 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-09-29 19:42:50 -04:00
Iuri Matias
4919114f36 move blockchain connection code to its own module 2018-08-21 16:04:22 -04:00
Iuri Matias
b0a71a86d4 move accountParser to utils 2018-08-21 16:04:22 -04:00
Jonathan Rainville
4f4cb094d6 fix webserver errors 2018-08-21 15:29:32 -04:00
Jonathan Rainville
15ad24f002 wip working 2018-08-21 15:28:02 -04:00
Jonathan Rainville
26243e21e0 remove provider-engine as it has been creating lots of issues 2018-08-21 15:28:02 -04:00
Jonathan Rainville
01900f8c6e wip fixes 2018-08-21 15:26:31 -04:00
Jonathan Rainville
0e973dd908 conflict in provider 2018-08-21 15:22:07 -04:00
emizzle
bcd5593040 Updated online/offline event checks so they are run during initialisation.
Changed the online event to `once` and set it to be bound every time the node goes offline.

The above changes handle the case where:
1) `embark run` runs and starts geth.
2) geth is killed manually
3) `embark blockchain` is run in separate process to restart geth
4) the `embark run` process detects this change and restarts the web3 provider and recompiles/deploys/builds

Every time `embark blochain` is restarted, an error is appended and all are emitted from the `eth-block-tracker`. This is a bug but can't figure out where it originates. The downside is that if, for example, `embark blockchain` is restarted 4 times, there will be 4 errors emitted from the `eth-block-tracker`. Because of this, errors emitted from `eth-block-tracker` have been reduced to trace to avoid clogging the logs.
2018-08-21 15:08:25 -04:00
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
Jonathan Rainville
7abdc9e0e6 set a limit funding 2018-08-14 14:05:21 -04:00
Jonathan Rainville
a988962aed change package name 2018-06-18 09:26:17 -04:00
Jonathan Rainville
c8c0a5c42f enable websocket provider 2018-06-15 14:35:50 -04:00
Jonathan Rainville
1b89199f50 fund accounts in wallet using contracts config 2018-06-07 13:06:09 -04:00
Jonathan Rainville
bfc8663a61 change account funding order to enable starting a node before 2018-06-07 12:55:07 -04:00
Jonathan Rainville
47591a39dd restart web3 service on proces launch 2018-05-23 11:17:01 -04:00
Jonathan Rainville
6c1d9d9b39 rename startProvider to startWeb3Provider 2018-05-18 13:39:35 -04:00
Jonathan Rainville
09cdab7e2b fund account only in dev 2018-05-18 13:39:35 -04:00
Jonathan Rainville
6c8653ef09 move code to front end. funds on provider start 2018-05-18 13:39:34 -04:00
Jonathan Rainville
418c55851b remove warning when dev 2018-05-18 13:39:34 -04:00
Jonathan Rainville
c3c4518cb4 move account parsing to its own module 2018-05-18 13:38:53 -04:00
Jonathan Rainville
38dffb9eed move provider to contracts 2018-05-15 12:45:38 -04:00