good morning!!!!

Skip to content
Snippets Groups Projects
Commit 5b9a0e71 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Disabled PoW check

@zelig we need to discuss this
parent 50edd424
No related branches found
No related tags found
No related merge requests found
......@@ -687,17 +687,20 @@ func (self *BlockPool) AddBlock(block *types.Block, peerId string) {
return
}
// validate block for PoW
if !self.verifyPoW(block) {
plog.Warnf("AddBlock: invalid PoW on block %s from peer <%s> (head: %s)", hex(hash), peerId, hex(sender.currentBlockHash))
sender.addError(ErrInvalidPoW, "%x", hash)
/*
@zelig needs discussing
// validate block for PoW
if !self.verifyPoW(block) {
plog.Warnf("AddBlock: invalid PoW on block %s from peer <%s> (head: %s)", hex(hash), peerId, hex(sender.currentBlockHash))
sender.addError(ErrInvalidPoW, "%x", hash)
self.status.lock.Lock()
self.status.badPeers[peerId]++
self.status.lock.Unlock()
self.status.lock.Lock()
self.status.badPeers[peerId]++
self.status.lock.Unlock()
return
}
return
}
*/
node.block = block
node.blockBy = peerId
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment