Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-high_priority_transaction.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2017 The Bitcoin developers | # Copyright (c) 2017 The Bitcoin 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 HighPriorityTransaction code | # Test HighPriorityTransaction 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 | ||||
from test_framework.cdefs import LEGACY_MAX_BLOCK_SIZE, COINBASE_MATURITY | from test_framework.cdefs import LEGACY_MAX_BLOCK_SIZE, COINBASE_MATURITY | ||||
from test_framework.blocktools import create_confirmed_utxos | from test_framework.blocktools import create_confirmed_utxos | ||||
jasonbcox: remove | |||||
class HighPriorityTransactionTest(BitcoinTestFramework): | class HighPriorityTransactionTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
self.extra_args = [["-blockprioritypercentage=0", "-limitfreerelay=2"]] | self.extra_args = [["-blockprioritypercentage=0", "-limitfreerelay=2"]] | ||||
def create_small_transactions(self, node, utxos, num, fee): | def create_small_transactions(self, node, utxos, num, fee): | ||||
addr = node.getnewaddress() | addr = node.getnewaddress() | ||||
▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines |
remove