apply changes from https://github.com/MidnightLightning/bitcoinjs-server/commit/b0fbd5bb4776223994165d90e883c1bea364ed96?diff=unified
apply changes from https://github.com/MidnightLightning/bitcoinjs-server/commit/b0fbd5bb4776223994165d90e883c1bea364ed96?diff=unified

zhangweis/node-jds,zhangweis/node-jds,zhangweis/node-jds