aboutsummaryrefslogtreecommitdiffstats
path: root/core/transaction_pool_test.go
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 /core/transaction_pool_test.go
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 'core/transaction_pool_test.go')
-rw-r--r--core/transaction_pool_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/transaction_pool_test.go b/core/transaction_pool_test.go
index 0e049139e..f96d2b651 100644
--- a/core/transaction_pool_test.go
+++ b/core/transaction_pool_test.go
@@ -23,7 +23,7 @@ func setupTxPool() (*TxPool, *ecdsa.PrivateKey) {
var m event.TypeMux
key, _ := crypto.GenerateKey()
- return NewTxPool(&m, func() *state.StateDB { return statedb }), key
+ return NewTxPool(&m, func() *state.StateDB { return statedb }, func() *big.Int { return big.NewInt(1000000) }), key
}
func TestInvalidTransactions(t *testing.T) {