mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-08 12:08:24 +02:00
test: check that getorphantxs is hidden
This commit is contained in:
parent
ac68fcca70
commit
7824f6b077
@ -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…
x
Reference in New Issue
Block a user