mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-24 18:23:26 -03:00
test: check that getorphantxs is hidden
This commit is contained in:
parent
ac68fcca70
commit
7824f6b077
1 changed files with 9 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue