diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-05 16:14:58 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-05 16:14:58 +0800 |
commit | c47866d25174bd783ee6bcd5b400d81d7bf598bb (patch) | |
tree | 01c71c40981f4f75e1721011006d2da96dfc3c2d /core/types | |
parent | 15f491e5007d1507f20d0edce36cc9c0bd5cbd37 (diff) | |
download | go-tangerine-c47866d25174bd783ee6bcd5b400d81d7bf598bb.tar go-tangerine-c47866d25174bd783ee6bcd5b400d81d7bf598bb.tar.gz go-tangerine-c47866d25174bd783ee6bcd5b400d81d7bf598bb.tar.bz2 go-tangerine-c47866d25174bd783ee6bcd5b400d81d7bf598bb.tar.lz go-tangerine-c47866d25174bd783ee6bcd5b400d81d7bf598bb.tar.xz go-tangerine-c47866d25174bd783ee6bcd5b400d81d7bf598bb.tar.zst go-tangerine-c47866d25174bd783ee6bcd5b400d81d7bf598bb.zip |
Miner fixes and updates (including miner)
Diffstat (limited to 'core/types')
-rw-r--r-- | core/types/block.go | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/core/types/block.go b/core/types/block.go index 18a21e8c6..31c7c2b87 100644 --- a/core/types/block.go +++ b/core/types/block.go @@ -40,12 +40,12 @@ type Header struct { Time uint64 // Extra data Extra string - // Nonce - Nonce []byte - // Mix digest for quick checking to prevent DOS - MixDigest ethutil.Bytes // SeedHash used for light client verification SeedHash ethutil.Bytes + // Mix digest for quick checking to prevent DOS + MixDigest ethutil.Bytes + // Nonce + Nonce []byte } func (self *Header) rlpData(withNonce bool) []interface{} { @@ -62,9 +62,11 @@ func (self *Header) rlpData(withNonce bool) []interface{} { self.GasLimit, self.GasUsed, self.Time, - self.Extra} + self.Extra, + self.SeedHash, + } if withNonce { - fields = append(fields, self.SeedHash, self.MixDigest, self.Nonce) + fields = append(fields, self.MixDigest, self.Nonce) } return fields |