Skip to content

Commit 5e3740f

Browse files
committed
add regular account unlocks in devMod due to issues with geth
1 parent 28dd6db commit 5e3740f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/cmds/blockchain/dev_funds.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ class DevFunds {
4343
});
4444
}
4545

46+
regularUnlocks() {
47+
const self = this;
48+
setInterval(function() { self.unlockAccounts(self.password, () => {}) }, 20000);
49+
}
50+
4651
connectToNode(cb) {
4752

4853
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 {
126131
(next) => {
127132
console.dir('--- FUNDING THE ACCOUNTS');
128133
this.regularTxs();
134+
this.regularUnlocks();
129135
this.fundAccounts(this.balance, next);
130136
}
131137
], (err) => {

0 commit comments

Comments
 (0)