mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-12 06:44:37 +00:00
increase estimated gas slightly & randomly
This commit is contained in:
parent
2374cb1641
commit
44dad44ef4
@ -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();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user