Commit 5b9a0e71 authored by obscuren's avatar obscuren

Disabled PoW check

@zelig we need to discuss this
parent 50edd424
...@@ -687,6 +687,8 @@ func (self *BlockPool) AddBlock(block *types.Block, peerId string) { ...@@ -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) { ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment