lib/cryptoruby/blockchain.rb in cryptoruby-0.1.2 vs lib/cryptoruby/blockchain.rb in cryptoruby-0.1.3

- old
+ new

@@ -25,10 +25,10 @@ def is_valid? blocks[1..-1].sort_by{|block| block.index }.each_with_index do |current_block, index| previous_block = blocks[index] if current_block.hash != current_block.digest_hash - p 'Hash is different from digest' + p "Hash is different from digest on block of index #{index + 1}" return false end if current_block.index != previous_block.index + 1 p 'Index is not sequential' \ No newline at end of file