after relayer.SubmitHeaderToContract(header) submit success, we need to wait for it to be packed to block, and also need to wait for the block to be confirmed. otherwise, relayer.GetNextEpochHeight(curNumber - comfirmCount) will still get Expired next epoch height and cause the relayer to submit the expired header multi times and failed. So we need to wait until the block with TX has been confirmed.
after relayer.SubmitHeaderToContract(header) submit success, we need to wait for it to be packed to block, and also need to wait for the block to be confirmed. otherwise, relayer.GetNextEpochHeight(curNumber - comfirmCount) will still get Expired next epoch height and cause the relayer to submit the expired header multi times and failed. So we need to wait until the block with TX has been confirmed.