aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-08-24 08:52:53 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-08-25 10:46:11 +0800
commit7324176f702a77fc331bf16a968d2eb4bccce021 (patch)
treea9fef3b9ee46fc382dde23cdd90209cc4298dd59 /xeth
parentd51d0022cee91d6588186455afbe6e54fae2cbf7 (diff)
downloaddexon-7324176f702a77fc331bf16a968d2eb4bccce021.tar
dexon-7324176f702a77fc331bf16a968d2eb4bccce021.tar.gz
dexon-7324176f702a77fc331bf16a968d2eb4bccce021.tar.bz2
dexon-7324176f702a77fc331bf16a968d2eb4bccce021.tar.lz
dexon-7324176f702a77fc331bf16a968d2eb4bccce021.tar.xz
dexon-7324176f702a77fc331bf16a968d2eb4bccce021.tar.zst
dexon-7324176f702a77fc331bf16a968d2eb4bccce021.zip
Add tests for uncle timestamps and refactor timestamp type
Diffstat (limited to 'xeth')
-rw-r--r--xeth/types.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/xeth/types.go b/xeth/types.go
index ad5101d61..218c8dc7c 100644
--- a/xeth/types.go
+++ b/xeth/types.go
@@ -19,6 +19,7 @@ package xeth
import (
"bytes"
"fmt"
+ "math/big"
"strings"
"github.com/ethereum/go-ethereum/common"
@@ -76,7 +77,7 @@ type Block struct {
Hash string `json:"hash"`
Transactions *common.List `json:"transactions"`
Uncles *common.List `json:"uncles"`
- Time uint64 `json:"time"`
+ Time *big.Int `json:"time"`
Coinbase string `json:"coinbase"`
Name string `json:"name"`
GasLimit string `json:"gasLimit"`