parent
50edd4243e
commit
5b9a0e7118
|
@ -687,6 +687,8 @@ func (self *BlockPool) AddBlock(block *types.Block, peerId string) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
@zelig needs discussing
|
||||||
// validate block for PoW
|
// validate block for PoW
|
||||||
if !self.verifyPoW(block) {
|
if !self.verifyPoW(block) {
|
||||||
plog.Warnf("AddBlock: invalid PoW on block %s from peer <%s> (head: %s)", hex(hash), peerId, hex(sender.currentBlockHash))
|
plog.Warnf("AddBlock: invalid PoW on block %s from peer <%s> (head: %s)", hex(hash), peerId, hex(sender.currentBlockHash))
|
||||||
|
@ -698,6 +700,7 @@ func (self *BlockPool) AddBlock(block *types.Block, peerId string) {
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
node.block = block
|
node.block = block
|
||||||
node.blockBy = peerId
|
node.blockBy = peerId
|
||||||
|
|
Loading…
Reference in New Issue