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 /core/chain_makers.go | |
parent | 3bb6da9bd3111c8083cdefde1aa93a7ac55d19d2 (diff) | |
download | go-tangerine-405720b218c74ec730541cdcb360db54deb75474.tar.gz go-tangerine-405720b218c74ec730541cdcb360db54deb75474.tar.zst go-tangerine-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 'core/chain_makers.go')
-rw-r--r-- | core/chain_makers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/chain_makers.go b/core/chain_makers.go index 9b4911fba..e7a65748e 100644 --- a/core/chain_makers.go +++ b/core/chain_makers.go @@ -124,7 +124,7 @@ func newChainManager(block *types.Block, eventMux *event.TypeMux, db common.Data // block processor with fake pow func newBlockProcessor(db common.Database, cman *ChainManager, eventMux *event.TypeMux) *BlockProcessor { chainMan := newChainManager(nil, eventMux, db) - txpool := NewTxPool(eventMux, chainMan.State) + txpool := NewTxPool(eventMux, chainMan.State, chainMan.GasLimit) bman := NewBlockProcessor(db, db, FakePow{}, txpool, chainMan, eventMux) return bman } |