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:
		| @@ -219,7 +219,7 @@ func New(config *Config) (*Ethereum, error) { | ||||
| 	eth.chainManager = core.NewChainManager(blockDb, stateDb, eth.EventMux()) | ||||
| 	eth.downloader = downloader.New(eth.chainManager.HasBlock, eth.chainManager.InsertChain) | ||||
| 	eth.pow = ethash.New(eth.chainManager) | ||||
| 	eth.txPool = core.NewTxPool(eth.EventMux(), eth.chainManager.State) | ||||
| 	eth.txPool = core.NewTxPool(eth.EventMux(), eth.chainManager.State, eth.chainManager.GasLimit) | ||||
| 	eth.blockProcessor = core.NewBlockProcessor(stateDb, extraDb, eth.pow, eth.txPool, eth.chainManager, eth.EventMux()) | ||||
| 	eth.chainManager.SetProcessor(eth.blockProcessor) | ||||
| 	eth.whisper = whisper.New() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user