test: check that getorphantxs is hidden

pull/31043/head
tdb3 1 month ago
parent ac68fcca70
commit 7824f6b077
No known key found for this signature in database

@ -23,6 +23,7 @@ class GetOrphanTxsTest(BitcoinTestFramework):
self.wallet = MiniWallet(self.nodes[0])
self.test_orphan_activity()
self.test_orphan_details()
self.test_misc()
def test_orphan_activity(self):
self.log.info("Check that orphaned transactions are returned with getorphantxs")
@ -128,5 +129,13 @@ class GetOrphanTxsTest(BitcoinTestFramework):
self.log.info("Check the transaction hex of orphan")
assert_equal(orphan["hex"], tx["hex"])
def test_misc(self):
node = self.nodes[0]
help_output = node.help()
self.log.info("Check that getorphantxs is a hidden RPC")
assert "getorphantxs" not in help_output
assert "unknown command: getorphantxs" not in node.help("getorphantxs")
if __name__ == '__main__':
GetOrphanTxsTest(__file__).main()

Loading…
Cancel
Save