Adding back calling code block for dev_funds
This may have been removed in the rebase, adding it back in.
This commit is contained in:
parent
a43627de5b
commit
472b87f4cd
|
@ -180,6 +180,12 @@ Blockchain.prototype.run = function() {
|
||||||
self.child.stderr.on('data', (data) => {
|
self.child.stderr.on('data', (data) => {
|
||||||
data = data.toString();
|
data = data.toString();
|
||||||
if (!self.readyCalled && data.indexOf('WebSocket endpoint opened') > -1) {
|
if (!self.readyCalled && data.indexOf('WebSocket endpoint opened') > -1) {
|
||||||
|
if (self.isDev) {
|
||||||
|
self.createFundAndUnlockAccounts((err) => {
|
||||||
|
// TODO: this is never called!
|
||||||
|
if(err) console.error('Error creating, unlocking, and funding accounts', err);
|
||||||
|
});
|
||||||
|
}
|
||||||
self.readyCalled = true;
|
self.readyCalled = true;
|
||||||
self.readyCallback();
|
self.readyCallback();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue