Add tests for uncle timestamps and refactor timestamp type

This commit is contained in:
Gustav Simonsson
2015-08-24 02:52:53 +02:00
parent d51d0022ce
commit 7324176f70
21 changed files with 380 additions and 43 deletions

View File

@ -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"`