2409 Commits

Author SHA1 Message Date
VoR0220
0b2ee0c2b5 catch errors and handle gracefully in ENS 2018-09-30 09:20:12 -04:00
emizzle
3d5ce687c1 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-09-30 09:20:12 -04:00
emizzle
5022012a6c 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-30 09:20:12 -04:00
Richard Ramos
9019f6d722 Fix for skip-undeployed is not specified 2018-09-30 09:20:12 -04:00
VoR0220
3efc02d97a ensure that FIFS doesn't deploy on other test and main networks
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-09-30 09:20:12 -04:00
Iuri Matias
722e1a2011 put contracts inside the contracts field 2018-09-30 09:20:12 -04:00
VoR0220
1adb91ef65 bare bones bulk registration example spec
Signed-off-by: VoR0220 <catalanor0220@gmail.com>

add registrars to system

Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-09-30 09:20:12 -04:00
Jonathan Rainville
019a564887 fix tests using new dependencies 2018-09-30 09:18:45 -04:00
Jonathan Rainville
fc85fc1082 make groups of dependencyCount to do async by group 2018-09-30 09:18:45 -04:00
VoR0220
f9feb7ff91 callback fixes and get rid of resolver interface
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-09-30 09:18:45 -04:00
VoR0220
9f767b5145 more unnecessary contracts gotten rid of, and fixes made to Embarkjs file
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-09-30 09:18:45 -04:00
VoR0220
d02be3a4dd get rid of unnecessary contracts for this iteration
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-09-30 09:18:45 -04:00
VoR0220
98b7ca1253 get rid of global web3 in ens
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-09-30 09:18:45 -04:00
VoR0220
984c8ba115 get rid of register for now
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-09-30 09:18:45 -04:00
VoR0220
63a8546151 temp commit
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-09-30 09:18:45 -04:00
VoR0220
4a99f61d2c starting to create registration and some changes to the deployment
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-09-30 09:18:45 -04:00
VoR0220
362d500b66 attempt at deploying on dev net
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-09-30 09:18:45 -04:00
VoR0220
751e413a82 add ens contracts
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-09-30 09:18:45 -04:00
Iuri Matias
8518e4aa2a fixes due to bad rebase 2018-09-30 09:18:45 -04:00
Iuri Matias
71a5532454 fixes due to bad rebase 2018-09-30 08:54:44 -04:00
Iuri Matias
f5883bdd1c fixes due to bad rebase 2018-09-30 08:53:22 -04:00
Iuri Matias
f86d035702 fixes due to bad rebase 2018-09-30 08:51:07 -04:00
Richard Ramos
148b00c73c Addid basic templating to start building UI from here 2018-09-30 08:46:40 -04:00
Richard Ramos
f934b5be6c Adding base command logic for scaffolding generation 2018-09-30 08:43:10 -04:00
Anthony Laibe
9fdd2e26e5 Add IPNS demo 2018-09-30 08:34:59 -04:00
Iuri Matias
dddd49a560 move processes into core 2018-09-30 08:34:59 -04:00
Iuri Matias
45cc43bfc8 move blockchain connection code to its own module 2018-09-30 08:33:35 -04:00
Iuri Matias
b2bf717728 move blockchain process to own module 2018-09-29 22:26:08 -04:00
Iuri Matias
d119aa7093 first stab at refactor blockchain launcher 2018-09-29 22:25:32 -04:00
Jonathan Rainville
8879744048 only enabble register in dev 2018-09-29 22:20:50 -04:00
Jonathan Rainville
0405b4364f small cleanups 2018-09-29 22:18:54 -04:00
Jonathan Rainville
b1663af485 if no register config, dont register anything 2018-09-29 22:13:11 -04:00
Anthony Laibe
7af786e095 Remove code dependencies to underscore 2018-09-29 22:12:34 -04:00
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
Jonathan Rainville
189e5f1b16 conflict in package json 2018-09-29 22:06:49 -04:00
emizzle
55bd1e9b21 Removed p-iteration from embark altogether.
Replaced usage in storage module (on dapp side) with async.js `detectSeries`
2018-09-29 22:04:18 -04:00
Iuri Matias
f3f0e8c19f rebase fixes 2018-09-29 21:13:55 -04:00
Iuri Matias
46a24d9bae fix lint 2018-09-29 21:02:41 -04:00
Iuri Matias
79360ae3c2 fixes due to bad rebase 2018-09-29 20:55:31 -04:00
Iuri Matias
0c25ae2bbf fixes due to bad rebase 2018-09-29 20:55:31 -04:00
Iuri Matias
97b19d4a69 fixes due to bad rebase 2018-09-29 20:47:49 -04:00
Iuri Matias
755a733f76 fixes due to bad rebase 2018-09-29 20:46:53 -04:00
Iuri Matias
85e097f84c fixes due to bad rebase 2018-09-29 20:41:21 -04:00
Richard Ramos
9c51a6dc10 Changes based on code review
- Style changes for not requiring "else" in handlebar helpers
- Changed build to async
2018-09-29 20:37:08 -04:00
Richard Ramos
3f2f21a202 Fixing template 2018-09-29 20:37:08 -04:00
Richard Ramos
00cc39ea09 Reorganizing template 2018-09-29 20:37:08 -04:00
Richard Ramos
588f038fc0 Simplified error handling 2018-09-29 20:37:08 -04:00
Richard Ramos
a8aae82f2f Uncommented error throwing 2018-09-29 20:37:08 -04:00
Richard Ramos
ebc7c4c19a Fixed plugin loading logic 2018-09-29 20:37:08 -04:00