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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c373b9d7f8b9b2eb10a266529281e2da241f3162
4
- data.tar.gz: cf5aa7936c7d618267d7a080085fb179e49dff5a
3
+ metadata.gz: e307b644cfbbf02af42ace619f19a1a752bb0ab7
4
+ data.tar.gz: 9dd41341c230f707fc53c4f61ded0b00227589be
5
5
  SHA512:
6
- metadata.gz: 866b5f00a5be4ee761e2397140ef7f9d6371756da035b66b6625f7b20229ad6236e8a734b08d4125373a932468c2f6c363ad16b8fa41afee161a38f7c8b4ee4e
7
- data.tar.gz: 6ed767b45a4159cc6e3c9c97b46df20ef90621e73fe354a945843e541ee23662edde62ed34b4302f985bf6da62e301b06dda6adb655d6a82fc4c005d803c4eae
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
+ ```
@@ -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(['pull', invoice])
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])
@@ -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 debt.in_debt?
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
@@ -25,6 +25,6 @@
25
25
  # Copyright:: Copyright (c) 2018 Yegor Bugayenko
26
26
  # License:: MIT
27
27
  module Zold
28
- VERSION = '0.14.15'
28
+ VERSION = '0.14.16'
29
29
  PROTOCOL = 2
30
30
  end
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.15
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-17 00:00:00.000000000 Z
11
+ date: 2018-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby