add regular account unlocks in devMod due to issues with geth
This commit is contained in:
parent
28dd6dba60
commit
5e3740f088
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue