now correctly identifies which conflicting ledger header is the correct one