AFAICS accepted_pn *should* only be written during handle_collect.. that's the phase 1 of paxos where we promise not to accepting anything with a lower pn.  The pn only changes when there is a new election epoch and a new leader does a new collect phase.