@@ -671,7 +671,7 @@ def test_xpay_bolt12_no_mpp(node_factory, chainparams, deprecations):
671671
672672 # Amount needs to be enought that it bothers splitting, but not
673673 # so much that it can't pay without mpp.
674- AMOUNT = 500000000
674+ AMOUNT = 800000000
675675
676676 # l2 will advertize mpp, l3 won't.
677677 l2offer = l2 .rpc .offer (AMOUNT , 'test_xpay_bolt12_no_mpp' )
@@ -686,10 +686,11 @@ def test_xpay_bolt12_no_mpp(node_factory, chainparams, deprecations):
686686 assert ret ['failed_parts' ] == 0
687687 if deprecations :
688688 assert ret ['successful_parts' ] == 2
689+ assert ret ['amount_sent_msat' ] == AMOUNT + AMOUNT // 100000 + 2
689690 else :
690691 assert ret ['successful_parts' ] == 1
692+ assert ret ['amount_sent_msat' ] == AMOUNT + AMOUNT // 100000 + 1
691693 assert ret ['amount_msat' ] == AMOUNT
692- assert ret ['amount_sent_msat' ] == AMOUNT + AMOUNT // 100000 + 1
693694
694695
695696def test_xpay_slow_mode (node_factory , bitcoind ):
@@ -706,18 +707,18 @@ def test_xpay_slow_mode(node_factory, bitcoind):
706707 wait_for (lambda : len (l1 .rpc .listchannels ()['channels' ]) == 10 )
707708
708709 # First try an MPP which fails
709- inv = l5 .rpc .invoice (500000000 , 'test_xpay_slow_mode_fail' , 'test_xpay_slow_mode_fail' , preimage = '01' * 32 )['bolt11' ]
710+ inv = l5 .rpc .invoice (800000000 , 'test_xpay_slow_mode_fail' , 'test_xpay_slow_mode_fail' , preimage = '01' * 32 )['bolt11' ]
710711 l5 .rpc .delinvoice ('test_xpay_slow_mode_fail' , status = 'unpaid' )
711712
712713 with pytest .raises (RpcError , match = r"Destination said it doesn't know invoice: incorrect_or_unknown_payment_details" ):
713714 l1 .rpc .xpay (inv )
714715
715716 # Now a successful one
716- inv = l5 .rpc .invoice (500000000 , 'test_xpay_slow_mode' , 'test_xpay_slow_mode' , preimage = '00' * 32 )['bolt11' ]
717+ inv = l5 .rpc .invoice (800000000 , 'test_xpay_slow_mode' , 'test_xpay_slow_mode' , preimage = '00' * 32 )['bolt11' ]
717718
718719 assert l1 .rpc .xpay (inv ) == {'payment_preimage' : '00' * 32 ,
719- 'amount_msat' : 500000000 ,
720- 'amount_sent_msat' : 500010002 ,
720+ 'amount_msat' : 800000000 ,
721+ 'amount_sent_msat' : 800016004 ,
721722 'failed_parts' : 0 ,
722723 'successful_parts' : 2 }
723724
0 commit comments