fn batch_phase(batch: &SafeBatch) -> Result<Phase>
Identify the phase of a single-transaction batch.
Fails unless batch.transactions.len() == 1.
batch.transactions.len() == 1