diff --git a/lib/modules/blockchain_process/blockchain.js b/lib/modules/blockchain_process/blockchain.js index d4edb6a30..a7f996f5c 100644 --- a/lib/modules/blockchain_process/blockchain.js +++ b/lib/modules/blockchain_process/blockchain.js @@ -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(); }