make find_next_block return block rather than index. fix removing from peers.