mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 00:24:19 +01:00
makesecret: change info_hex arg to simply "hex" to match datastore command.
And fix schema: it wasn't tested as there was no test-by-parameter-name. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -2282,6 +2282,14 @@ def test_makesecret(node_factory):
|
||||
|
||||
assert (secret == "04fe01631fcedc8d91f39ab43244e63afebaed68ee21d2f1c325fd1242726a18")
|
||||
|
||||
# Same if we do it by parameter name
|
||||
assert l1.rpc.makesecret(hex="73636220736563726574")["secret"] == secret
|
||||
|
||||
# Changing seed changes secret!
|
||||
assert l1.rpc.makesecret(hex="73636220736563726575")["secret"] != secret
|
||||
assert l1.rpc.makesecret(hex="736362207365637265")["secret"] != secret
|
||||
assert l1.rpc.makesecret(hex="7363622073656372657401")["secret"] != secret
|
||||
|
||||
|
||||
def test_staticbackup(node_factory):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user