txcatcher 0.1.96 → 0.1.97

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
  SHA256:
3
- metadata.gz: a84ba0ec38d835805fd6733e63b8c4c71e28c3c42903f031a9971f748b301f08
4
- data.tar.gz: 9dc97decac2897db457cce0d0a602ff91adcf939c6a31f31b4bacaf34b005903
3
+ metadata.gz: f29dc9fd87fb3bbe08472158795885dfd87077f062ed4d9864c19d34b06b3707
4
+ data.tar.gz: bf39521a2f5fb5717f6ecdf39fb032b5240de2f3536350c4fbbba360c65b1aac
5
5
  SHA512:
6
- metadata.gz: 814aa0291e2e83c6f6a3ff4219b97bcb0123b0533626640512ae04c80d467262806a618c3559b8ecf0ef25b7df1e2ae8ffcd30bb16017145a36f9c7095555705
7
- data.tar.gz: b5888deeab41df245f666084190d88ff87e463d5e1c67e9246330184758eb0db6d206cf8caa24a5940dd79431f52a810d12002e560887d96eaba26fb3b26cb79
6
+ metadata.gz: ee2b7e2ef677b9b9bf4d48a69942f5a4bf98fd9dc699f3f2ae308b47cc3e37e7274e1e8a6788bb1ea120e92c4d787597c790513e6d0c27cfdcdb482ac610f064
7
+ data.tar.gz: 973b747061bd98656e795c039af4e38a519c8459bfb24f90442db82252efe4daf700f8cba7c8a6c866b6b4624c4261de360b6ac774516a50e94566492a150938
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.96
1
+ 0.1.97
@@ -131,8 +131,8 @@ end
131
131
  def fetch_txcatcher_for_addr(addr)
132
132
  response = Faraday.get do |req|
133
133
  req.url TxCatcher::Config["monitor"]["txcatcher_url"] + "/addr/#{addr}/utxo"
134
- req.options.timeout = 5
135
- req.options.open_timeout = 5
134
+ req.options.timeout = 15
135
+ req.options.open_timeout = 15
136
136
  end
137
137
  JSON.parse(response.body)
138
138
  end
@@ -147,8 +147,6 @@ attempts = 0
147
147
  addr = nil
148
148
  while attempts < 3 && (response.nil? || response.empty?)
149
149
 
150
- url = TxCatcher::Config["monitor"]["txcatcher_url"] + "/addr/#{addr}/utxo"
151
-
152
150
  attempts += 1
153
151
  begin
154
152
 
@@ -160,6 +158,7 @@ while attempts < 3 && (response.nil? || response.empty?)
160
158
  addr_index += 1
161
159
  end until addr != a || addr_index > 5
162
160
  addr = a
161
+ url = TxCatcher::Config["monitor"]["txcatcher_url"] + "/addr/#{addr}/utxo"
163
162
 
164
163
  response = fetch_txcatcher_response(addr, sleep_time: TxCatcher::Config["monitor"]["retry_sleep_time"] )
165
164
 
@@ -186,7 +185,7 @@ while attempts < 3 && (response.nil? || response.empty?)
186
185
  # Greater chance to have new transactions on blockcypher and new addresses to check.
187
186
  # This error could simply be due to a long list of tx utxos that's being loaded
188
187
  # and connection timeout hitting before that.
189
- sleep 15
188
+ sleep TxCatcher::Config["monitor"]["retry_sleep_time"]
190
189
  end
191
190
  end # begin/rescue
192
191
  end #while
data/txcatcher.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: txcatcher 0.1.96 ruby lib
5
+ # stub: txcatcher 0.1.97 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "txcatcher"
9
- s.version = "0.1.96"
9
+ s.version = "0.1.97"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: txcatcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.96
4
+ version: 0.1.97
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Snitko