Skip to content

Commit f8dadb3

Browse files
rustyrussellmadelinevibes
authored andcommitted
pytest: use rustcorp.com.au for BIP353 test.
Something changed in Matt's example: error: {'code': -32700, 'data': None, 'message': 'failed to fetch payment instructions: HrnResolutionError("Multiple TXT records existed for the HRN, which is invalid")'} Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent 8ab968e commit f8dadb3

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/test_cln_rs.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -464,15 +464,11 @@ def test_grpc_custommsg_notification(node_factory):
464464
def test_bip353(node_factory):
465465
l1 = node_factory.get_node()
466466

467-
bip353_result = l1.rpc.call("fetchbip353", "send.some@satsto.me")
467+
bip353_result = l1.rpc.call("fetchbip353", "rusty@rustcorp.com.au")
468468

469469
assert "proof" in bip353_result
470-
assert len(bip353_result["instructions"]) == 2
471-
for instruction in bip353_result["instructions"]:
472-
if "offer" in instruction:
473-
assert instruction["offer"] == "lno1zr5qyugqgskrk70kqmuq7v3dnr2fnmhukps9n8hut48vkqpqnskt2svsqwjakp7k6pyhtkuxw7y2kqmsxlwruhzqv0zsnhh9q3t9xhx39suc6qsr07ekm5esdyum0w66mnx8vdquwvp7dp5jp7j3v5cp6aj0w329fnkqqv60q96sz5nkrc5r95qffx002q53tqdk8x9m2tmt85jtpmcycvfnrpx3lr45h2g7na3sec7xguctfzzcm8jjqtj5ya27te60j03vpt0vq9tm2n9yxl2hngfnmygesa25s4u4zlxewqpvp94xt7rur4rhxunwkthk9vly3lm5hh0pqv4aymcqejlgssnlpzwlggykkajp7yjs5jvr2agkyypcdlj280cy46jpynsezrcj2kwa2lyr8xvd6lfkph4xrxtk2xc3lpq"
474-
if "onchain" in instruction:
475-
assert instruction["onchain"] == "bc1qztwy6xen3zdtt7z0vrgapmjtfz8acjkfp5fp7l"
470+
assert bip353_result["instructions"] == [{'description': 'Rusty via BIP353',
471+
'offer': 'lno1pgg9yatnw3ujqanfvysyyj2sxv6nx93pqf9e58aguqr0rcun0ajlvmzq3ek63cw2w282gv3z5uupmuwvgjtq2'}]
476472

477473
with pytest.raises(RpcError, match=r"failed to fetch payment instructions"):
478474
l1.rpc.call("fetchbip353", "invalid@address")

0 commit comments

Comments
 (0)