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:
emizzle 2018-09-17 22:48:24 +10:00
parent a43627de5b
commit 472b87f4cd
1 changed files with 6 additions and 0 deletions

View File

@ -180,6 +180,12 @@ Blockchain.prototype.run = function() {
self.child.stderr.on('data', (data) => {
data = data.toString();
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.readyCallback();
}