From 405720b218c74ec730541cdcb360db54deb75474 Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 24 Apr 2015 17:45:51 +0200 Subject: xeth, core, cmd/utils: Transaction can not be over block gas limit Transactions will be invalidated when the tx.gas_limit > block.gas_limit --- xeth/xeth.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xeth') diff --git a/xeth/xeth.go b/xeth/xeth.go index 251b070e4..693acb910 100644 --- a/xeth/xeth.go +++ b/xeth/xeth.go @@ -236,6 +236,10 @@ func (self *XEth) CurrentBlock() *types.Block { return self.backend.ChainManager().CurrentBlock() } +func (self *XEth) GasLimit() *big.Int { + return self.backend.ChainManager().GasLimit() +} + func (self *XEth) Block(v interface{}) *Block { if n, ok := v.(int32); ok { return self.BlockByNumber(int64(n)) -- cgit v1.2.3