zold 0.10.15 → 0.10.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a87eddea5b308967bc484e96b0e77d03b19b232
4
- data.tar.gz: 468a3b3b12fa6bc26fdb21e25cd073759364ed80
3
+ metadata.gz: 536093f30ee45d39b82fbc770313fce6128ac912
4
+ data.tar.gz: 24babf9751c618fd19ca6cb4ae0bcd1459995ff9
5
5
  SHA512:
6
- metadata.gz: 785d1429314e329a6d1b3ef64e6a141d5760bd80e3c6617188be896fc5722ccb7a8c48a2dfb994e035ede9ff79389b927ec2639c8b5b4173f7191d97435cccb0
7
- data.tar.gz: '081635a802b60e7070eddbffc99e86d18a62e09f103b76fbd334fa0a55ccc583d0fef3d973496ad88a0e7eb146996ce06d9e1132c121735ee6e01dbe83485a43'
6
+ metadata.gz: d892b348b6b8b60e59d3543efc5d2634c33d8ca7083436df2295ba9de24ab06471fd926b722e701aa7593b4d85911598d32eb7546f82d27288dbe435923230ac
7
+ data.tar.gz: 79e9f411780263871b9c39d22d47a5a68cb8c6ba65b57f3fe3df538127e30031ec152e43ab33c21d1f91b290fc249d4aae1d53dd091c3a4ce34e0359ac212f4a
@@ -59,9 +59,15 @@ module Zold
59
59
  end
60
60
 
61
61
  before do
62
- header = request.env["HTTP-#{Http::SCORE_HEADER}".upcase.tr('-', '_')]
63
- return unless header
64
- return if settings.remotes.all.empty?
62
+ name = "HTTP-#{Http::SCORE_HEADER}".upcase.tr('-', '_')
63
+ header = request.env[name]
64
+ unless header
65
+ settings.log.debug("#{request.url}: HTTP header #{Http::SCORE_HEADER} is absent (#{name})")
66
+ return
67
+ end
68
+ if settings.remotes.all.empty?
69
+ settings.log.debug("#{request.url}: we are in standalone mode, won't update remotes")
70
+ end
65
71
  s = Score.parse_text(header)
66
72
  error(400, 'The score is invalid') unless s.valid?
67
73
  error(400, 'The score is weak') if s.strength < Score::STRENGTH && !settings.ignore_score_weakness
@@ -139,12 +145,7 @@ module Zold
139
145
  JSON.pretty_generate(
140
146
  version: VERSION,
141
147
  score: score.to_h,
142
- all: settings.remotes.all.map do |r|
143
- {
144
- host: r[:host],
145
- port: r[:port]
146
- }
147
- end
148
+ all: settings.remotes.all
148
149
  )
149
150
  end
150
151
 
data/lib/zold/version.rb CHANGED
@@ -23,5 +23,5 @@
23
23
  # Copyright:: Copyright (c) 2018 Yegor Bugayenko
24
24
  # License:: MIT
25
25
  module Zold
26
- VERSION = '0.10.15'.freeze
26
+ VERSION = '0.10.16'.freeze
27
27
  end
data/wp/wp.tex CHANGED
@@ -39,14 +39,14 @@
39
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
- based on the principles of Blockchain architecture, including the
42
+ based on the principles of Blockchain architecture, including
43
43
  dominating currencies like Bitcoin and Etherium. Despite its
44
- popularity, Blockchain is not the only possible solution and is not the best
44
+ popularity, Blockchain is not the best possible solution for all scenarios. One such example is
45
45
  for fast micro-payments.
46
46
  Zold is an \emph{experimental} alternative that enables distributed transactions between
47
47
  anonymous users, making micro-payments financially feasible.
48
48
  It borrows the ``proof of work'' principle from Bitcoin,
49
- and suggests a different architecture for digital wallets maintenance.
49
+ and suggests a different architecture for digital wallet maintenance.
50
50
  \end{abstract}
51
51
 
52
52
  \section{Motivation}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zold
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.15
4
+ version: 0.10.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-31 00:00:00.000000000 Z
11
+ date: 2018-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby