Commit Graph

2879 Commits

Author SHA1 Message Date
Jonathan Rainville 08358fce0a fix account initialization and address use 2018-07-03 15:00:57 -04:00
Iuri Matias 91cec97a76
Merge pull request #594 from embark-framework/bad_connection_handling
handle connection error
2018-06-29 18:38:42 -04:00
Iuri Matias f43b924477 fix metamask check for non dev environment 2018-06-29 18:00:21 -04:00
Iuri Matias aff102a169 detect if there is a connection error and pass it down to the ready function 2018-06-29 17:49:17 -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 a4bf8b367d hotfix blockchain configs for privatenet 2018-06-29 14:17:59 -04:00
Jonathan Rainville 62c6b57f45 conflict in provider 2018-06-29 13:56:22 -04:00
Iuri Matias dfff83d42d
Merge pull request #590 from embark-framework/features/old-mining
Go back to old mining and use IPC to tell geth when to mine
2018-06-29 11:26:47 -04:00
Jonathan Rainville 9fcd2472b1
Merge pull request #591 from embark-framework/improve_metamask_warning
improve metamask warning
2018-06-29 08:15:03 -04:00
Jonathan Rainville dee09a87f5 change templates to add privatenet 2018-06-28 10:40:40 -04:00
Jonathan Rainville e7eee572f4 fix when using mining script 2018-06-28 10:37:10 -04:00
Iuri Matias 892285d415 improve metamask warning 2018-06-28 09:50:09 -04:00
Jonathan Rainville f29760e051 fix miner 2018-06-28 09:17:19 -04:00
Jonathan Rainville aea3671bd8 update templates to use isDev false 2018-06-27 14:44:01 -04:00
Jonathan Rainville 38d5137294 remove mine script 2018-06-27 14:34:41 -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 b6a6bf3e02 revert caca code 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 87474aa291 fix indentation 2018-06-27 14:31:42 -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
Iuri Matias 8cb372f9ef
Merge pull request #587 from embark-framework/features/remove-p-iterations-from-library
Removed p-iteration from embark altogether
2018-06-26 22:10:11 -04:00
emizzle e0fcafb8c4 linting 2018-06-27 11:10:33 +10:00
emizzle 9f33a05d82 Removed p-iteration from embark altogether.
Replaced usage in storage module (on dapp side) with async.js `detectSeries`
2018-06-27 10:51:53 +10:00
Iuri Matias 4b693867b1
Merge pull request #586 from embark-framework/decrease_ping_time
reduce ping time so processes die faster
2018-06-26 16:53:49 -04:00
Iuri Matias d4628bf20e reduce ping time so processes die faster 2018-06-26 16:46:21 -04:00
Iuri Matias 3bea80a820
Merge pull request #573 from embark-framework/bug_fix/blockchain-kill-causes-error
Handle geth process exit via crash/kill and also via killing `embark blockchain`
2018-06-26 16:24:11 -04:00
Iuri Matias 88132b7b6a
Merge pull request #581 from embark-framework/bug_fix/whisper-cors
When communication is disabled in config, do not run the module in em…
2018-06-26 16:23:06 -04:00
Iuri Matias 2250e87294
Merge pull request #582 from embark-framework/bug_fix/simple-ipfs-active-when-disabled
Abandons all storage initialisation routines if storage is disabled i…
2018-06-26 16:19:41 -04:00
RJ Catalano 518e96585c
Merge pull request #585 from embark-framework/gracefullyErrorENS
small correction
2018-06-26 15:19:02 -05:00
VoR0220 b86ae2e9f6 fixup
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-06-26 14:56:23 -05:00
VoR0220 93feea7c6d small correction
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-06-26 14:44:29 -05:00
RJ Catalano 2c6bdc3204
Merge pull request #584 from embark-framework/fixDeploymentAttempts
make it so that FIFSRegistrar isn't attempted to be deployed on liven…
2018-06-26 13:53:49 -05:00
RJ Catalano d86bbe27ce
Merge pull request #580 from embark-framework/gracefullyErrorENS
Gracefully error ens
2018-06-26 13:53:38 -05:00
VoR0220 48a6e10f9f make it so that FIFSRegistrar isn't attempted to be deployed on livenet, ropsten, etc.
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-06-26 13:32:53 -05:00
VoR0220 5e7cd6a88b get rid of else
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-06-26 13:28:28 -05:00
RJ Catalano 8bf79e704d fix line 2018-06-26 13:26:36 -05:00
VoR0220 1d7851e2ff catch errors and handle gracefully in ENS 2018-06-26 13:26:36 -05:00
RJ Catalano d12271e85d
Merge pull request #583 from embark-framework/fix_ens_js
(re)add Fix to ens js
2018-06-26 13:17:45 -05:00
Iuri Matias ac6aeaac50 make linter happy 2018-06-26 13:47:01 -04:00
Iuri Matias e2ab4c4fa3 use EmbarkJS to initialize ens contracts and set ens contract only when embark is ready 2018-06-26 13:45:23 -04:00
emizzle 6f539198da Abandons all storage initialisation routines if storage is disabled in config. 2018-06-26 14:26:54 +10:00
emizzle d32708fcde When communication is disabled in config, do not run the module in embark.
Previous to this change, `Geth: WARN [06-25|16:46:26] origin 'embark' not allowed on WS-RPC interface` would appear in the logs when the module was run while disabled.

Updated the cors component so that when `rpcCorsDomain` and `wsOrigins` are set to `'auto'`, and all components are disabled `rpcCorsDomain` and `wsOrigins` are passed as a null parameter to geth as opposed to being passed as `'auto'`.
2018-06-26 13:34:52 +10: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
Jonathan Rainville fe22a40146 update provider version 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