sibit 0.18.0 → 0.18.1

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/version.rb +1 -1
  3. data/lib/sibit.rb +4 -5
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6bd701b64312a5b018c9c7545cd0a104953bafab231543932d536a42e04e97bd
4
- data.tar.gz: 83c7f78688df06cd8ea6ddc40f6b328ef40bb81b1feddb11b6be4b9b1c295753
3
+ metadata.gz: 2f810c351d3ad18140344b8b03097f20c41d9dfb01f9155ceeab9fb4f26e4e9c
4
+ data.tar.gz: 2f5cd230919bd8e30208c7de5df603412f6160320a02ff5b5927c2b62688e7b1
5
5
  SHA512:
6
- metadata.gz: adbeaee159b161ad9451954260dc82efddf53871e63943991c2c1de33de4849e117323aad6b95d7dab52cc5a78074bbe89428f172df673713cc84c4551a7a2fb
7
- data.tar.gz: 8b5d2e3c516046838a6a520bf979bfe46d3d71b8fee4063ede6385894d8fc17e934993aa0db5a3ecefd7b23c9e2eeb12a2b998be8f81fd87b6a9f97f69d3d3fb
6
+ metadata.gz: b3cb7ce3b3f8761518114186fd23eaef09d8291d94491a98375d0606a85e35aaf67877c26b53168ce684a4cd066cc23911d06ef8a7cb492e0c0d17047e8b2b2a
7
+ data.tar.gz: 3a861ba62140714344eacf87a69a23a1ba2f49ada6c83de111239ce83e66222437c3647c0a3bf7874a9787391972aab6e4b88d8e8e7b9c122c6a0a84ad4cfcff
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.18.0'
29
+ VERSION = '0.18.1'
30
30
  end
data/lib/sibit.rb CHANGED
@@ -171,7 +171,7 @@ class Sibit
171
171
  # of the starting block. The method will go through the Blockchain,
172
172
  # fetch blocks and find transactions, one by one, passing them to the
173
173
  # callback provided. When finished, the method returns the hash of
174
- # a new block, seen last.
174
+ # a new block, not scanned yet or NIL if it's the end of Blockchain.
175
175
  #
176
176
  # The callback will be called with three arguments:
177
177
  # 1) Bitcoin address of the receiver, 2) transaction hash, 3) amount
@@ -210,12 +210,11 @@ class Sibit
210
210
  checked += 1
211
211
  end
212
212
  @log.info("We checked #{checked} txns and #{checked_outputs} outputs in block #{block}")
213
- n = json[:next]
214
- if n.nil?
215
- @log.info("The next_block is empty in block #{block}, this is the end of Blockchain")
213
+ block = json[:next]
214
+ if block.nil?
215
+ @log.info("The next_block is empty in block #{json[:hash]}, this is the end of Blockchain")
216
216
  break
217
217
  end
218
- block = n
219
218
  count += 1
220
219
  if count > max
221
220
  @log.info("Too many blocks (#{count}) in one go, let's get back to it next time")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sibit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko