aboutsummaryrefslogtreecommitdiffstats
path: root/ethpub
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-06-11 16:28:18 +0800
committerMaran <maran.hidskes@gmail.com>2014-06-11 16:28:18 +0800
commit97cc76214350b3ef9b0c15f53d06c684e01ede37 (patch)
tree21fd1b21d22f502dbb57371b948739f95980f59b /ethpub
parentbdc206885a1d9c730464f60ec65557403720be1e (diff)
downloadgo-tangerine-97cc76214350b3ef9b0c15f53d06c684e01ede37.tar
go-tangerine-97cc76214350b3ef9b0c15f53d06c684e01ede37.tar.gz
go-tangerine-97cc76214350b3ef9b0c15f53d06c684e01ede37.tar.bz2
go-tangerine-97cc76214350b3ef9b0c15f53d06c684e01ede37.tar.lz
go-tangerine-97cc76214350b3ef9b0c15f53d06c684e01ede37.tar.xz
go-tangerine-97cc76214350b3ef9b0c15f53d06c684e01ede37.tar.zst
go-tangerine-97cc76214350b3ef9b0c15f53d06c684e01ede37.zip
Expose GasLimit to ethPub
Diffstat (limited to 'ethpub')
-rw-r--r--ethpub/types.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/ethpub/types.go b/ethpub/types.go
index 6893c7e09..40ac32a27 100644
--- a/ethpub/types.go
+++ b/ethpub/types.go
@@ -46,6 +46,7 @@ type PBlock struct {
Transactions string `json:"transactions"`
Time int64 `json:"time"`
Coinbase string `json:"coinbase"`
+ GasLimit string `json:"gasLimit"`
}
// Creates a new QML Block from a chain block
@@ -64,7 +65,7 @@ func NewPBlock(block *ethchain.Block) *PBlock {
return nil
}
- return &PBlock{ref: block, Number: int(block.Number.Uint64()), Hash: ethutil.Hex(block.Hash()), Transactions: string(txJson), Time: block.Time, Coinbase: ethutil.Hex(block.Coinbase)}
+ return &PBlock{ref: block, Number: int(block.Number.Uint64()), GasLimit: block.GasLimit.String(), Hash: ethutil.Hex(block.Hash()), Transactions: string(txJson), Time: block.Time, Coinbase: ethutil.Hex(block.Coinbase)}
}
func (self *PBlock) ToString() string {