Fixed possible infinite loop in try_get_block_after, removed unused code
Fixed possible infinite loop in try_get_block_after, removed unused code

cachelot/cachelot,cachelot/cachelot,cachelot/cachelot,cachelot/cachelot