aboutsummaryrefslogtreecommitdiffstats
path: root/tests/block_test_util.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-04-23 17:49:51 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-04-23 17:49:51 +0800
commit2fe54ab233c0cd1bf09b49085477c961dcc1980f (patch)
tree5e18ad0907320997a28c848a7740e680a5fa7fd6 /tests/block_test_util.go
parent0071fbed8c1525bedf43e3bbd444b11e64b87f27 (diff)
parent49da462e92fd597ba6242231b9dc0809e683862b (diff)
downloadgo-tangerine-2fe54ab233c0cd1bf09b49085477c961dcc1980f.tar
go-tangerine-2fe54ab233c0cd1bf09b49085477c961dcc1980f.tar.gz
go-tangerine-2fe54ab233c0cd1bf09b49085477c961dcc1980f.tar.bz2
go-tangerine-2fe54ab233c0cd1bf09b49085477c961dcc1980f.tar.lz
go-tangerine-2fe54ab233c0cd1bf09b49085477c961dcc1980f.tar.xz
go-tangerine-2fe54ab233c0cd1bf09b49085477c961dcc1980f.tar.zst
go-tangerine-2fe54ab233c0cd1bf09b49085477c961dcc1980f.zip
Merge pull request #779 from Gustav-Simonsson/block_tests_reloaded
Block tests reloaded
Diffstat (limited to 'tests/block_test_util.go')
-rw-r--r--tests/block_test_util.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/block_test_util.go b/tests/block_test_util.go
index ed2a9fca2..df651d24e 100644
--- a/tests/block_test_util.go
+++ b/tests/block_test_util.go
@@ -226,10 +226,10 @@ func mustConvertHeader(in btHeader) *types.Header {
UncleHash: mustConvertHash(in.UncleHash),
ParentHash: mustConvertHash(in.ParentHash),
Extra: mustConvertBytes(in.ExtraData),
- GasUsed: mustConvertBigInt(in.GasUsed, 10),
- GasLimit: mustConvertBigInt(in.GasLimit, 10),
- Difficulty: mustConvertBigInt(in.Difficulty, 10),
- Time: mustConvertUint(in.Timestamp, 10),
+ GasUsed: mustConvertBigInt(in.GasUsed, 16),
+ GasLimit: mustConvertBigInt(in.GasLimit, 16),
+ Difficulty: mustConvertBigInt(in.Difficulty, 16),
+ Time: mustConvertUint(in.Timestamp, 16),
}
// XXX cheats? :-)
header.SetNonce(mustConvertUint(in.Nonce, 16))