Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-magnetic-anomaly-mining.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# 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 that mining RPC continues to supply correct transaction metadata after | Test that mining RPC continues to supply correct transaction metadata after | ||||
the Nov 2018 protocol upgrade which engages canonical transaction ordering | the Nov 2018 protocol upgrade which engages canonical transaction ordering | ||||
""" | """ | ||||
import time | import time | ||||
import random | import random | ||||
import decimal | import decimal | ||||
from test_framework.blocktools import create_coinbase | |||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.util import * | |||||
class CTORMiningTest(BitcoinTestFramework): | class CTORMiningTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
# Setup two nodes so we can getblocktemplate | # Setup two nodes so we can getblocktemplate | ||||
# it errors out if it is not connected to other nodes | # it errors out if it is not connected to other nodes | ||||
self.num_nodes = 2 | self.num_nodes = 2 | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines |