He was prepared to go to the wall in reference to his money, only hoping that in doing so he might save his character and keep the reputation of an honest man. 
He was prepared to lose his money, if in doing so he might save his character and reputation. 