zold 0.14.15 → 0.14.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/INSTALL.md +18 -0
- data/lib/zold/commands/node.rb +3 -1
- data/lib/zold/commands/taxes.rb +1 -1
- data/lib/zold/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e307b644cfbbf02af42ace619f19a1a752bb0ab7
|
4
|
+
data.tar.gz: 9dd41341c230f707fc53c4f61ded0b00227589be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dfb89e03e7b8d17d03ab2acd27879d98ff8f1b92fe6dfb425163eeb41380d4c9ea50939f214af14fe82ab2d94a9a17d670b2ac43adfad92241b69644eb895e2
|
7
|
+
data.tar.gz: a613f516ca973bdbc400a92772f34f4c22221c8da628339a6e003d1f855d4e08e496633b947e59846cedd24289c7cf37b0e461fca1100c1d1c55ff96e07e019b
|
data/INSTALL.md
CHANGED
@@ -76,3 +76,21 @@ $ source $HOME/.rvm/scripts/rvm
|
|
76
76
|
$ rvm install 2.5.1
|
77
77
|
$ gem install --no-ri --no-rdoc zold
|
78
78
|
```
|
79
|
+
|
80
|
+
## PFSense Firewall Configuration
|
81
|
+
If your node is behind a pfsense firewall, you will need to make some special configurations in order to allow traffic to properly reach your node.
|
82
|
+
```
|
83
|
+
1) Open the PFSense Web GUI Administration console and navigate to Firewall > NAT > Port Forward, followed by clicking "Add"
|
84
|
+
2) Configure the NAT rules with the following:
|
85
|
+
> Interface: WAN
|
86
|
+
> Protocol: TCP
|
87
|
+
> Source Port: defaults
|
88
|
+
> Destination Port: 4096
|
89
|
+
> Redirect Target IP: the interface on which your node is listening for requests
|
90
|
+
> Redirect Target Port: 4096
|
91
|
+
> Description: Port Forwarding Rule for ZOLD
|
92
|
+
> Filter rule association: pass
|
93
|
+
3) Verify configuration using either of these two methods. If you see a JSON document you have properly setup your node:
|
94
|
+
> CLI: curl <ip>:4096
|
95
|
+
> Browser: http://<ip>:4096
|
96
|
+
```
|
data/lib/zold/commands/node.rb
CHANGED
@@ -160,7 +160,9 @@ module Zold
|
|
160
160
|
else
|
161
161
|
@log.info("The wallet #{invoice} is not available locally, will pull now...")
|
162
162
|
require_relative 'pull'
|
163
|
-
Pull.new(wallets: @wallets, remotes: @remotes, copies: @copies, log: @log).run(
|
163
|
+
Pull.new(wallets: @wallets, remotes: @remotes, copies: @copies, log: @log).run(
|
164
|
+
['pull', invoice, "--network=#{opts['network']}"]
|
165
|
+
)
|
164
166
|
end
|
165
167
|
require_relative 'invoice'
|
166
168
|
invoice = Invoice.new(wallets: @wallets, log: @log).run(['invoice', invoice])
|
data/lib/zold/commands/taxes.rb
CHANGED
@@ -104,7 +104,7 @@ Available options:"
|
|
104
104
|
tax = Tax.new(wallet)
|
105
105
|
debt = tax.debt
|
106
106
|
@log.debug("The current debt is #{debt} (#{debt.to_i} zents)")
|
107
|
-
unless
|
107
|
+
unless tax.in_debt?
|
108
108
|
@log.debug("No need to pay taxes yet, until the debt is less than #{Tax::TRIAL} (#{Tax::TRIAL.to_i} zents)")
|
109
109
|
return
|
110
110
|
end
|
data/lib/zold/version.rb
CHANGED
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.14.
|
4
|
+
version: 0.14.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-07-
|
11
|
+
date: 2018-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|