sibit 0.18.0 → 0.18.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sibit/version.rb +1 -1
- data/lib/sibit.rb +4 -5
- 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: 2f810c351d3ad18140344b8b03097f20c41d9dfb01f9155ceeab9fb4f26e4e9c
|
4
|
+
data.tar.gz: 2f5cd230919bd8e30208c7de5df603412f6160320a02ff5b5927c2b62688e7b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3cb7ce3b3f8761518114186fd23eaef09d8291d94491a98375d0606a85e35aaf67877c26b53168ce684a4cd066cc23911d06ef8a7cb492e0c0d17047e8b2b2a
|
7
|
+
data.tar.gz: 3a861ba62140714344eacf87a69a23a1ba2f49ada6c83de111239ce83e66222437c3647c0a3bf7874a9787391972aab6e4b88d8e8e7b9c122c6a0a84ad4cfcff
|
data/lib/sibit/version.rb
CHANGED
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,
|
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
|
-
|
214
|
-
if
|
215
|
-
@log.info("The next_block is empty in block #{
|
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")
|