aboutsummaryrefslogtreecommitdiffstats
path: root/dex/api_backend.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-02-25 18:27:34 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:57 +0800
commit5832a21db625bfa98a3b7909bb6996dd1fd2e4d3 (patch)
tree73f5de74fa6aa753349f00e11e989533de8a45ef /dex/api_backend.go
parent6e66efc9f69d59a011215f88a0de03508d9c56ab (diff)
downloadgo-tangerine-5832a21db625bfa98a3b7909bb6996dd1fd2e4d3.tar
go-tangerine-5832a21db625bfa98a3b7909bb6996dd1fd2e4d3.tar.gz
go-tangerine-5832a21db625bfa98a3b7909bb6996dd1fd2e4d3.tar.bz2
go-tangerine-5832a21db625bfa98a3b7909bb6996dd1fd2e4d3.tar.lz
go-tangerine-5832a21db625bfa98a3b7909bb6996dd1fd2e4d3.tar.xz
go-tangerine-5832a21db625bfa98a3b7909bb6996dd1fd2e4d3.tar.zst
go-tangerine-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.go2
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 {