sibit 0.21.7 → 0.21.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sibit.rb +8 -3
- data/lib/sibit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 683996e02ea2ff93aa4bb8e97d369bcd087ba8eb5ebac2cdb8e7df21965c01b1
|
4
|
+
data.tar.gz: bbb58ae9442fc83a81a2008e0812959bd0d5895e454519fee13566c1663a51e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec3ace5b68abc1eefbbf6f3e86067c83c48d709ff418b956a3032bb8c0c5482a01e8f1ba258d640e975a67ab95bd1c805eb9e3308b1416f83e8f77fd2fc5d05d
|
7
|
+
data.tar.gz: cc63682837655ec6f790b4d108fd13d35d07eff5c72b40da164c791e5b39f4b8ef799310ff221843da7803773353cacd9dbfeeb9088a9fee4e22194ddea3dd16
|
data/lib/sibit.rb
CHANGED
@@ -224,9 +224,14 @@ class Sibit
|
|
224
224
|
@log.info("We checked #{checked} txns and #{checked_outputs} outputs \
|
225
225
|
in block #{block} (by #{json[:provider]})")
|
226
226
|
block = json[:next]
|
227
|
-
|
228
|
-
|
229
|
-
|
227
|
+
begin
|
228
|
+
if block.nil?
|
229
|
+
@log.info("The next_block is empty in #{json[:hash]}, this may be the end...")
|
230
|
+
block = @api.next_of(json[:hash])
|
231
|
+
end
|
232
|
+
rescue Sibit::Error => e
|
233
|
+
@log.info("Failed to get the next_of(#{json[:hash]}), quitting: #{e.message}")
|
234
|
+
break
|
230
235
|
end
|
231
236
|
if block.nil?
|
232
237
|
@log.info("The block #{json[:hash]} is definitely the end of Blockchain, we stop.")
|
data/lib/sibit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sibit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.21.
|
4
|
+
version: 0.21.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backtrace
|