diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2019-02-25 18:27:34 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | d779f5aead9e91b97c8d05136ddb7a6bd84f4276 (patch) | |
tree | a0f497e1109cc1ad89183f97aee193938bf5306e /core/governance.go | |
parent | d5e4399839e04f5d85dd3a06fb14d6ad117a79f3 (diff) | |
download | dexon-d779f5aead9e91b97c8d05136ddb7a6bd84f4276.tar.gz dexon-d779f5aead9e91b97c8d05136ddb7a6bd84f4276.tar.zst dexon-d779f5aead9e91b97c8d05136ddb7a6bd84f4276.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 'core/governance.go')
-rw-r--r-- | core/governance.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/governance.go b/core/governance.go index 12124760e..9929867c9 100644 --- a/core/governance.go +++ b/core/governance.go @@ -134,3 +134,7 @@ func (g *Governance) IsDKGFinal(round uint64) bool { count := headHelper.DKGFinalizedsCount(big.NewInt(int64(round))).Uint64() return count >= threshold } + +func (g *Governance) MinGasPrice(round uint64) *big.Int { + return g.GetGovStateHelperAtRound(round).MinGasPrice() +} |