Others came to work the railroads because they were willing to trade racist abuse for economic benefits.
Are you really that unfamiliar with American history?