From dfcb3adaa4cdc9f144de813103ef74b3ab536438 Mon Sep 17 00:00:00 2001 From: sandakersmann Date: Sat, 4 Jun 2016 15:17:54 +0200 Subject: [PATCH 1/2] New block explorer added since bkchain is down New block explorer added since bkchain is down. This solves issue #142 --- app/helpers/application_helper.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index dd38f33e..831897cb 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -26,18 +26,18 @@ def to_btc satoshies end def transaction_url(txid) - "http://bkchain.org/ppc/tx/#{txid}" + "https://chainz.cryptoid.info/ppc/address.dws?#{txid}" end def address_explorers - [:bkchain, :blockr, :cryptocoin] + [:cryptoid, :blockr, :mintr] 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 :blockr then "https://ppc.blockr.io/address/info/#{address}" + when :cryptoid then "https://chainz.cryptoid.info/ppc/address.dws?#{address}" + when :mintr then "https://peercoin.mintr.org/address/#{address}" else raise "Unknown provider: #{provider.inspect}" end end From 7cd1fdc9689451b068e9321986e4d7633e84aab8 Mon Sep 17 00:00:00 2001 From: sandakersmann Date: Sat, 4 Jun 2016 15:24:46 +0200 Subject: [PATCH 2/2] new tx link new tx link --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 831897cb..0c27ca90 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -26,7 +26,7 @@ def to_btc satoshies end def transaction_url(txid) - "https://chainz.cryptoid.info/ppc/address.dws?#{txid}" + "https://chainz.cryptoid.info/ppc/tx.dws?#{txid}" end def address_explorers