work movement to other machine

This commit is contained in:
2025-11-23 10:05:12 -05:00
parent f76ff718a0
commit 63d334eb48
4 changed files with 61 additions and 18 deletions
+11
View File
@@ -0,0 +1,11 @@
module Mozo
module Lnd
def self.client
credentials = File.read(Rails.application.config.lnd_credentials_path)
macaroon = File.read(Rails.application.config.lnd_macaroon_path).unpack("H*")
#Lnrpc::Lightning::Stub.new("localhost:10009", GRPC::Core::ChannelCredentials.new(credentials))
lnd = Lnrpc::Client.new(credentials_path: Rails.application.config.lnd_credentials_path, macaroon_path: Rails.application.config.lnd_macaroon_path)
end
end
end