Skip to content

Commit

Permalink
block number is *big.Int, remoteID is string
Browse files Browse the repository at this point in the history
  • Loading branch information
zelig committed Mar 3, 2015
1 parent 34be795 commit 76af536
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions logger/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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
}

Expand Down

0 comments on commit 76af536

Please sign in to comment.