Made write_metadata_blob and write_branch_history_blob guarantee the block magic is that of the latest version.