diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-24 23:45:51 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-24 23:48:13 +0800 |
commit | 405720b218c74ec730541cdcb360db54deb75474 (patch) | |
tree | b403e8c1e35884aac71bd51cff8489e4305adba8 /cmd/utils/flags.go | |
parent | 3bb6da9bd3111c8083cdefde1aa93a7ac55d19d2 (diff) | |
download | dexon-405720b218c74ec730541cdcb360db54deb75474.tar dexon-405720b218c74ec730541cdcb360db54deb75474.tar.gz dexon-405720b218c74ec730541cdcb360db54deb75474.tar.bz2 dexon-405720b218c74ec730541cdcb360db54deb75474.tar.lz dexon-405720b218c74ec730541cdcb360db54deb75474.tar.xz dexon-405720b218c74ec730541cdcb360db54deb75474.tar.zst dexon-405720b218c74ec730541cdcb360db54deb75474.zip |
xeth, core, cmd/utils: Transaction can not be over block gas limit
Transactions will be invalidated when the tx.gas_limit > block.gas_limit
Diffstat (limited to 'cmd/utils/flags.go')
-rw-r--r-- | cmd/utils/flags.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index b8f3982e2..a75663a4c 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -317,7 +317,7 @@ func GetChain(ctx *cli.Context) (*core.ChainManager, common.Database, common.Dat eventMux := new(event.TypeMux) chainManager := core.NewChainManager(blockDb, stateDb, eventMux) pow := ethash.New(chainManager) - txPool := core.NewTxPool(eventMux, chainManager.State) + txPool := core.NewTxPool(eventMux, chainManager.State, chainManager.GasLimit) blockProcessor := core.NewBlockProcessor(stateDb, extraDb, pow, txPool, chainManager, eventMux) chainManager.SetProcessor(blockProcessor) |