mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
[tests] rename getblocktemplate_proposals.py to mining.py
This commit is contained in:
parent
b29dd41f0f
commit
11ba8e9cdd
@ -2,7 +2,10 @@
|
|||||||
# Copyright (c) 2014-2016 The Bitcoin Core developers
|
# Copyright (c) 2014-2016 The Bitcoin Core developers
|
||||||
# Distributed under the MIT software license, see the accompanying
|
# Distributed under the MIT software license, see the accompanying
|
||||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||||
"""Test block proposals with getblocktemplate."""
|
"""Test mining RPCs
|
||||||
|
|
||||||
|
- getblocktemplate proposal mode
|
||||||
|
- submitblock"""
|
||||||
|
|
||||||
from binascii import b2a_hex
|
from binascii import b2a_hex
|
||||||
import copy
|
import copy
|
||||||
@ -21,7 +24,7 @@ def assert_template(node, block, expect, rehash=True):
|
|||||||
rsp = node.getblocktemplate({'data': b2x(block.serialize()), 'mode': 'proposal'})
|
rsp = node.getblocktemplate({'data': b2x(block.serialize()), 'mode': 'proposal'})
|
||||||
assert_equal(rsp, expect)
|
assert_equal(rsp, expect)
|
||||||
|
|
||||||
class GetBlockTemplateProposalTest(BitcoinTestFramework):
|
class MiningTest(BitcoinTestFramework):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
@ -118,4 +121,4 @@ class GetBlockTemplateProposalTest(BitcoinTestFramework):
|
|||||||
assert_template(node, bad_block, 'inconclusive-not-best-prevblk')
|
assert_template(node, bad_block, 'inconclusive-not-best-prevblk')
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
GetBlockTemplateProposalTest().main()
|
MiningTest().main()
|
@ -108,6 +108,7 @@ BASE_SCRIPTS= [
|
|||||||
'signmessages.py',
|
'signmessages.py',
|
||||||
'nulldummy.py',
|
'nulldummy.py',
|
||||||
'import-rescan.py',
|
'import-rescan.py',
|
||||||
|
'mining.py',
|
||||||
'bumpfee.py',
|
'bumpfee.py',
|
||||||
'rpcnamedargs.py',
|
'rpcnamedargs.py',
|
||||||
'listsinceblock.py',
|
'listsinceblock.py',
|
||||||
@ -140,7 +141,6 @@ EXTENDED_SCRIPTS = [
|
|||||||
'bipdersig-p2p.py',
|
'bipdersig-p2p.py',
|
||||||
'bipdersig.py',
|
'bipdersig.py',
|
||||||
'example_test.py',
|
'example_test.py',
|
||||||
'getblocktemplate_proposals.py',
|
|
||||||
'txn_doublespend.py',
|
'txn_doublespend.py',
|
||||||
'txn_clone.py --mineblock',
|
'txn_clone.py --mineblock',
|
||||||
'forknotify.py',
|
'forknotify.py',
|
||||||
|
Loading…
Reference in New Issue
Block a user