mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-09 11:27:28 -03:00
refactor: rename rpc_getorphantxs to rpc_orphans
Generalizes the test to accommodate additional orphan-related RPCs
This commit is contained in:
parent
7824f6b077
commit
56bf302714
2 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
|||
# Copyright (c) 2014-2024 The Bitcoin Core developers
|
||||
# Distributed under the MIT software license, see the accompanying
|
||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
"""Test the getorphantxs RPC."""
|
||||
"""Tests for orphan related RPCs."""
|
||||
|
||||
from test_framework.mempool_util import tx_in_orphanage
|
||||
from test_framework.messages import msg_tx
|
||||
|
@ -15,7 +15,7 @@ from test_framework.test_framework import BitcoinTestFramework
|
|||
from test_framework.wallet import MiniWallet
|
||||
|
||||
|
||||
class GetOrphanTxsTest(BitcoinTestFramework):
|
||||
class OrphanRPCsTest(BitcoinTestFramework):
|
||||
def set_test_params(self):
|
||||
self.num_nodes = 1
|
||||
|
||||
|
@ -138,4 +138,4 @@ class GetOrphanTxsTest(BitcoinTestFramework):
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
GetOrphanTxsTest(__file__).main()
|
||||
OrphanRPCsTest(__file__).main()
|
|
@ -160,7 +160,7 @@ BASE_SCRIPTS = [
|
|||
'wallet_importmulti.py --legacy-wallet',
|
||||
'mempool_limit.py',
|
||||
'rpc_txoutproof.py',
|
||||
'rpc_getorphantxs.py',
|
||||
'rpc_orphans.py',
|
||||
'wallet_listreceivedby.py --legacy-wallet',
|
||||
'wallet_listreceivedby.py --descriptors',
|
||||
'wallet_abandonconflict.py --legacy-wallet',
|
||||
|
|
Loading…
Reference in a new issue