Rewrite the DAG on the fly after resubmits so we can update the black/white lists.