zold 0.10.14 → 0.10.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/zold/node/farm.rb +0 -1
- data/lib/zold/version.rb +1 -1
- data/test/node/test_farm.rb +12 -0
- data/wp/wp.tex +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a87eddea5b308967bc484e96b0e77d03b19b232
|
4
|
+
data.tar.gz: 468a3b3b12fa6bc26fdb21e25cd073759364ed80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 785d1429314e329a6d1b3ef64e6a141d5760bd80e3c6617188be896fc5722ccb7a8c48a2dfb994e035ede9ff79389b927ec2639c8b5b4173f7191d97435cccb0
|
7
|
+
data.tar.gz: '081635a802b60e7070eddbffc99e86d18a62e09f103b76fbd334fa0a55ccc583d0fef3d973496ad88a0e7eb146996ce06d9e1132c121735ee6e01dbe83485a43'
|
data/lib/zold/node/farm.rb
CHANGED
data/lib/zold/version.rb
CHANGED
data/test/node/test_farm.rb
CHANGED
@@ -34,4 +34,16 @@ class FarmTest < Minitest::Test
|
|
34
34
|
farm.stop
|
35
35
|
end
|
36
36
|
end
|
37
|
+
|
38
|
+
def test_correct_score_from_empty_farm
|
39
|
+
Dir.mktmpdir 'test' do |dir|
|
40
|
+
farm = Zold::Farm.new('NOPREFIX@cccccccccccccccc', File.join(dir, 'f'))
|
41
|
+
farm.start('example.com', 8080, threads: 0, strength: 1)
|
42
|
+
score = farm.best[0]
|
43
|
+
assert_equal(0, score.value)
|
44
|
+
assert_equal('example.com', score.host)
|
45
|
+
assert_equal(8080, score.port)
|
46
|
+
farm.stop
|
47
|
+
end
|
48
|
+
end
|
37
49
|
end
|
data/wp/wp.tex
CHANGED
@@ -36,7 +36,7 @@
|
|
36
36
|
|
37
37
|
\maketitle
|
38
38
|
\begin{abstract}
|
39
|
-
In the last few years digital currencies successfully demonstrated
|
39
|
+
In the last few years digital currencies have successfully demonstrated
|
40
40
|
their ability to become an alternative financial instrument in many
|
41
41
|
different markets. Most of the technologies available at the moment are
|
42
42
|
based on the principles of Blockchain architecture, including the
|