diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-05 14:29:38 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:18 +0800 |
commit | e16a22e896cc10c42c8353d6adba45652d3c13d9 (patch) | |
tree | e6af0895f8beb78d6ee6a5d9c2a8420440ad4f6d /dex/governance.go | |
parent | f25aef2df9d8fee03569bdd47a923a24ed311299 (diff) | |
download | go-tangerine-e16a22e896cc10c42c8353d6adba45652d3c13d9.tar go-tangerine-e16a22e896cc10c42c8353d6adba45652d3c13d9.tar.gz go-tangerine-e16a22e896cc10c42c8353d6adba45652d3c13d9.tar.bz2 go-tangerine-e16a22e896cc10c42c8353d6adba45652d3c13d9.tar.lz go-tangerine-e16a22e896cc10c42c8353d6adba45652d3c13d9.tar.xz go-tangerine-e16a22e896cc10c42c8353d6adba45652d3c13d9.tar.zst go-tangerine-e16a22e896cc10c42c8353d6adba45652d3c13d9.zip |
dex: increase governance tx gas price
Diffstat (limited to 'dex/governance.go')
-rw-r--r-- | dex/governance.go | 4 |
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, |