progress today, clicking and fixing
This commit is contained in:
@@ -7,5 +7,19 @@ module Mozo
|
||||
lnd = Lnrpc::Client.new(credentials_path: Rails.application.config.lnd_credentials_path, macaroon_path: Rails.application.config.lnd_macaroon_path)
|
||||
end
|
||||
|
||||
def self.get_info
|
||||
begin
|
||||
client.lightning.get_info
|
||||
|
||||
|
||||
rescue StandardError => exception
|
||||
if exception&.message =~ /wallet locked/
|
||||
Rails.logger.fatal 'FATAL: LND wallet locked'
|
||||
#TODO handle wallet locket
|
||||
end
|
||||
raise exception
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user