bitcoinx / colored-coin-tools

22 stars 7 forks source link

bitcoinjs-server: fix testnet address #2

Closed killerstorm closed 11 years ago

killerstorm commented 11 years ago

When on testnet, bitcoinjs-server should show testnet addresses, i.e. using version 0x6f instead of 0:

https://github.com/killerstorm/bitcoinjs-server/blob/master/lib/util.js#L144

You are supposed to find a way to identify whether we are on a testnet.

Bounty: 0.1 BTC

katuma commented 11 years ago

See https://github.com/katuma/bitcoinjs-server/commit/9a25b18fa896ef601d4b122225ee9c58998be00b

A bit hacky, but without global it'd demand serious refactoring for proper this.node inheritance in util.