Changeset View
Changeset View
Standalone View
Standalone View
test/functional/prioritise_transaction.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2015-2016 The Bitcoin Core developers | # Copyright (c) 2015-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 PrioritiseTransaction code | # Test PrioritiseTransaction code | ||||
# | # | ||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.util import * | from test_framework.util import * | ||||
from test_framework.mininode import COIN | from test_framework.mininode import COIN | ||||
# FIXME: review how this test needs to be adapted w.r.t _LEGACY_MAX_BLOCK_SIZE | # FIXME: review how this test needs to be adapted w.r.t _LEGACY_MAX_BLOCK_SIZE | ||||
from test_framework.cdefs import LEGACY_MAX_BLOCK_SIZE | from test_framework.cdefs import LEGACY_MAX_BLOCK_SIZE | ||||
from test_framework.blocktools import send_big_transactions | from test_framework.blocktools import send_big_transactions, create_confirmed_utxos | ||||
class PrioritiseTransactionTest(BitcoinTestFramework): | class PrioritiseTransactionTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
self.extra_args = [["-printpriority=1"]] | self.extra_args = [["-printpriority=1"]] | ||||
▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines |