aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-24 23:45:51 +0800
committerobscuren <geffobscura@gmail.com>2015-04-24 23:48:13 +0800
commit405720b218c74ec730541cdcb360db54deb75474 (patch)
treeb403e8c1e35884aac71bd51cff8489e4305adba8 /eth
parent3bb6da9bd3111c8083cdefde1aa93a7ac55d19d2 (diff)
downloaddexon-405720b218c74ec730541cdcb360db54deb75474.tar.gz
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 'eth')
-rw-r--r--eth/backend.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/backend.go b/eth/backend.go
index d0a56de1c..ebc95c752 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -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()