lib/equestreum.rb in equestreum-0.1.1 vs lib/equestreum.rb in equestreum-0.1.2
- old
+ new
@@ -1,16 +1,18 @@
require 'digest'
+require 'singleton'
+require 'yaml'
require 'equestreum/version'
require 'equestreum/config'
require 'equestreum/block'
require 'equestreum/chain'
module Equestreum
- def self.hash nonce, difficulty, prev, data
+ def self.hash nonce, time, difficulty, prev, data
string = '%s%s%s%s%s' % [
nonce,
- Time.now.to_i,
+ time,
'0' * difficulty,
prev,
data
]