aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-14 23:37:57 +0800
committerobscuren <geffobscura@gmail.com>2015-03-14 23:37:57 +0800
commit387f6bba3e221dac6f9884b3f9aba98d6b8591cf (patch)
tree0d6b19c76dbde906d10cd6d9f66add1cba161be4 /core
parent44636e5b824514f90e8fefdedf3ab6bcd2cf287a (diff)
downloaddexon-387f6bba3e221dac6f9884b3f9aba98d6b8591cf.tar
dexon-387f6bba3e221dac6f9884b3f9aba98d6b8591cf.tar.gz
dexon-387f6bba3e221dac6f9884b3f9aba98d6b8591cf.tar.bz2
dexon-387f6bba3e221dac6f9884b3f9aba98d6b8591cf.tar.lz
dexon-387f6bba3e221dac6f9884b3f9aba98d6b8591cf.tar.xz
dexon-387f6bba3e221dac6f9884b3f9aba98d6b8591cf.tar.zst
dexon-387f6bba3e221dac6f9884b3f9aba98d6b8591cf.zip
POW fixes
Diffstat (limited to 'core')
-rw-r--r--core/genesis.go1
-rw-r--r--core/types/block.go7
2 files changed, 1 insertions, 7 deletions
diff --git a/core/genesis.go b/core/genesis.go
index a3d701f9f..9c82a28c8 100644
--- a/core/genesis.go
+++ b/core/genesis.go
@@ -31,7 +31,6 @@ func GenesisBlock(db ethutil.Database) *types.Block {
genesis.Header().GasLimit = GenesisGasLimit
genesis.Header().GasUsed = ethutil.Big0
genesis.Header().Time = 0
- genesis.Header().SeedHash = make([]byte, 32)
genesis.Header().MixDigest = make([]byte, 32)
genesis.Td = ethutil.Big0
diff --git a/core/types/block.go b/core/types/block.go
index 31c7c2b87..50973c804 100644
--- a/core/types/block.go
+++ b/core/types/block.go
@@ -40,8 +40,6 @@ type Header struct {
Time uint64
// Extra data
Extra string
- // SeedHash used for light client verification
- SeedHash ethutil.Bytes
// Mix digest for quick checking to prevent DOS
MixDigest ethutil.Bytes
// Nonce
@@ -63,7 +61,6 @@ func (self *Header) rlpData(withNonce bool) []interface{} {
self.GasUsed,
self.Time,
self.Extra,
- self.SeedHash,
}
if withNonce {
fields = append(fields, self.MixDigest, self.Nonce)
@@ -202,7 +199,6 @@ func (self *Block) RlpDataForStorage() interface{} {
func (self *Block) Number() *big.Int { return self.header.Number }
func (self *Block) NumberU64() uint64 { return self.header.Number.Uint64() }
func (self *Block) MixDigest() []byte { return self.header.MixDigest }
-func (self *Block) SeedHash() []byte { return self.header.SeedHash }
func (self *Block) Nonce() uint64 {
return binary.BigEndian.Uint64(self.header.Nonce)
}
@@ -281,10 +277,9 @@ func (self *Header) String() string {
GasUsed: %v
Time: %v
Extra: %v
- SeedHash: %x
MixDigest: %x
Nonce: %x`,
- self.ParentHash, self.UncleHash, self.Coinbase, self.Root, self.TxHash, self.ReceiptHash, self.Bloom, self.Difficulty, self.Number, self.GasLimit, self.GasUsed, self.Time, self.Extra, self.SeedHash, self.MixDigest, self.Nonce)
+ self.ParentHash, self.UncleHash, self.Coinbase, self.Root, self.TxHash, self.ReceiptHash, self.Bloom, self.Difficulty, self.Number, self.GasLimit, self.GasUsed, self.Time, self.Extra, self.MixDigest, self.Nonce)
}
type Blocks []*Block