Skip to content

Commit 11ba8e9

Browse files
committed
[tests] rename getblocktemplate_proposals.py to mining.py
1 parent b29dd41 commit 11ba8e9

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

test/functional/getblocktemplate_proposals.py renamed to test/functional/mining.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
# Copyright (c) 2014-2016 The Bitcoin Core developers
33
# Distributed under the MIT software license, see the accompanying
44
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
5-
"""Test block proposals with getblocktemplate."""
5+
"""Test mining RPCs
6+
7+
- getblocktemplate proposal mode
8+
- submitblock"""
69

710
from binascii import b2a_hex
811
import copy
@@ -21,7 +24,7 @@ def assert_template(node, block, expect, rehash=True):
2124
rsp = node.getblocktemplate({'data': b2x(block.serialize()), 'mode': 'proposal'})
2225
assert_equal(rsp, expect)
2326

24-
class GetBlockTemplateProposalTest(BitcoinTestFramework):
27+
class MiningTest(BitcoinTestFramework):
2528

2629
def __init__(self):
2730
super().__init__()
@@ -118,4 +121,4 @@ def run_test(self):
118121
assert_template(node, bad_block, 'inconclusive-not-best-prevblk')
119122

120123
if __name__ == '__main__':
121-
GetBlockTemplateProposalTest().main()
124+
MiningTest().main()

test/functional/test_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
'signmessages.py',
109109
'nulldummy.py',
110110
'import-rescan.py',
111+
'mining.py',
111112
'bumpfee.py',
112113
'rpcnamedargs.py',
113114
'listsinceblock.py',
@@ -140,7 +141,6 @@
140141
'bipdersig-p2p.py',
141142
'bipdersig.py',
142143
'example_test.py',
143-
'getblocktemplate_proposals.py',
144144
'txn_doublespend.py',
145145
'txn_clone.py --mineblock',
146146
'forknotify.py',

0 commit comments

Comments
 (0)