lib/sibit.rb in sibit-0.18.1 vs lib/sibit.rb in sibit-0.18.2

- old
+ new

@@ -179,10 +179,11 @@ # found was useful. def scan(start, max: 4) block = start count = 0 wrong = [] + json = {} loop do json = first_one { |api| api.block(block) } if json[:orphan] steps = 4 @log.info("Orphan block found at #{block}, moving #{steps} steps back...") @@ -219,10 +220,10 @@ if count > max @log.info("Too many blocks (#{count}) in one go, let's get back to it next time") break end end - block + json[:hash] end private def first_one