Skip to content

Commit 7824f6b

Browse files
committed
test: check that getorphantxs is hidden
1 parent ac68fcc commit 7824f6b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/functional/rpc_getorphantxs.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def run_test(self):
2323
self.wallet = MiniWallet(self.nodes[0])
2424
self.test_orphan_activity()
2525
self.test_orphan_details()
26+
self.test_misc()
2627

2728
def test_orphan_activity(self):
2829
self.log.info("Check that orphaned transactions are returned with getorphantxs")
@@ -128,5 +129,13 @@ def orphan_details_match(self, orphan, tx, verbosity):
128129
self.log.info("Check the transaction hex of orphan")
129130
assert_equal(orphan["hex"], tx["hex"])
130131

132+
def test_misc(self):
133+
node = self.nodes[0]
134+
help_output = node.help()
135+
self.log.info("Check that getorphantxs is a hidden RPC")
136+
assert "getorphantxs" not in help_output
137+
assert "unknown command: getorphantxs" not in node.help("getorphantxs")
138+
139+
131140
if __name__ == '__main__':
132141
GetOrphanTxsTest(__file__).main()

0 commit comments

Comments
 (0)