mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-25 13:12:11 +02:00
mobile: add note about using lnddir
On both Android and iOS (when not using a simulator) the application procees doesn't have write permissions to the default lnd directory. This commit adds a note about using the app directory given by the used platform.
This commit is contained in:
@@ -20,6 +20,10 @@ import (
|
|||||||
// The unlockerReady callback is called when the WalletUnlocker service is
|
// The unlockerReady callback is called when the WalletUnlocker service is
|
||||||
// ready, and rpcReady is called after the wallet has been unlocked and lnd is
|
// ready, and rpcReady is called after the wallet has been unlocked and lnd is
|
||||||
// ready to accept RPC calls.
|
// ready to accept RPC calls.
|
||||||
|
//
|
||||||
|
// NOTE: On mobile platforms the '--lnddir` argument should be set to the
|
||||||
|
// current app directory in order to ensure lnd has the permissions needed to
|
||||||
|
// write to it.
|
||||||
func Start(extraArgs string, unlockerReady, rpcReady Callback) {
|
func Start(extraArgs string, unlockerReady, rpcReady Callback) {
|
||||||
// Split the argument string on "--" to get separated command line
|
// Split the argument string on "--" to get separated command line
|
||||||
// arguments.
|
// arguments.
|
||||||
|
Reference in New Issue
Block a user