Based on Litecoin 0.8.6.1