LNP-WG / lnp-node

Lightning network protocol daemon (suitable for generalized Lightning Network)
MIT License
145 stars 40 forks source link

lnp-node address not have regtest prefix 'bcrt' #48

Closed crisdut closed 2 years ago

crisdut commented 2 years ago

Classify the bug

Describe the problem The 'lnp-node' return the testnet prefix ('tb') instead of regtest prefix ('bcrt').

To Reproduce Steps to reproduce the behavior:

  1. Initialize 'lnpd' with '--chain=regtest' argument
  2. Set your master xpriv (Ex: tprv9s21Z....vSexk)
  3. Running 'lnpd' with '--chain=regtest' argument
  4. Execute 'lnp-cli funds' command

Other Links

dr-orlovsky commented 2 years ago

Thank you! Will investigate and fix

crisdut commented 2 years ago

Hi @dr-orlovsky,

This issue is not a bug, but a side effect of the bip32 strict encode.

I explore this topic more here.