Disabled PoW check
@zelig we need to discuss this
This commit is contained in:
		@@ -687,17 +687,20 @@ func (self *BlockPool) AddBlock(block *types.Block, peerId string) {
 | 
				
			|||||||
		return
 | 
							return
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// validate block for PoW
 | 
						/*
 | 
				
			||||||
	if !self.verifyPoW(block) {
 | 
							@zelig needs discussing
 | 
				
			||||||
		plog.Warnf("AddBlock: invalid PoW on block %s from peer  <%s> (head: %s)", hex(hash), peerId, hex(sender.currentBlockHash))
 | 
								// validate block for PoW
 | 
				
			||||||
		sender.addError(ErrInvalidPoW, "%x", hash)
 | 
								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.lock.Lock()
 | 
				
			||||||
		self.status.badPeers[peerId]++
 | 
									self.status.badPeers[peerId]++
 | 
				
			||||||
		self.status.lock.Unlock()
 | 
									self.status.lock.Unlock()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		return
 | 
									return
 | 
				
			||||||
	}
 | 
								}
 | 
				
			||||||
 | 
						*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	node.block = block
 | 
						node.block = block
 | 
				
			||||||
	node.blockBy = peerId
 | 
						node.blockBy = peerId
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user