Adjusted difficulty and skip get tx messages

This commit is contained in:
obscuren
2015-01-06 14:02:47 +01:00
parent a76b7dadae
commit 25e6c4eff8
3 changed files with 3 additions and 2 deletions

View File

@@ -264,6 +264,7 @@ func (sm *BlockProcessor) ValidateBlock(block, parent *types.Block) error {
expd := CalcDifficulty(block, parent)
if expd.Cmp(block.Header().Difficulty) < 0 {
fmt.Println("parent\n", parent)
return fmt.Errorf("Difficulty check failed for block %v, %v", block.Header().Difficulty, expd)
}