Commit Graph

173 Commits

Author SHA1 Message Date
Iuri Matias 49791c916a simplify: mv reset code into index 2018-07-27 15:18:21 -04:00
Iuri Matias f589f68330 move graph into a module 2018-07-27 14:55:50 -04:00
Iuri Matias f6efb3471a move proxy out of core 2018-07-27 14:55:50 -04:00
Iuri Matias 5a0991c41f move blockchain process related files into blockchain module 2018-07-27 14:55:01 -04:00
Michael Bradley, Jr 98318c6c05 blockchain -- defaultHost, dockerHostSwap 2018-07-26 14:27:50 -05:00
Michael Bradley, Jr e5b1a58b25 simulator -- defaultHost, dockerHostSwap 2018-07-26 14:27:50 -05:00
Anthony Laibe d0b76ea4bc Remove code dependencies to underscore 2018-07-24 13:29:06 +01:00
Michael Bradley, Jr d78c9bd74a set the host flag for ganache-cli 2018-07-12 16:04:19 -05:00
Michael Bradley, Jr 33048b01b7 rm commented code and extra whitespace 2018-07-12 16:03:56 -05:00
Michael Bradley, Jr 25df152826 disable dead code path -- ganache will never be falsy 2018-07-12 15:14:40 -05:00
Michael Bradley, Jr 28036bb530 dont' need shelljs.which, can directly invoke embark's node_modules/.bin/ganache-cli 2018-07-12 15:14:40 -05:00
Iuri Matias ff7a4bd1dd
Merge pull request #620 from embark-framework/features/bin-entry-ganache-cli
Features/bin entry ganache cli
2018-07-11 21:27:26 +03:00
Iuri Matias 99af5f1817
Merge pull request #622 from embark-framework/features/ens-demo
Add ENS to Demo app and also add small fix
2018-07-11 21:20:25 +03:00
Iuri Matias 0d5b3293af
Merge pull request #621 from embark-framework/security/update-deps
Update dependencies
2018-07-11 21:16:21 +03:00
Michael Bradley, Jr 5e9573733e include old `const ganache =` line in original pos wrt disabled code 2018-07-11 13:08:48 -05:00
Michael Bradley, Jr 765c7c4e4c comment out `testrpc` (no-unused-vars) 2018-07-11 13:08:15 -05:00
Michael Bradley, Jr 1cae5bb02e Embark's own ganache-cli will always be found 2018-07-11 13:01:27 -05:00
Michael Bradley, Jr 2072dff753 embark-ganache-cli -> ganache-cli-embark 2018-07-11 12:55:08 -05:00
Michael Bradley, Jr 319899cfb7 always use Embark's own ganache-cli (embark-ganache-cli) 2018-07-11 11:17:07 -05:00
Andre Medeiros 317268a740 Linting 2018-07-11 11:44:06 -04:00
Andre Medeiros 21da13ab69 Fix failing test on blockchain 2018-07-11 11:38:58 -04:00
Michael Bradley, Jr b98101ea3a program -> program, programName 2018-07-11 10:32:47 -05:00
Michael Bradley, Jr 5e1f53a7d8 check for ganache-cli on PATH and fallback to embark-ganache-cli 2018-07-11 10:32:00 -05:00
Jonathan Rainville ffbec61554 wip changes 2018-07-10 15:59:42 -04:00
Jonathan Rainville 2a6d1cf3fe remove use of initConfig 2018-07-10 08:49:08 -04:00
Iuri Matias e2c0297df5 fix extractZip 2018-07-09 16:30:27 +03:00
Iuri Matias d40ae2f374
Merge pull request #606 from embark-framework/bug_fix/events-dont-wrok
Fix events usage with websocket providers
2018-07-07 00:17:54 +03:00
Iuri Matias 82df17b376
Merge pull request #603 from embark-framework/template_downloader
Template downloader
2018-07-07 00:11:51 +03:00
Jonathan Rainville 5fcf234939 remove useless change 2018-07-06 14:48:33 -04:00
Iuri Matias a4b95d13d5 use utils extractZip instead of lib directly 2018-07-06 17:54:52 +03:00
Iuri Matias 440baeb323 refactor install template code 2018-07-06 11:52:47 +03:00
Iuri Matias 215799f2bd make linter happy 2018-07-06 11:41:37 +03:00
Iuri Matias ee81b7e209 add support to download a template 2018-07-06 11:38:09 +03:00
Iuri Matias 0f6ea45f33 check for cmd not found in stderr 2018-07-04 16:46:02 +03:00
Iuri Matias ace329ec6e make linter happy 2018-07-04 16:37:09 +03:00
Iuri Matias 1a8989361e ignore stderr since geth outputs normal logs to it 2018-07-04 16:13:22 +03:00
Jonathan Rainville 08358fce0a fix account initialization and address use 2018-07-03 15:00:57 -04:00
Jonathan Rainville 92c8f00ba8 wip fixes 2018-06-29 17:09:19 -04:00
Jonathan Rainville 962a9c5b11 fix syncmode 2018-06-29 16:42:01 -04:00
Jonathan Rainville e7eee572f4 fix when using mining script 2018-06-28 10:37:10 -04:00
Jonathan Rainville f29760e051 fix miner 2018-06-28 09:17:19 -04:00
Jonathan Rainville 95b20e2db9 only put isDev when specifically set 2018-06-27 14:32:21 -04:00
Jonathan Rainville 1c801bc10f make it work 2018-06-27 14:32:21 -04:00
Jonathan Rainville 26b6ff9044 change fund account function 2018-06-27 14:32:21 -04:00
Jonathan Rainville b121f1dbe5 add geth miner. Needs to change eth and web3 2018-06-27 14:32:21 -04:00
Jonathan Rainville e9b4179af9 use right path depending of os 2018-06-27 14:32:21 -04:00
Jonathan Rainville 02e4c0257f conflict in package json 2018-06-27 14:32:13 -04:00
Jonathan Rainville b19c073b02 fix initChain to not always generate an account and the genesis block 2018-06-27 14:31:42 -04:00
emizzle f67a807ac8 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-06-26 13:02:41 +10:00
emizzle 4ce7a179fd 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-06-26 13:02:41 +10:00