mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
bolt: Updated the BOLT specification to unify UNKNOWN_PAYMENT_HASH & INCORRECT_PAYMENT_AMOUNT
This is based on Christian's change, but removes all trace of the old codes. I've proposed another spec change which removes this code altogether: https://github.com/lightningnetwork/lightning-rfc/pull/544 Signed-off-by: Christian Decker <decker.christian@gmail.com> Reported-by: Rusty Russell <@rustyrussell>
This commit is contained in:
@@ -1060,12 +1060,12 @@ def setup_multihtlc_test(node_factory, bitcoind):
|
||||
# First, the failed attempts (paying wrong node). CLTV1
|
||||
r = nodes[0].rpc.getroute(nodes[-2].info['id'], 10**8, 1)["route"]
|
||||
nodes[0].rpc.sendpay(r, h)
|
||||
with pytest.raises(RpcError, match=r'UNKNOWN_PAYMENT_HASH'):
|
||||
with pytest.raises(RpcError, match=r'INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS'):
|
||||
nodes[0].rpc.waitsendpay(h)
|
||||
|
||||
r = nodes[-1].rpc.getroute(nodes[1].info['id'], 10**8, 1)["route"]
|
||||
nodes[-1].rpc.sendpay(r, h)
|
||||
with pytest.raises(RpcError, match=r'UNKNOWN_PAYMENT_HASH'):
|
||||
with pytest.raises(RpcError, match=r'INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS'):
|
||||
nodes[-1].rpc.waitsendpay(h)
|
||||
|
||||
# Now increment CLTV -> CLTV2
|
||||
|
||||
Reference in New Issue
Block a user