Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-rpc.py
Show All 24 Lines | def set_test_params(self): | ||||
self.extra_args = [['-norelaypriority', | self.extra_args = [['-norelaypriority', | ||||
'-whitelist=127.0.0.1']] | '-whitelist=127.0.0.1']] | ||||
def check_subversion(self, pattern_str): | def check_subversion(self, pattern_str): | ||||
# Check that the subversion is set as expected | # Check that the subversion is set as expected | ||||
netinfo = self.nodes[0].getnetworkinfo() | netinfo = self.nodes[0].getnetworkinfo() | ||||
subversion = netinfo['subversion'] | subversion = netinfo['subversion'] | ||||
pattern = re.compile(pattern_str) | pattern = re.compile(pattern_str) | ||||
assert(pattern.match(subversion)) | assert pattern.match(subversion) | ||||
def test_excessiveblock(self): | def test_excessiveblock(self): | ||||
# Check that we start with DEFAULT_MAX_BLOCK_SIZE | # Check that we start with DEFAULT_MAX_BLOCK_SIZE | ||||
getsize = self.nodes[0].getexcessiveblock() | getsize = self.nodes[0].getexcessiveblock() | ||||
ebs = getsize['excessiveBlockSize'] | ebs = getsize['excessiveBlockSize'] | ||||
assert_equal(ebs, DEFAULT_MAX_BLOCK_SIZE) | assert_equal(ebs, DEFAULT_MAX_BLOCK_SIZE) | ||||
# Check that setting to legacy size is ok | # Check that setting to legacy size is ok | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |