onchain 3.04 → 3.05

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08143eaa0088555db570b1753e35296579d39d9f
4
- data.tar.gz: 93ae2b84fa4ab2d904e0f68b212ecacef8ddeab7
3
+ metadata.gz: b1a7afb78ad1d80015e3a8a67663d80967eb73da
4
+ data.tar.gz: 3743c11c1174a8aabac0f4f8e7fb66b09bac838d
5
5
  SHA512:
6
- metadata.gz: 6d6b4389413c6cfeffe25004dd6a42de12d0aede7065dd519814fcbc7899f84274b88143f9bf5c6c4bb2ba3a30a6a9cf5c0e7bc561fa58b64eb58cb9d53384f8
7
- data.tar.gz: b9de2baff98ffbef86cb849a47a592a0959327ccfb2c7629ae0bca8873611dc2316c09333d909e892d3e16fbe22a5641ad73efa41b43f2a16661e15aaf4e52cb
6
+ metadata.gz: b272549c5750af3f327baae12d304c4afea9a1eabcd334f2de02c5c4d45a0f1d6a03d161b02526c387bcb1a0051b0df4a46db8e20fe2c3bcd07d59b5f787cd25
7
+ data.tar.gz: a4e2fe822837a83399524ba9adc1b354e36d6cbcb3b6cf2dd3530c5322816b546522aee042a890c54d5371282baad974ad298958f94d64b99f992351bb3a1c2d
@@ -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 = :bitcoin).to_f * 100000000).to_i
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, :testnet3].include? network
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
@@ -92,7 +92,7 @@ class OnChain::BlockChain
92
92
  end
93
93
  end
94
94
 
95
- def blockinfo_get_unspent_outs(address)
95
+ def blockinfo_get_unspent_outs(address, network = :bitcoin)
96
96
  base_url = "https://blockchain.info/unspent?active=#{address}"
97
97
  json = fetch_response(base_url, true)
98
98
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onchain
3
3
  version: !ruby/object:Gem::Version
4
- version: '3.04'
4
+ version: '3.05'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Number 6