zold 0.22.1 → 0.22.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d50cb5eed786603d787de81db031216d416178af36f172b539d75fcdb944546d
4
- data.tar.gz: f7839b40f6749768636948106d61a10c0251156bcc24b7e5012d9f10964daac1
3
+ metadata.gz: 2764494d95c5735d838e532a867436d7d9ce7248818051d961c0be042972901e
4
+ data.tar.gz: 0c21c31a8b4ca6acdefbad5d5e7d2506806b3886f33a536def034eb4ef371041
5
5
  SHA512:
6
- metadata.gz: cb8a213e6d5f13fae1c35f051caf3a9c8ade80d6199352f9d640544802ab603a0ae6d39a3a190c548350a0078d98149e7bdc5a67c421fc7dd441b387852585bf
7
- data.tar.gz: 274a6a6ae2f7265bc76e6480aa93e21d7631efe33c77bbacc2612d9b1b00b1fbd23ec6c429d66a68ac4faacb885387331e169a77143f364e45e47366bdcd7e3b
6
+ metadata.gz: 1bc14efbd4e9ac71f4ebf8dbbde7c8b6c109e3de4958b15ef076ed86c22fb1de17c277c79ce8c293ba5c6d71ead62e5f4f9664227d343a0aa2858c9ca7eb07f9
7
+ data.tar.gz: 0354532534df852f7bdd5eecc650a65274fc64e19b351933e6f78322879359dd1e517a18a7b2e62c343802680f33772c09ab55822768d5dabb66d6a4173966cd
@@ -346,7 +346,7 @@ module Zold
346
346
  # Returns exit code
347
347
  def exec(cmd, nohup_log)
348
348
  start = Time.now
349
- Open3.popen2e(cmd) do |stdin, stdout, thr|
349
+ Open3.popen2e({ 'MALLOC_ARENA_MAX' => '2' }, cmd) do |stdin, stdout, thr|
350
350
  nohup_log.print("Started process ##{thr.pid} from process ##{Process.pid}: #{cmd}\n")
351
351
  stdin.close
352
352
  until stdout.eof?
@@ -162,8 +162,11 @@ the balance is #{wallet.balance}: #{tax.to_text}")
162
162
  @log.debug('Read the White Paper for more details: https://papers.zold.io/wp.pdf')
163
163
  end
164
164
 
165
- def show(_, _)
166
- raise 'Not implemented yet'
165
+ def show(wallet, _)
166
+ raise 'The wallet is absent' unless wallet.exists?
167
+ tax = Tax.new(wallet)
168
+ @log.info(tax.to_text)
169
+ @log.info('Read the White Paper for more details: https://papers.zold.io/wp.pdf')
167
170
  end
168
171
 
169
172
  def top_scores(opts)
data/lib/zold/hands.rb CHANGED
@@ -40,7 +40,7 @@ module Zold
40
40
  private_constant :QUEUE
41
41
 
42
42
  # Start
43
- def self.start(max = Concurrent.processor_count * 8)
43
+ def self.start(max = [Concurrent.processor_count * 8, 32].min)
44
44
  while POOL.count < max
45
45
  POOL.add do
46
46
  Endless.new('hands').run do
data/lib/zold/version.rb CHANGED
@@ -25,7 +25,7 @@
25
25
  # Copyright:: Copyright (c) 2018 Yegor Bugayenko
26
26
  # License:: MIT
27
27
  module Zold
28
- VERSION = '0.22.1'
28
+ VERSION = '0.22.2'
29
29
  PROTOCOL = 2
30
30
  REPO = 'zold-io/zold'
31
31
  end
data/test/test_zold.rb CHANGED
@@ -57,9 +57,9 @@ class TestZold < Zold::Test
57
57
  assert_equal(0, code, "#{f}\n#{out.join}")
58
58
  end
59
59
  end
60
+ sleep 0.2
60
61
  end
61
62
  test_log.info("\n\n#{f} done in #{Zold::Age.new(start)}")
62
- sleep 1
63
63
  end
64
64
  end
65
65
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zold
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.1
4
+ version: 0.22.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
@@ -746,7 +746,7 @@ licenses:
746
746
  - MIT
747
747
  metadata: {}
748
748
  post_install_message: |-
749
- Thanks for installing Zold 0.22.1!
749
+ Thanks for installing Zold 0.22.2!
750
750
  Study our White Paper: https://papers.zold.io/wp.pdf
751
751
  Read our blog posts: https://blog.zold.io
752
752
  Try ZLD online wallet at: https://wts.zold.io