diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-05 10:26:23 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-05 10:26:23 +0800 |
commit | a1b4547a53c4c738e435c1968c1e606935912e47 (patch) | |
tree | 0e37738e24db81d48825f80076d942b6da9522c7 /miner/miner.go | |
parent | 57f95c1dc7f2e3412d7d78cfdab7074ce1dbbf09 (diff) | |
download | dexon-a1b4547a53c4c738e435c1968c1e606935912e47.tar dexon-a1b4547a53c4c738e435c1968c1e606935912e47.tar.gz dexon-a1b4547a53c4c738e435c1968c1e606935912e47.tar.bz2 dexon-a1b4547a53c4c738e435c1968c1e606935912e47.tar.lz dexon-a1b4547a53c4c738e435c1968c1e606935912e47.tar.xz dexon-a1b4547a53c4c738e435c1968c1e606935912e47.tar.zst dexon-a1b4547a53c4c738e435c1968c1e606935912e47.zip |
set uncles regardless of empty uncle list. Fixes invalid blocks being mined
Diffstat (limited to 'miner/miner.go')
-rw-r--r-- | miner/miner.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/miner/miner.go b/miner/miner.go index 52dd5687d..11d09d953 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -184,9 +184,7 @@ func (self *Miner) mine() { block.Header().Extra = self.Extra // Apply uncles - if len(self.uncles) > 0 { - block.SetUncles(self.uncles) - } + block.SetUncles(self.uncles) parent := chainMan.GetBlock(block.ParentHash()) coinbase := state.GetOrNewStateObject(block.Coinbase()) |