onchain 3.04 → 3.05
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/onchain/block_chain.rb +6 -2
- data/lib/onchain/providers/blockchaininfo_api.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1a7afb78ad1d80015e3a8a67663d80967eb73da
|
4
|
+
data.tar.gz: 3743c11c1174a8aabac0f4f8e7fb66b09bac838d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b272549c5750af3f327baae12d304c4afea9a1eabcd334f2de02c5c4d45a0f1d6a03d161b02526c387bcb1a0051b0df4a46db8e20fe2c3bcd07d59b5f787cd25
|
7
|
+
data.tar.gz: a4e2fe822837a83399524ba9adc1b354e36d6cbcb3b6cf2dd3530c5322816b546522aee042a890c54d5371282baad974ad298958f94d64b99f992351bb3a1c2d
|
data/lib/onchain/block_chain.rb
CHANGED
@@ -107,7 +107,7 @@ class OnChain::BlockChain
|
|
107
107
|
end
|
108
108
|
|
109
109
|
def get_balance_satoshi(address, network = :bitcoin)
|
110
|
-
return (get_balance(address, network
|
110
|
+
return (get_balance(address, network).to_f * 100000000).to_i
|
111
111
|
end
|
112
112
|
|
113
113
|
def get_available_suppliers(method_name, network)
|
@@ -123,7 +123,7 @@ class OnChain::BlockChain
|
|
123
123
|
next
|
124
124
|
end
|
125
125
|
|
126
|
-
if supplier == :insight and ! [:bitcoin
|
126
|
+
if supplier == :insight and ! [:bitcoin].include? network
|
127
127
|
next
|
128
128
|
end
|
129
129
|
|
@@ -147,6 +147,10 @@ class OnChain::BlockChain
|
|
147
147
|
next
|
148
148
|
end
|
149
149
|
|
150
|
+
if supplier == :insight and method_name.to_s == 'get_address_info'
|
151
|
+
next
|
152
|
+
end
|
153
|
+
|
150
154
|
if supplier == :blockr and network == :bitcoin and method_name.to_s == 'get_history_for_addresses'
|
151
155
|
next
|
152
156
|
end
|