Disabled PoW check

@zelig we need to discuss this
pull/632/merge
obscuren 10 years ago
parent 50edd4243e
commit 5b9a0e7118
  1. 3
      blockpool/blockpool.go

@ -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…
Cancel
Save