aboutsummaryrefslogtreecommitdiffstats
path: root/logger
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-01 23:09:59 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-01 23:09:59 +0800
commit60a2704b049a2bc8de417c8f50155ec69b071a9e (patch)
treeb429ae0535ad49980f39f7d8fe6e09c57402ad68 /logger
parentad3a21f260a0b13048046f6c76fe5f47bdcc46de (diff)
downloadgo-tangerine-60a2704b049a2bc8de417c8f50155ec69b071a9e.tar
go-tangerine-60a2704b049a2bc8de417c8f50155ec69b071a9e.tar.gz
go-tangerine-60a2704b049a2bc8de417c8f50155ec69b071a9e.tar.bz2
go-tangerine-60a2704b049a2bc8de417c8f50155ec69b071a9e.tar.lz
go-tangerine-60a2704b049a2bc8de417c8f50155ec69b071a9e.tar.xz
go-tangerine-60a2704b049a2bc8de417c8f50155ec69b071a9e.tar.zst
go-tangerine-60a2704b049a2bc8de417c8f50155ec69b071a9e.zip
Implement eth.miner.new_block event
Diffstat (limited to 'logger')
-rw-r--r--logger/types.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/logger/types.go b/logger/types.go
index 7ab4a2b8c..86408620e 100644
--- a/logger/types.go
+++ b/logger/types.go
@@ -1,6 +1,7 @@
package logger
import (
+ "math/big"
"time"
)
@@ -53,10 +54,10 @@ func (l *P2PDisconnected) EventName() string {
}
type EthMinerNewBlock struct {
- BlockHash string `json:"block_hash"`
- BlockNumber int `json:"block_number"`
- ChainHeadHash string `json:"chain_head_hash"`
- BlockPrevHash string `json:"block_prev_hash"`
+ BlockHash string `json:"block_hash"`
+ BlockNumber *big.Int `json:"block_number"`
+ ChainHeadHash string `json:"chain_head_hash"`
+ BlockPrevHash string `json:"block_prev_hash"`
LogEvent
}