minor fixes and changes
This commit is contained in:
parent
9a1ea34309
commit
27759c913d
5 changed files with 5 additions and 6 deletions
|
|
@ -1 +1 @@
|
|||
13.3.dev7
|
||||
13.3.dev8
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ class mainnet(CoinProtocol.Secp256k1): # chainparams.cpp
|
|||
sign_mode = 'daemon'
|
||||
avg_bdi = int(9.7 * 60) # average block discovery interval (historical)
|
||||
halving_interval = 210000
|
||||
diff_adjust_interval = 2016
|
||||
max_halvings = 64
|
||||
start_subsidy = 50
|
||||
ignore_daemon_version = False
|
||||
|
|
|
|||
|
|
@ -297,7 +297,7 @@ class BitcoinRPCClient(RPCClient,metaclass=AsyncInit):
|
|||
if 'deployment_info' in self.caps:
|
||||
return (
|
||||
self.cached['deploymentinfo']['deployments']['segwit']['active']
|
||||
or ( g.test_suite and not os.getenv('MMGEN_TEST_SUITE_REGTEST') )
|
||||
or ( g.test_suite and not self.chain == 'regtest' )
|
||||
)
|
||||
|
||||
d = self.cached['blockchaininfo']
|
||||
|
|
@ -314,7 +314,7 @@ class BitcoinRPCClient(RPCClient,metaclass=AsyncInit):
|
|||
except:
|
||||
pass
|
||||
|
||||
if g.test_suite:
|
||||
if g.test_suite and not self.chain == 'regtest':
|
||||
return True
|
||||
|
||||
return False
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ def removeprefix(s,pfx): # workaround for pre-Python 3.9
|
|||
return s[len(pfx):] if s.startswith(pfx) else s
|
||||
|
||||
def removesuffix(s,sfx): # workaround for pre-Python 3.9
|
||||
return s[:len(sfx)] if s.endswith(sfx) else s
|
||||
return s[:-len(sfx)] if s.endswith(sfx) else s
|
||||
|
||||
def get_keccak(cached_ret=[]):
|
||||
|
||||
|
|
|
|||
|
|
@ -367,14 +367,12 @@ class TestSuiteRegtest(TestSuiteBase,TestSuiteShared):
|
|||
self.miner_wif = 'cTyMdQ2BgfAsjopRVZrj7AoEGp97pKfrC2NkqLuwHr4KHfPNAKwp'
|
||||
|
||||
os.environ['MMGEN_BOGUS_SEND'] = ''
|
||||
os.environ['MMGEN_TEST_SUITE_REGTEST'] = '1'
|
||||
self.write_to_tmpfile('wallet_password',rt_pw)
|
||||
|
||||
self.dfl_mmtype = 'C' if self.proto.coin == 'BCH' else 'B'
|
||||
|
||||
def __del__(self):
|
||||
os.environ['MMGEN_BOGUS_SEND'] = '1'
|
||||
os.environ['MMGEN_TEST_SUITE_REGTEST'] = ''
|
||||
|
||||
def _add_comments_to_addr_file(self,addrfile,outfile,use_labels=False):
|
||||
silence()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue