diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-05 14:29:38 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:52 +0800 |
commit | 2064d1f0271560ffaf42a870321bf7fc08aeb7f4 (patch) | |
tree | 315c3ae88ef0654a4e9c97c1be27d9fadc847736 /dex | |
parent | c66af2d7f54b14e856c3d3b6a98a961daf617216 (diff) | |
download | go-tangerine-2064d1f0271560ffaf42a870321bf7fc08aeb7f4.tar go-tangerine-2064d1f0271560ffaf42a870321bf7fc08aeb7f4.tar.gz go-tangerine-2064d1f0271560ffaf42a870321bf7fc08aeb7f4.tar.bz2 go-tangerine-2064d1f0271560ffaf42a870321bf7fc08aeb7f4.tar.lz go-tangerine-2064d1f0271560ffaf42a870321bf7fc08aeb7f4.tar.xz go-tangerine-2064d1f0271560ffaf42a870321bf7fc08aeb7f4.tar.zst go-tangerine-2064d1f0271560ffaf42a870321bf7fc08aeb7f4.zip |
dex: increase governance tx gas price
Diffstat (limited to 'dex')
-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, |