mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-04 06:44:24 +01:00
invoice: allow creation of giant invoices.
https://github.com/lightningnetwork/lightning-rfc/pull/877 talks about removing this restriction (only Electrum actually enforced it on receive), so start by allowing creation of giant invoices, though we mark them as requiring mpp. Changelog-Changed: JSON-RPC: `invoice` now allows creation of giant invoices (>= 2^32 msat) Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -54,9 +54,9 @@ def test_invoice(node_factory, chainparams):
|
||||
assert 'routes' not in b11
|
||||
assert 'warning_capacity' in inv
|
||||
|
||||
# Make sure no wumbo invoices
|
||||
with pytest.raises(RpcError, match=r'msatoshi cannot exceed 4294967295msat'):
|
||||
l2.rpc.invoice(4294967295 + 1, 'inv3', '?')
|
||||
# Make sure wumbo invoices warn about mpp being needed.
|
||||
inv = l2.rpc.invoice(4294967295 + 1, 'inv4', '?')
|
||||
assert 'warning_mpp' in inv
|
||||
l2.rpc.invoice(4294967295, 'inv3', '?')
|
||||
|
||||
# Test cltv option.
|
||||
|
||||
Reference in New Issue
Block a user