diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-24 23:45:51 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-24 23:48:13 +0800 |
commit | 405720b218c74ec730541cdcb360db54deb75474 (patch) | |
tree | b403e8c1e35884aac71bd51cff8489e4305adba8 /xeth | |
parent | 3bb6da9bd3111c8083cdefde1aa93a7ac55d19d2 (diff) | |
download | dexon-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 'xeth')
-rw-r--r-- | xeth/xeth.go | 4 |
1 files changed, 4 insertions, 0 deletions
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)) |