Commit Graph

115 Commits

Author SHA1 Message Date
Anthony Laibe d0b76ea4bc Remove code dependencies to underscore 2018-07-24 13:29:06 +01: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
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
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 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
Jonathan Rainville 5fcf234939 remove useless change 2018-07-06 14:48:33 -04: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
Iuri Matias 76ab330546 add debug option 2018-06-18 09:44:16 -04:00
Jonathan Rainville d77083ee8c enable syncMode 2018-06-15 16:33:59 -04:00
VoR0220 391777d5bf fix test app config and swap olympic for rinkeby as testnet option
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-06-15 13:18:37 -05:00
Jonathan Rainville a09f680ca7 fix testnet and olympic network types 2018-06-14 15:22:01 -04:00
Iuri Matias e0ff5b3580 remove anoying backtrace 2018-06-12 13:58:21 -04:00
Iuri Matias 5b1eeab7ed make debug a default api option 2018-06-12 12:21:46 -04:00
Richard Ramos 9e92069667 Fixing conflicts 2018-06-11 16:44:34 -04:00
Richard Ramos 38e6a9571d Updating tests 2018-06-11 16:43:26 -04:00
Richard Ramos 48a3f2afdc Fixing conflicts 2018-06-11 16:43:08 -04:00
Iuri Matias a4985fde40 make proxy mode the default 2018-06-11 16:40:59 -04:00
Richard Ramos 0f853ba841 Typo 2018-06-11 16:40:59 -04:00
Richard Ramos c1621c4029 Websocket support 2018-06-11 16:40:59 -04:00
Richard Ramos bf25381fa6 Rebasing changes from develop 2018-06-11 16:40:14 -04:00
Richard Ramos 05f5a145f1 Added proxy to blockchain 2018-06-11 16:38:29 -04:00
emizzle a11047c681 Further fixes for starting dappConnection processes automatically
moved storage process launching to storage module

refactored all cases of storage url building to util methods

updated cors so that a processes will not include itself in cors list

changed child process command console output to trace, so it's visible when --logLevel == trace
2018-06-01 13:36:46 +10:00
emizzle 927f562a41 Fixed issue with CORS domains for auto-started geth, swarm, and ipfs processes.
Fixes after rebase:
* De-duped i18n en.json
* Re-built package-lock.json

Current WIP is auto-starting storage processes defined in dappConnection config.
2018-06-01 13:35:25 +10:00
Jonathan Rainville 138aaf39ff fix processes on ubuntu 2018-05-30 11:03:33 -04:00
Jonathan Rainville 2f3a94f3a1 little fixes 2018-05-30 11:03:33 -04:00
Jonathan Rainville 2023689eb2 fix tests 2018-05-30 11:03:33 -04:00
Jonathan Rainville 8655b49a39 change ipfs to spawn too 2018-05-30 11:03:33 -04:00
Jonathan Rainville 3f671c2fb0 conflict in en.json 2018-05-30 11:03:33 -04:00
Jonathan Rainville d36af9f5e1 fix blockchain start 2018-05-30 11:03:33 -04:00
Jonathan Rainville 4e20e82edf conflict in blockchain 2018-05-30 11:03:33 -04:00
Jonathan Rainville e67fafdc29 conflict in en.json 2018-05-30 10:57:25 -04:00