Particle acceleration at a pair of parallel shocks near the Sun