From 472b87f4cd25a02bef4a1265fdccf87a959fe2e0 Mon Sep 17 00:00:00 2001 From: emizzle Date: Mon, 17 Sep 2018 22:48:24 +1000 Subject: [PATCH] Adding back calling code block for dev_funds This may have been removed in the rebase, adding it back in. --- lib/modules/blockchain_process/blockchain.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/modules/blockchain_process/blockchain.js b/lib/modules/blockchain_process/blockchain.js index d4edb6a3..a7f996f5 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(); }