made resolveConflictingHeaders recursive to cover case in which there are multiple consecutive ledgerIndexes with conflicting headers