only check for new difficulty after a new block has come in

should reduce number of calls to set_blockdiff