Closed bumi closed 5 years ago
Simnet parameters seems to have changed... iirc simnet used to use testnet prefixes etc.
1 is easy. Pull requests welcome.
2 is a little harder.
Thanks for the report.
As the coininfo package is used, it seems the simnet data has to be added there: https://github.com/cryptocoinjs/coininfo/blob/master/lib/coins/btc.js need to see how different the simnet data is from regtest.
Published 2 as 1.2.6
If someone wants to add an optional network arg to encode as well, PRs are welcome.
But since decode is most likely to have weird versions fed to it, apps should specify the bech32 header they will expect of their users.
For local development purposes I am using a lnd simnet cluster as described here in the lnd docs
bolt11 currently does not support decoding payment requests created from a lnd node running in simnet.
Code
Error: