lib/zold/node/front.rb in zold-0.16.27 vs lib/zold/node/front.rb in zold-0.16.28

- old
+ new

@@ -432,22 +432,22 @@ # @todo #513:30min This method is temporarily disabled since it # takes a lot of time (when the amount of wallets is big, like 40K). However, # we must find a way to count them somehow faster. def total_wallets - return 256 if settings.opts['network'] == Wallet::MAIN_NETWORK + return 256 if settings.opts['network'] == Wallet::MAINET settings.wallets.all.count end def all_remotes - settings.zache.get(:remotes, lifetime: settings.opts['network'] == Wallet::MAIN_NETWORK ? 60 : 0) do + settings.zache.get(:remotes, lifetime: settings.opts['network'] == Wallet::MAINET ? 60 : 0) do settings.remotes.all end end def processes_count - settings.zache.get(:processes, lifetime: settings.opts['network'] == Wallet::MAIN_NETWORK ? 60 : 0) do + settings.zache.get(:processes, lifetime: settings.opts['network'] == Wallet::MAINET ? 60 : 0) do processes.count end end def processes @@ -457,11 +457,11 @@ def pretty(json) JSON.pretty_generate(json) end def score - settings.zache.get(:score, lifetime: settings.opts['network'] == Wallet::MAIN_NETWORK ? 60 : 0) do + settings.zache.get(:score, lifetime: settings.opts['network'] == Wallet::MAINET ? 60 : 0) do b = settings.farm.best raise 'Score is empty, there is something wrong with the Farm!' if b.empty? b[0] end end @@ -474,10 +474,10 @@ content_type(type) yield wallet end end - def running_server? + def running_server false end end end