Permalink
Browse files

Update explorers

  • Loading branch information...
sigmike committed Dec 23, 2016
1 parent 445ec32 commit 832f641cf8696d753edada6fc9aff85d6b1c2dc4
Showing with 3 additions and 4 deletions.
  1. +3 −4 app/helpers/application_helper.rb
@@ -26,18 +26,17 @@ def to_btc satoshies
end
def transaction_url(txid)
"http://bkchain.org/ppc/tx/#{txid}"
"https://peercoin.mintr.org/tx/#{txid}"
end
def address_explorers
[:bkchain, :blockr, :cryptocoin]
[:mintr, :blockr]
end
def address_url(address, explorer = address_explorers.first)
case explorer
when :blockr then "http://ppc.blockr.io/address/info/#{address}"
when :bkchain then "http://bkchain.org/ppc/address/#{address}"
when :cryptocoin then "http://ppc.cryptocoinexplorer.com/address/#{address}"
when :mintr then "https://peercoin.mintr.org/address/#{address}"
else raise "Unknown provider: #{provider.inspect}"
end
end

0 comments on commit 832f641

Please sign in to comment.