aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-05 14:29:38 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 20:54:27 +0800
commit7bf517ad13afa1d7d7fa1841f4717756639685e4 (patch)
tree4a679328e45b82cdbbb16f3db0a1ec149068f5ab
parentef995bce1bb3539b4ebea0ec12127c578e628fe6 (diff)
downloaddexon-7bf517ad13afa1d7d7fa1841f4717756639685e4.tar.gz
dexon-7bf517ad13afa1d7d7fa1841f4717756639685e4.tar.zst
dexon-7bf517ad13afa1d7d7fa1841f4717756639685e4.zip
dex: increase governance tx gas price
-rw-r--r--dex/governance.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/dex/governance.go b/dex/governance.go
index d9a1fa467..c1c635bf9 100644
--- a/dex/governance.go
+++ b/dex/governance.go
@@ -123,6 +123,10 @@ func (d *DexconGovernance) sendGovTx(ctx context.Context, data []byte) error {
log.Info("sendGovTx", "nonce", nonce)
+ // Increase gasPrice to 5 times of suggested gas price to make sure it will
+ // be included in time.
+ gasPrice = new(big.Int).Mul(gasPrice, big.NewInt(5))
+
tx := types.NewTransaction(
nonce,
vm.GovernanceContractAddress,