Changeset View
Changeset View
Standalone View
Standalone View
test/functional/interface_bitcoin_cli.py
Show All 13 Lines | |||||
) | ) | ||||
# The block reward of coinbaseoutput.nValue (50) BTC/block matures after | # The block reward of coinbaseoutput.nValue (50) BTC/block matures after | ||||
# COINBASE_MATURITY (100) blocks. Therefore, after mining 101 blocks we expect | # COINBASE_MATURITY (100) blocks. Therefore, after mining 101 blocks we expect | ||||
# node 0 to have a balance of (BLOCKS - COINBASE_MATURITY) * 50 BTC/block. | # node 0 to have a balance of (BLOCKS - COINBASE_MATURITY) * 50 BTC/block. | ||||
BLOCKS = 101 | BLOCKS = 101 | ||||
BALANCE = (BLOCKS - 100) * 50000000 | BALANCE = (BLOCKS - 100) * 50000000 | ||||
JSON_PARSING_ERROR = 'error: Error parsing JSON:foo' | JSON_PARSING_ERROR = 'error: Error parsing JSON: foo' | ||||
BLOCKS_VALUE_OF_ZERO = 'error: the first argument (number of blocks to generate, default: 1) must be an integer value greater than zero' | BLOCKS_VALUE_OF_ZERO = 'error: the first argument (number of blocks to generate, default: 1) must be an integer value greater than zero' | ||||
TOO_MANY_ARGS = 'error: too many arguments (maximum 2 for nblocks and maxtries)' | TOO_MANY_ARGS = 'error: too many arguments (maximum 2 for nblocks and maxtries)' | ||||
WALLET_NOT_LOADED = 'Requested wallet does not exist or is not loaded' | WALLET_NOT_LOADED = 'Requested wallet does not exist or is not loaded' | ||||
WALLET_NOT_SPECIFIED = 'Wallet file not specified' | WALLET_NOT_SPECIFIED = 'Wallet file not specified' | ||||
class TestBitcoinCli(BitcoinTestFramework): | class TestBitcoinCli(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
▲ Show 20 Lines • Show All 296 Lines • Show Last 20 Lines |