|
@ -42,7 +42,7 @@ def test_invoice(node_factory, chainparams): |
|
|
b11 = inv['bolt11'] |
|
|
b11 = inv['bolt11'] |
|
|
# Amount usually comes after currency (bcrt in our case), |
|
|
# Amount usually comes after currency (bcrt in our case), |
|
|
# but an any-amount invoices will have no amount |
|
|
# but an any-amount invoices will have no amount |
|
|
assert b11.startswith("lnbcrt1") |
|
|
assert b11.startswith("ln" + chainparams['bip173_prefix']) |
|
|
# By bech32 rules, the last '1' digit is the separator |
|
|
# By bech32 rules, the last '1' digit is the separator |
|
|
# between the human-readable and data parts. We want |
|
|
# between the human-readable and data parts. We want |
|
|
# to match the "lnbcrt1" above with the '1' digit as the |
|
|
# to match the "lnbcrt1" above with the '1' digit as the |
|
|