increase estimated gas slightly & randomly

This commit is contained in:
Iuri Matias 2018-09-26 18:45:06 -04:00
parent 2374cb1641
commit 44dad44ef4

View File

@ -257,7 +257,8 @@ class ContractDeployer {
if (err) { if (err) {
return next(err); return next(err);
} }
contract.gas = gasValue; let increase_per = 1 + (Math.random() / 10.0)
contract.gas = Math.floor(gasValue * increase_per);
next(); next();
}); });
} }