add regular account unlocks in devMod due to issues with geth

This commit is contained in:
Iuri Matias 2018-07-18 13:45:18 +03:00
parent 28dd6dba60
commit 5e3740f088
1 changed files with 6 additions and 0 deletions

View File

@ -43,6 +43,11 @@ class DevFunds {
});
}
regularUnlocks() {
const self = this;
setInterval(function() { self.unlockAccounts(self.password, () => {}) }, 20000);
}
connectToNode(cb) {
this.web3.setProvider(new Web3.providers.WebsocketProvider(buildUrl('ws', this.blockchainConfig.wsHost, this.blockchainConfig.wsPort), { headers: { Origin: "http://localhost:8000" } }));
@ -126,6 +131,7 @@ class DevFunds {
(next) => {
console.dir('--- FUNDING THE ACCOUNTS');
this.regularTxs();
this.regularUnlocks();
this.fundAccounts(this.balance, next);
}
], (err) => {