xeth, core, cmd/utils: Transaction can not be over block gas limit
Transactions will be invalidated when the tx.gas_limit > block.gas_limit
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user