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

Function test_hsmtool_getnodeid

tests/test_wallet.py:2513–2518  ·  view source on GitHub ↗
(node_factory)

Source from the content-addressed store, hash-verified

2511
2512
2513def test_hsmtool_getnodeid(node_factory):
2514 l1 = node_factory.get_node()
2515
2516 cmd_line = ["tools/lightning-hsmtool", "getnodeid", os.path.join(l1.daemon.lightning_dir, TEST_NETWORK, "hsm_secret")]
2517 out = subprocess.check_output(cmd_line).decode('utf-8').strip()
2518 assert out == l1.info['id']
2519
2520
2521@unittest.skipIf(os.getenv('TEST_DB_PROVIDER', 'sqlite3') != 'sqlite3', "Makes use of the sqlite3 db")

Callers

nothing calls this directly

Calls 3

joinMethod · 0.80
get_nodeMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected