Skip to content

Commit

Permalink
Allow head to be moved up
Browse files Browse the repository at this point in the history
  • Loading branch information
Emyrk committed Sep 29, 2018
1 parent eb2c0f3 commit 5cea962
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Utilities/SetChainHead/SetChainHead.go
Expand Up @@ -86,10 +86,10 @@ func SetDirectoryBlockHead(dbo *databaseOverlay.Overlay, newHeight int) error {
panic("DBlock head not found")
}

if dBlock.GetHeader().GetDBHeight() < uint32(newHeight) {
fmt.Printf("highest DB is %v but specified %v\n", dBlock.GetHeader().GetDBHeight(), newHeight)
panic("not enough DBlocks to reset")
}
//if dBlock.GetHeader().GetDBHeight() < uint32(newHeight) {
// fmt.Printf("highest DB is %v but specified %v\n", dBlock.GetHeader().GetDBHeight(), newHeight)
// panic("not enough DBlocks to reset")
//}
newHeadBlock, err := dbo.FetchDBlockByHeight(uint32(newHeight))
if err != nil {
panic(err)
Expand Down

0 comments on commit 5cea962

Please sign in to comment.