txcatcher 0.1.96 → 0.1.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/bin/txcatcher-monitor +4 -5
- data/txcatcher.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f29dc9fd87fb3bbe08472158795885dfd87077f062ed4d9864c19d34b06b3707
|
|
4
|
+
data.tar.gz: bf39521a2f5fb5717f6ecdf39fb032b5240de2f3536350c4fbbba360c65b1aac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ee2b7e2ef677b9b9bf4d48a69942f5a4bf98fd9dc699f3f2ae308b47cc3e37e7274e1e8a6788bb1ea120e92c4d787597c790513e6d0c27cfdcdb482ac610f064
|
|
7
|
+
data.tar.gz: 973b747061bd98656e795c039af4e38a519c8459bfb24f90442db82252efe4daf700f8cba7c8a6c866b6b4624c4261de360b6ac774516a50e94566492a150938
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.97
|
data/bin/txcatcher-monitor
CHANGED
|
@@ -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 =
|
|
135
|
-
req.options.open_timeout =
|
|
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
|
|
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.
|
|
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.
|
|
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]
|