Commit Graph

2632 Commits

Author SHA1 Message Date
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
Iuri Matias 9fb19ed78b
Merge pull request #569 from embark-framework/registration
Registrar deployment
2018-06-21 14:45:50 -04:00
VoR0220 e5ad90719b ensure that FIFS doesn't deploy on other test and main networks
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-06-21 12:57:41 -05:00
Iuri Matias 4589803003 put contracts inside the contracts field 2018-06-21 13:24:41 -04:00
VoR0220 e3bdbd520f 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-06-21 11:24:31 -05:00
Iuri Matias 109e5171c4
Merge pull request #566 from embark-framework/features/para-deploy
Async contract deploy (parallel deploy prequel)
2018-06-20 16:57:24 -04:00
Iuri Matias 12d03d8f82
Merge pull request #565 from embark-framework/averageProfile
convert to average
2018-06-20 16:41:00 -04:00
Iuri Matias f16bb2c30b
Merge pull request #564 from embark-framework/features/whisper-cors
Added cors for whisper
2018-06-20 16:40:46 -04:00
Iuri Matias 4122bec122
Merge pull request #568 from embark-framework/next
merge Next
2018-06-20 16:40:23 -04:00
Iuri Matias 1dc5238966
Merge pull request #567 from embark-framework/master
Master
2018-06-20 16:40:10 -04:00
Iuri Matias de39180737 re-add comment 2018-06-20 16:38:26 -04:00
Iuri Matias 1e580bfd23 organize package.json 2018-06-20 16:37:19 -04:00
Iuri Matias b1d9b91890
Merge pull request #561 from embark-framework/bug_fix/intercept-rebased
Fix log interception and enable multi-argument logging #2
2018-06-20 16:34:36 -04:00
Iuri Matias 67118ab019 remove unneded files 2018-06-20 16:30:16 -04:00
Iuri Matias caddd6c11d fix solc version 2018-06-20 16:23:13 -04:00
Iuri Matias a6195d2517 Merge branch 'develop' 2018-06-20 15:55:16 -04:00
VoR0220 b41d6b312c small fix
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-06-20 14:17:05 -05:00
Jonathan Rainville 832e757262 add triple equals 2018-06-20 14:06:15 -04:00
Jonathan Rainville 150b5170c4 fix tests using new dependencies 2018-06-20 13:56:43 -04:00
Jonathan Rainville 4298e18655 make groups of dependencyCount to do async by group 2018-06-20 11:15:47 -04:00
VoR0220 a050a97a62 convert to average
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-06-20 09:38:51 -05:00
emizzle 51eb5a1f65 Added cors for whisper 2018-06-20 16:19:25 +10:00
Iuri Matias 6a5020402f update to 3.1 2018-06-19 17:54:10 -04:00
Iuri Matias de33dc9de2
Merge pull request #563 from embark-framework/disable_ipc_client
disable ipc client in tests
2018-06-19 17:39:54 -04:00
Iuri Matias 650eb5e359 disable ipc client 2018-06-19 17:33:24 -04:00
Iuri Matias aa5063e5ef
Merge pull request #562 from embark-framework/remove_extra_messages
remove extra logs
2018-06-19 15:49:37 -04:00
Iuri Matias 9f16740ead
Merge pull request #559 from embark-framework/warn_wrong_upload_cmd
warn if old upload cmd is used
2018-06-19 15:47:39 -04:00
Iuri Matias 9beaaa2a29 remove extra logs 2018-06-19 15:46:55 -04:00
Jonathan Rainville 8091563bea remove log 2018-06-19 15:01:10 -04:00
Jonathan Rainville 7f2f841e28 intercept logs by adding the name only 2018-06-19 15:01:03 -04:00
Jonathan Rainville cd4bce8d12 enbale multiple arguments in dashboard 2018-06-19 15:00:56 -04:00
Jonathan Rainville 88cc4d05c0 enable logger to log multiple arguments 2018-06-19 15:00:51 -04:00
Iuri Matias 6a031e1dab warn if old cmd is used 2018-06-19 14:07:14 -04:00
Iuri Matias 9574562602
Merge pull request #558 from embark-framework/bug_fix/console-dir-test
Fix testing a directory without ending slash
2018-06-19 11:40:44 -04:00
Iuri Matias d2489f0da8
Merge pull request #557 from embark-framework/bug_fix/hanging-graph
Fix hanging embark graph by starting web3 service
2018-06-19 11:38:21 -04:00
Jonathan Rainville c1f29fdea4 fix test directory without ending slash 2018-06-19 10:58:09 -04:00
Jonathan Rainville 01277f6014 start web3 service so getGasPrice is available 2018-06-19 10:03:46 -04:00