Open sgiammy opened 2 years ago
as seen here https://github.com/BlueWallet/rn-ldk/blob/aefb83eabf6704fb4662199a1a49aff4b499abbb/src/index.tsx#L389
result of channel opening is bitcoin script, not address.
Script is then turned into address via simple lambda function on server ( https://github.com/BlueWallet/rn-ldk/blob/aefb83eabf6704fb4662199a1a49aff4b499abbb/src/index.tsx#L242 ), but you can override that behaviour by injecting your own implementation (see provideScript2addressFunc
)
I'd like to run the iOS example on testnet instead of mainnet.
Even after changing the
network
parameter in theChannelManagerConstructor
fromLDKNetwork_Bitcoin
toLDKNetwork_Testnet
here, after clickingopenChannelStep1
, the generated address to fund is still a bitcoin one.From my understanding the address is generated by the lightning dev kit binaries, so I was wondering what else should I do to make it generate a Testnet address.
please help if you got solution for it.
I'd like to run the iOS example on testnet instead of mainnet.
Even after changing the
network
parameter in theChannelManagerConstructor
fromLDKNetwork_Bitcoin
toLDKNetwork_Testnet
here, after clickingopenChannelStep1
, the generated address to fund is still a bitcoin one.From my understanding the address is generated by the lightning dev kit binaries, so I was wondering what else should I do to make it generate a Testnet address.