run miner only after receiving mining addr