MCPcopy Create free account
hub / github.com/ElementsProject/lightning / test_maxhops_layer

Function test_maxhops_layer

tests/test_askrene.py:3060–3068  ·  view source on GitHub ↗

Test that a maxhops layer cannot be created

(node_factory)

Source from the content-addressed store, hash-verified

3058
3059
3060def test_maxhops_layer(node_factory):
3061 """Test that a maxhops layer cannot be created"""
3062 l1 = node_factory.get_node()
3063
3064 with pytest.raises(RpcError, match="name is reserved"):
3065 l1.rpc.askrene_create_layer('maxhops=')
3066
3067 with pytest.raises(RpcError, match="name is reserved"):
3068 l1.rpc.askrene_create_layer('maxhops=1')

Callers

nothing calls this directly

Calls 1

get_nodeMethod · 0.45

Tested by

no test coverage detected