onchain 2.11 → 2.12

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: 37620347d276dbb06380d75daf4a64352ba4bbb5
4
- data.tar.gz: f4324683549de22621531fa841eeadaec1bf21c1
3
+ metadata.gz: ce567b41960ed48b8522da199ec5e54a14728464
4
+ data.tar.gz: aa6b26e696229a0ab68bd8c7192c227e01053207
5
5
  SHA512:
6
- metadata.gz: 6eb80d1825a3ef44c1b5b167aa35fa84f7d03d387833ecc9d95f01b7480b2f8d0185ba77d2bb6e58c389c2cceeee726779859d18ad9425c8ca5836d77ba86137
7
- data.tar.gz: 7f2e92679a9e926a8e46f3292339fd9928d386855c6c20306a19450f99b0bb19d87044099692ad14cea013938faef2b4aedb942992b2a2d7d19eab66dc4b9199
6
+ metadata.gz: 67dc3675d14b0f92b2e37cb5586eb81d07c06c2cb2755806b25f130fa12cd13f9fd86de3a69cef51a9c4578422f6ad4691db76d76739f6da08a225656a418cb7
7
+ data.tar.gz: 8bee778795273d7ce344ac3f541dd1df74ce0f79fb64dac87cd628bded807a5dbfdaa6c61f65376e9c5d3fc259ff1eaeba363b258d47a4f4d3640bb5068943d6
@@ -59,6 +59,17 @@ class OnChain::BlockChain
59
59
  end
60
60
 
61
61
  end
62
+
63
+ def get_history_for_addresses(addresses, network = :bitcoin)
64
+ history = []
65
+ addresses.each do |address|
66
+ res = address_history(address, network)
67
+ res.each do |r|
68
+ history << r
69
+ end
70
+ end
71
+ return history
72
+ end
62
73
 
63
74
  # Given a list of addresses, return those
64
75
  # that don't have balances in the cahce.
@@ -1,17 +1,5 @@
1
1
  class OnChain::BlockChain
2
2
  class << self
3
-
4
-
5
- def blockinfo_get_history_for_addresses(addresses, network = :testnet3)
6
- history = []
7
- addresses.each do |address|
8
- res = blockinfo_address_history(address)
9
- res.each do |r|
10
- history << r
11
- end
12
- end
13
- return history
14
- end
15
3
 
16
4
  def blockinfo_address_history(address)
17
5
 
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: '2.11'
4
+ version: '2.12'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Number 6