invoice: return error string from invoice_check_payment.

Clean these up: they were debug logs, but we want to pass this information
back for self-payments.

Also fixes "Attept" typo which altered tests!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2023-07-22 20:56:16 +09:30
parent 23fafe98e3
commit 07e00d50c6
4 changed files with 30 additions and 23 deletions

View File

@@ -1916,7 +1916,7 @@ def test_replacement_payload(node_factory):
with pytest.raises(RpcError, match=r"WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS \(reply from remote\)"):
l1.rpc.pay(inv)
assert l2.daemon.wait_for_log("Attept to pay.*with wrong secret")
assert l2.daemon.wait_for_log("Attempt to pay.*with wrong secret")
@pytest.mark.developer("Requires dev_sign_last_tx")