From 210ecfb9747901082d8f3a8a8b04605e0669981f Mon Sep 17 00:00:00 2001
From: Wei-Ning Huang <w@dexon.org>
Date: Mon, 5 Nov 2018 14:29:38 +0800
Subject: dex: increase governance tx gas price

---
 dex/governance.go | 4 ++++
 1 file changed, 4 insertions(+)

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,
-- 
cgit v1.2.3