sibit 0.21.7 → 0.21.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sibit.rb +8 -3
  3. data/lib/sibit/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50666b6edfe2a5cfe5020fe7e2457b2b79ef3675960d5f3d36f6fc977462d05b
4
- data.tar.gz: 6abb381f5b710c959cecc339d1a0070b6925a14e4bb43652e3f7d9248ca5278e
3
+ metadata.gz: 683996e02ea2ff93aa4bb8e97d369bcd087ba8eb5ebac2cdb8e7df21965c01b1
4
+ data.tar.gz: bbb58ae9442fc83a81a2008e0812959bd0d5895e454519fee13566c1663a51e4
5
5
  SHA512:
6
- metadata.gz: ce15881b3d8f273868c58edb6a95b75782115193ee0b96d6a621eb4df9d7df692c0bee5439f509ca76ee0e3305d55ed438d23b67edd4f5e49d6bf1227b747ba3
7
- data.tar.gz: d299a4f555b8723176c78dbf47c97c7cd02e0cc6c85d51c72b1dc244745d4d6ad74c343cd93266eb805fc1a234ed75548ccc9ffdfee2e5825b857d61a4321514
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
- if block.nil?
228
- @log.info("The next_block is empty in #{json[:hash]}, this may be the end of Blockchain...")
229
- block = @api.next_of(json[:hash])
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
@@ -26,5 +26,5 @@
26
26
  # License:: MIT
27
27
  class Sibit
28
28
  # Current version of the library.
29
- VERSION = '0.21.7'
29
+ VERSION = '0.21.8'
30
30
  end
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.7
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-27 00:00:00.000000000 Z
11
+ date: 2021-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backtrace