aboutsummaryrefslogtreecommitdiffstats
path: root/public/js/calculator.coffee
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2016-09-22 23:03:39 -0700
committerAdam Soltys <[email protected]>2016-09-22 23:03:39 -0700
commitcc64f72c92c9546a210206bfba4d72190f7517c4 (patch)
tree6a1a8f98b707d74a92e246164d6414a7ae468b02 /public/js/calculator.coffee
parent99b107eafa222a6e585e0e7efa1613a081dcb57c (diff)
downloadcoinos-server-cc64f72c92c9546a210206bfba4d72190f7517c4.tar.gz
coinos-server-cc64f72c92c9546a210206bfba4d72190f7517c4.zip
Update bitcoinjs (fixes #51)
Diffstat (limited to 'public/js/calculator.coffee')
-rw-r--r--public/js/calculator.coffee13
1 files changed, 5 insertions, 8 deletions
diff --git a/public/js/calculator.coffee b/public/js/calculator.coffee
index e06a91e2..7e835551 100644
--- a/public/js/calculator.coffee
+++ b/public/js/calculator.coffee
@@ -231,14 +231,11 @@ getAddress = ->
bitcoin.address.fromBase58Check(g.user.pubkey)
g.user.address = g.user.pubkey
catch
- try
- master = bitcoin.HDNode.fromBase58(g.user.pubkey)
- child = master.derive(0).derive(g.user.index)
- g.user.address = child.getAddress().toString()
- g.blockchain.close() if g.blockchain
- listen()
- catch
- fail(ADDRESS_FAIL)
+ master = bitcoin.HDNode.fromBase58(g.user.pubkey)
+ child = master.derive(0).derive(g.user.index)
+ g.user.address = child.getAddress().toString()
+ g.blockchain.close() if g.blockchain
+ listen()
$('#address').html("<a href='https://tradeblock.com/bitcoin/address/#{g.user.address}'>#{g.user.address}</a>")