Skip to content

Add clarification for Bolt11 prefix for regtest#397

Merged
rustyrussell merged 2 commits intolightning:masterfrom
DanielWeigl:master
Apr 30, 2018
Merged

Add clarification for Bolt11 prefix for regtest#397
rustyrussell merged 2 commits intolightning:masterfrom
DanielWeigl:master

Conversation

@DanielWeigl
Copy link
Contributor

The document (and also BIP-0173) does not clarify which prefix bitcoin regtest should use, but bitcoin-core seems to have settled on bcrt (see bitcoin/bitcoin#12314 ), thus the most concise way for bolt11 would be to use lnbcrt...

currently c-lightning and lnd are not compatible if you want to pay invoices in regtest mode, see:

The document (and also BIP-0173) does not clarify which prefix bitcoin regtest should use, but bitcoin-core seems to have settled on `bcrt`, thus the most concise way for bolt11 would be to use `lnbcrt...`

currently c-lightning and lnd are not compatible if you want to pay invoices in regtest mode, see:
- ElementsProject/lightning#1241
- lightningnetwork/lnd#882
sstone added a commit to ACINQ/eclair that referenced this pull request Mar 23, 2018
pm47 pushed a commit to ACINQ/eclair that referenced this pull request Mar 23, 2018
@stevenroose
Copy link

See bitcoin/bips#664.

And this comment from @sipa:

regtest is a Bitcoin Core specific test network. It's not mentioned in the BIP because it's not something that affects Bitcoin.

@DanielWeigl
Copy link
Contributor Author

I understand that this is not necessarily something that needs to be strictly defined but oth I think it makes life much easier if all implementations use the same prefix (or make it configurable at least).

And I think only implicit mention it in the (eg. ... ) should be enough and wont do any harm - or?

@rustyrussell
Copy link
Collaborator

I don't see a problem referencing it here; better to be clear.

@rustyrussell rustyrussell self-requested a review April 11, 2018 03:35
@rustyrussell rustyrussell merged commit 48bbee8 into lightning:master Apr 30, 2018
@dpc
Copy link

dpc commented Feb 3, 2020

I'm looking around trying to find some arguments why would we even need a different prefix for a regtest network, and I don't really see any, while there's a lot of reasons not to have it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants