Pascal Precht
9337914b6e
chore(blockchainProcess): improve error message when blockchain client exits early
...
In cases a blockchain client exits before Embark is done doing its work,
the current error message doesn't provide any pointers to why this
happened.
Running `$ embark blockchain` separately could yield more information by
the underlying process.
2018-10-05 19:16:08 +02:00
Michael Bradley, Jr
ea6a63f754
Boolean() -> !!
2018-09-27 16:57:02 -05:00
Iuri Matias
b1b02f7518
restore ws functionality to webserver
2018-09-27 17:06:51 -04:00
Iuri Matias
71cbb07ad8
Merge pull request #878 from embark-framework/bug_fix/minewhenneeded-fixes-3
...
Fix datadir for miner (PR for next branch)
2018-09-21 09:36:06 -04:00
Anthony Laibe
907b486531
Send ready only when the proxy is started
2018-09-20 10:16:48 +01:00
Iuri Matias
4a321e3c0c
coerce boolean value using more commmon !!
2018-09-20 15:33:33 +10:00
emizzle
ab7784c1e9
Fix datadir for miner
...
The datadir path was not being passed to the miner, was resolving as `undefined`, and therefore, was not setting up an ipc connection correctly and no communication was happening.
The fix passes the `datadir` from the blockchain config to the miner in the constructor.
2018-09-20 15:30:06 +10:00
emizzle
c477445896
Start HTTP and WS proxies individually
...
As geth is starting up, the output is monitored for endpoint info. Once the HTTP or WS endpoints are opened, the corresponding proxies are started.
This is more maintainable in the long run in case the geth process being started does not allow for rpc or websockets, or geth modifies the order in which endpoint are opened.
2018-09-20 15:08:02 +10:00
Michael Bradley, Jr
eba9ce361e
setupProxy should not be conditional on isDev
2018-09-19 22:31:54 -05:00
Michael Bradley, Jr
917757b04c
outer function doesn't need to be async
2018-09-19 21:13:19 -05:00
Michael Bradley, Jr
e19b3b2f51
simplify syntax
2018-09-19 21:13:06 -05:00
Michael Bradley, Jr
2b816af9a8
eslint doesn't like `void 0` here
2018-09-19 21:12:37 -05:00
Michael Bradley, Jr
1408abf8d9
supply radix
2018-09-19 21:12:20 -05:00
Michael Bradley, Jr
aae7954020
await proxy just before createFundAndUnlockAccounts
2018-09-19 20:11:36 -05:00
Michael Bradley, Jr
35c772d727
async setupProxy
2018-09-19 20:10:46 -05:00
Michael Bradley, Jr
b9975668b8
proxy should attempt to wait on target
2018-09-19 20:10:15 -05:00
Michael Bradley, Jr
3846db79f7
make sure port is an integer, port var should hold offset port value
2018-09-19 20:10:15 -05:00
Iuri Matias
7f66e24b2f
Merge pull request #863 from embark-framework/bug_fix/minewhenneeded-fixes-2
...
Geth creates new account - add password warning
2018-09-18 13:02:01 -04:00
Anthony Laibe
4c0b4c2410
Delay the start of the proxy
2018-09-18 12:12:17 +01:00
emizzle
d965ba6db9
Geth creates new account - add password warning
...
When `isDev` is false, and `mineWhenNeeded` is true, embark attempts to create a new account using `geth account new`, and uses the password file specified in `blockchain/config > accounts > password`. This warning informs the user that the create account command may fail if the password is missing.
2018-09-18 16:28:23 +10:00
emizzle
472b87f4cd
Adding back calling code block for dev_funds
...
This may have been removed in the rebase, adding it back in.
2018-09-17 22:48:24 +10:00
Anthony Laibe
8ffc9b89e2
Swarm use local data dir
2018-09-13 13:37:44 +01:00
Michael Bradley, Jr
7549c1f8e6
require.resolve() should start by looking in embark's own node_modules
2018-09-07 16:28:03 -05:00
Anthony Laibe
df651865c1
Enable no-else-return
2018-08-30 14:53:04 +01:00
Iuri Matias
7eb52c1f8f
Merge pull request #735 from embark-framework/bugfix/allow-zero-config-blockchain
...
Allow zero config in blockchain
2018-08-29 17:33:15 -04:00
Anthony Laibe
23f7ec396a
Allow zero config in blockchain
2018-08-27 10:06:37 +01:00
Jonathan Rainville
13e0d453ae
fix websocket test, but still some hangs on second test run
2018-08-24 12:09:38 -04:00
Jonathan Rainville
86f1cf51d2
enable node=embark
2018-08-23 12:54:43 -04:00
Iuri Matias
8b97b4efb1
move back dev_funds file
2018-08-21 16:17:02 -04:00
Iuri Matias
792e7dff5b
lint is king
2018-08-21 16:12:57 -04:00
hodlbank
cc39931852
[m] Simplified networkId check for simulator.
2018-08-21 16:11:07 -04:00
hodlbank
b9cd0cf74e
[m] Setting up network id for simulator from blockchainConfig or options.
2018-08-21 16:11:07 -04:00
Iuri Matias
f90132af1e
remove line causing crash
2018-08-21 16:10:22 -04:00
Anthony Laibe
926ed7c258
Fix transaction logger
2018-08-21 16:09:49 -04:00
Michael Bradley, Jr
4821997866
resolve ganache-cli bin using pkg-up
2018-08-21 16:09:48 -04:00
Andre Medeiros
19c81e187b
Cleaning touches
2018-08-21 16:09:13 -04:00
Andre Medeiros
676f15fb49
Progress
2018-08-21 16:09:13 -04:00
Iuri Matias
58ba4bde48
move simulator & proxy to blockchain process module
2018-08-21 16:07:58 -04:00
Jonathan Rainville
363608287f
fixes and linting
2018-08-21 16:05:59 -04:00
Jonathan Rainville
0204eb6d46
swarm adjustements
2018-08-21 16:05:58 -04:00
Iuri Matias
29b0d01f22
move processes into core
2018-08-21 16:04:22 -04:00
Iuri Matias
8a5ccac1ee
fix requires
2018-08-21 16:03:35 -04:00
Iuri Matias
2f2b61da51
cleanup
2018-08-21 16:03:35 -04:00
Iuri Matias
5175b5710a
update to fix tests
2018-08-21 16:02:18 -04:00
Iuri Matias
dc86cbaccb
move proxy out of core
2018-08-21 16:02:18 -04:00
Iuri Matias
2ed7238190
move process files into processes folder
2018-08-21 16:02:18 -04:00
Iuri Matias
c32de30ca3
fix checking node connection
2018-08-21 16:02:18 -04:00
Iuri Matias
d7c67ffcf7
move blockchain process related files into blockchain module
2018-08-21 16:02:18 -04:00
Iuri Matias
2ea982d0e5
move blockchain process to own module
2018-08-21 16:01:14 -04:00