I'm not sure where you're obtaining the information... but addressing one point only is your statement that "... In fact when the war ended slavery carried on in the USA for many years, the war was not the end of slavery."
Factually, "...the 13th amendment, which formally abolished slavery in the United States, passed the Senate on April 8, 1864, and the House on January 31, 1865. On February 1, 1865, President Abraham Lincoln approved the Joint Resolution of Congress submitting the proposed amendment to the state legislatures. The necessary number of states ratified it by December 6, 1865. The 13th amendment to the United States Constitution provides that "Neither slavery nor involuntary servitude, except as a punishment for crime whereof the party shall have been duly convicted, shall exist within the United States, or any place subject to their jurisdiction." (Source: Encyclopedia of the Civil War ).
If one wishes to argue the continued existance of discrimination immediately following the end of that war, that, then, becomes a different subject and a different argument. By the way, nearly 625,000 men died during the struggle.
At first, in fact, the event was triggered (no pun intended) by State's Rights... with slavery being a side issue. Lincoln, (the first Republican President) feared the disintergration of the country into squabbling individual small countries (a la Europe) and was willing to do almost anything to prevent that.
As a side note, slavery was introduced into the U.S. by a Dutch ship loaded with black slaves that arrived in New York in the early 17th century. But slaves weren't a necessity in the Northern States due to the smaller nature of the farms. In the South, the slaves were actaully first imported to tend and harvest tobacco, only resorting to cotton after Eli Whitney's invention of the Cotton Gin in 1793.
In my humble opinion, the discrimination, though greatly alleviated due to the Civil Rights movement in the 1950's and 60's, inflicted on the black segment today is caused as much by the disintergration of the black family as any thing else.
The Democrats, especially in the south have found that literally wasting billions of dollars since the "Great Society" movement introduced by the democrat President Johnson (following the assassination of Kennedy) has brought them a government dependence and an almost universal voting bloc. Since Johnson's tenure, poverty and disappearance of the once solid black family has actually increased... dramatically. Yet blacks continue to follow that party right over the cliff. To the point that 75% of black babies born today are to single women and 38% of inmates of prisons are black while only constituting about 13% of the total population.
I'm not astute enough to clearly see any solution on the horizon. It's generally agreed (referencing recent nationwide polls) that race relationships here has suffered greatly since the election of President Obama. This, from both sides...Pity considering the great strides made in previous decades.
Lastly, with the rise of the grug culture and its associated gangs in the large northern cities such as Detroit, blacks actually are doing far better, economically and socially in the "South" rather than the north... Detroit is a war zone, and no sane person, black or white ventures "downtown"...