2918 Commits

Author SHA1 Message Date
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
Iuri Matias
0ba5f1a1b3
Merge pull request #572 from embark-framework/bug_fix/embark-build-writes-pipeline
Fix for `embark build --contracts` writing into the pipeline
2018-06-25 13:54:07 -04:00
Iuri Matias
2285f3b1c4
Merge pull request #579 from embark-framework/fix_simulator_issue
don't use -h option in simulator
2018-06-25 13:53:47 -04:00
Iuri Matias
351917a5bc don't use -h option due to bug in ethersim fork v2 2018-06-25 13:23:22 -04:00
RJ Catalano
b78971147b
Merge pull request #575 from embark-framework/bug_fix/stop-test-provider
stop provider when resetting providers
2018-06-22 13:13:56 -05:00
RJ Catalano
0c15ee9cef
Merge pull request #574 from embark-framework/bug_fix/graph_ignores_relationships
Fix for --skip-undeployed is not specified
2018-06-22 13:01:01 -05:00
RJ Catalano
c492ed97cc
Merge pull request #571 from embark-framework/bug_fix/upload-fail-solc-plugin
Fix for embark upload failing when embark-solc plugin is installed.
2018-06-22 12:58:06 -05:00
Jonathan Rainville
1e36950e24 stop provider when reseting providers 2018-06-22 13:19:32 -04:00
Jonathan Rainville
1e72a50b3b skip build if cmpile only 2018-06-22 11:12:34 -04:00
Richard Ramos
15d457bf60 Fix for skip-undeployed is not specified 2018-06-22 09:41:53 -04:00
emizzle
53bda087fa Fix for embark build --contracts writing into the pipeline 2018-06-22 15:26:43 +10:00
emizzle
befa8e8f22 Fix for embark upload failing when embark-solc plugin is installed.
It was simply too fast with the solc plugin and the blockchain node was not yet ready before solc would try to compile and deploy, and would error out while estimating gas costs.
2018-06-22 15:17:51 +10:00