aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-03-13 21:36:15 +0800
committerFelix Lange <fjl@twurst.com>2015-03-14 01:41:09 +0800
commit932654182047c0f48536d94c2a60382aae8cae92 (patch)
treedd742d3e2561414fb45b0abdf86eb898b399f604 /core
parent31a95151c9fb95c8527e419347556f455aebd1cb (diff)
downloaddexon-932654182047c0f48536d94c2a60382aae8cae92.tar.gz
dexon-932654182047c0f48536d94c2a60382aae8cae92.tar.zst
dexon-932654182047c0f48536d94c2a60382aae8cae92.zip
core/types: make Block.{ParentHash,SeedHash,MixDigest} []byte
There is no reason to keep them as ethutil.Bytes.
Diffstat (limited to 'core')
-rw-r--r--core/types/block.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/types/block.go b/core/types/block.go
index 31c7c2b87..f13a0b8f9 100644
--- a/core/types/block.go
+++ b/core/types/block.go
@@ -15,7 +15,7 @@ import (
type Header struct {
// Hash to the previous block
- ParentHash ethutil.Bytes
+ ParentHash []byte
// Uncles of this block
UncleHash []byte
// The coin base address
@@ -41,9 +41,9 @@ type Header struct {
// Extra data
Extra string
// SeedHash used for light client verification
- SeedHash ethutil.Bytes
+ SeedHash []byte
// Mix digest for quick checking to prevent DOS
- MixDigest ethutil.Bytes
+ MixDigest []byte
// Nonce
Nonce []byte
}