aboutsummaryrefslogtreecommitdiffstats
path: root/ethpub
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-30 17:47:23 +0800
committerobscuren <geffobscura@gmail.com>2014-05-30 17:47:23 +0800
commit99797858a692520b47c2ca767b433ca425637d2a (patch)
tree3f2070d5e78a8cc74f797958bba4b1f836d3ac1c /ethpub
parent8fcba0eb1e947061aadeea1059830dbcdfd2ef44 (diff)
downloadgo-tangerine-99797858a692520b47c2ca767b433ca425637d2a.tar
go-tangerine-99797858a692520b47c2ca767b433ca425637d2a.tar.gz
go-tangerine-99797858a692520b47c2ca767b433ca425637d2a.tar.bz2
go-tangerine-99797858a692520b47c2ca767b433ca425637d2a.tar.lz
go-tangerine-99797858a692520b47c2ca767b433ca425637d2a.tar.xz
go-tangerine-99797858a692520b47c2ca767b433ca425637d2a.tar.zst
go-tangerine-99797858a692520b47c2ca767b433ca425637d2a.zip
Added coin base to pub block
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 de1149a26..4e7c44ed4 100644
--- a/ethpub/types.go
+++ b/ethpub/types.go
@@ -16,6 +16,7 @@ type PBlock struct {
Hash string `json:"hash"`
Transactions string `json:"transactions"`
Time int64 `json:"time"`
+ Coinbase string `json:"coinbase"`
}
// Creates a new QML Block from a chain block
@@ -34,7 +35,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}
+ 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)}
}
func (self *PBlock) ToString() string {