diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2019-02-25 18:27:34 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:57 +0800 |
commit | 5832a21db625bfa98a3b7909bb6996dd1fd2e4d3 (patch) | |
tree | 73f5de74fa6aa753349f00e11e989533de8a45ef /dex/api_backend.go | |
parent | 6e66efc9f69d59a011215f88a0de03508d9c56ab (diff) | |
download | dexon-5832a21db625bfa98a3b7909bb6996dd1fd2e4d3.tar dexon-5832a21db625bfa98a3b7909bb6996dd1fd2e4d3.tar.gz dexon-5832a21db625bfa98a3b7909bb6996dd1fd2e4d3.tar.bz2 dexon-5832a21db625bfa98a3b7909bb6996dd1fd2e4d3.tar.lz dexon-5832a21db625bfa98a3b7909bb6996dd1fd2e4d3.tar.xz dexon-5832a21db625bfa98a3b7909bb6996dd1fd2e4d3.tar.zst dexon-5832a21db625bfa98a3b7909bb6996dd1fd2e4d3.zip |
core: Fixed gas price (#205)
* core/vm: update abi
* core/vm: add MinGasPrice to gov
* params: Add MinGasPrice to Config
* dex: SuggestPrice from Governance
* test: add minGasPrice to genesis.json
* core: check underpriced tx
* dex: verify with gas price
Diffstat (limited to 'dex/api_backend.go')
-rw-r--r-- | dex/api_backend.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dex/api_backend.go b/dex/api_backend.go index 957f4d886..60a874701 100644 --- a/dex/api_backend.go +++ b/dex/api_backend.go @@ -195,7 +195,7 @@ func (b *DexAPIBackend) ProtocolVersion() int { } func (b *DexAPIBackend) SuggestPrice(ctx context.Context) (*big.Int, error) { - return b.gpo.SuggestPrice(ctx) + return b.dex.governance.MinGasPrice(b.dex.blockchain.CurrentBlock().Round()), nil } func (b *DexAPIBackend) ChainDb() ethdb.Database { |