aboutsummaryrefslogtreecommitdiffstats
path: root/core/tx_pool_test.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-02-25 18:27:34 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:22 +0800
commit8e92e73dc650ac03c228fbb26a3afe88a5bc237c (patch)
tree0d0c74884bddd2c29e38dfb903ccfd1459c8f279 /core/tx_pool_test.go
parentf1a3f3a8f39d5490f4320591def9c2866d866bc4 (diff)
downloadgo-tangerine-8e92e73dc650ac03c228fbb26a3afe88a5bc237c.tar.gz
go-tangerine-8e92e73dc650ac03c228fbb26a3afe88a5bc237c.tar.zst
go-tangerine-8e92e73dc650ac03c228fbb26a3afe88a5bc237c.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/tx_pool_test.go')
-rw-r--r--core/tx_pool_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/tx_pool_test.go b/core/tx_pool_test.go
index 96151850d..70d4a351a 100644
--- a/core/tx_pool_test.go
+++ b/core/tx_pool_test.go
@@ -61,6 +61,10 @@ func (bc *testBlockChain) GetBlock(hash common.Hash, number uint64) *types.Block
return bc.CurrentBlock()
}
+func (bc *testBlockChain) GetBlockByNumber(uint64) *types.Block {
+ return bc.CurrentBlock()
+}
+
func (bc *testBlockChain) StateAt(common.Hash) (*state.StateDB, error) {
return bc.statedb, nil
}