Fix typoe, refactor a bit.
Fix typoe, refactor a bit.

GroestlCoin/libgroestlcoin,swansontec/libbitcoin,swansontec/libbitcoin,GroestlCoin/libgroestlcoin,swansontec/libbitcoin,GroestlCoin/libgroestlcoin,GroestlCoin/libgroestlcoin,swansontec/libbitcoin