diff options
author | zelig <viktor.tron@gmail.com> | 2015-03-03 16:37:20 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2015-03-03 16:37:20 +0800 |
commit | 76af536d0d16e3f0742a46d448b3e0dcb46458f6 (patch) | |
tree | 9bddf2ea6adedd0f8f2db67fcf94cbf9f4e437b3 /logger | |
parent | 34be795bc11e72092460401d015852d61c769509 (diff) | |
download | go-tangerine-76af536d0d16e3f0742a46d448b3e0dcb46458f6.tar go-tangerine-76af536d0d16e3f0742a46d448b3e0dcb46458f6.tar.gz go-tangerine-76af536d0d16e3f0742a46d448b3e0dcb46458f6.tar.bz2 go-tangerine-76af536d0d16e3f0742a46d448b3e0dcb46458f6.tar.lz go-tangerine-76af536d0d16e3f0742a46d448b3e0dcb46458f6.tar.xz go-tangerine-76af536d0d16e3f0742a46d448b3e0dcb46458f6.tar.zst go-tangerine-76af536d0d16e3f0742a46d448b3e0dcb46458f6.zip |
block number is *big.Int, remoteID is string
Diffstat (limited to 'logger')
-rw-r--r-- | logger/types.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/logger/types.go b/logger/types.go index 86408620e..d98f0874a 100644 --- a/logger/types.go +++ b/logger/types.go @@ -66,11 +66,11 @@ func (l *EthMinerNewBlock) EventName() string { } type EthChainReceivedNewBlock struct { - BlockHash string `json:"block_hash"` - BlockNumber int `json:"block_number"` - ChainHeadHash string `json:"chain_head_hash"` - BlockPrevHash string `json:"block_prev_hash"` - RemoteId int `json:"remote_id"` + BlockHash string `json:"block_hash"` + BlockNumber *big.Int `json:"block_number"` + ChainHeadHash string `json:"chain_head_hash"` + BlockPrevHash string `json:"block_prev_hash"` + RemoteId string `json:"remote_id"` LogEvent } @@ -79,10 +79,10 @@ func (l *EthChainReceivedNewBlock) EventName() string { } type EthChainNewHead 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 } |