Monero: use stagenet for testnet
This commit is contained in:
parent
bd97eca7a6
commit
57cc7950d8
2 changed files with 8 additions and 6 deletions
|
|
@ -283,7 +283,7 @@ class MoneroWalletDaemon(Daemon):
|
|||
[f'--proxy={self.proxy}', self.proxy],
|
||||
[f'--pidfile={self.pidfile}', self.platform == 'linux'],
|
||||
['--detach', not 'no_daemonize' in self.opts],
|
||||
['--testnet', testnet],
|
||||
['--stagenet', testnet],
|
||||
)
|
||||
|
||||
self.usr_daemon_args = []
|
||||
|
|
@ -382,8 +382,8 @@ class CoinDaemon(Daemon):
|
|||
'monerod',
|
||||
'monerod',
|
||||
'bitmonero.conf',
|
||||
'testnet',
|
||||
18081, 28081, None),
|
||||
'stagenet',
|
||||
18081, 38081, None),
|
||||
'eth': cd(
|
||||
'openethereum',
|
||||
'Ethereum',
|
||||
|
|
@ -609,6 +609,8 @@ class MoneroDaemon(CoinDaemon):
|
|||
datadir_is_subdir = True
|
||||
|
||||
def subclass_init(self):
|
||||
if self.network == 'testnet':
|
||||
self.net_desc = f'{self.coin} stagenet'
|
||||
|
||||
self.p2p_port = self.rpc_port - 1
|
||||
self.zmq_port = self.rpc_port + 1
|
||||
|
|
@ -620,7 +622,7 @@ class MoneroDaemon(CoinDaemon):
|
|||
[f'--p2p-bind-port={self.p2p_port}'],
|
||||
[f'--rpc-bind-port={self.rpc_port}'],
|
||||
[f'--zmq-rpc-bind-port={self.zmq_port}'],
|
||||
['--testnet', self.network == 'testnet'],
|
||||
['--stagenet', self.network == 'testnet'],
|
||||
)
|
||||
|
||||
self.coind_args = list_gen(
|
||||
|
|
|
|||
|
|
@ -500,8 +500,8 @@ class CoinProtocol(MMGenObject):
|
|||
|
||||
return self.parse_addr_bytes(ret)
|
||||
|
||||
class MoneroTestnet(Monero):
|
||||
addr_ver_bytes = { '35': 'monero', '3f': 'monero_sub' }
|
||||
class MoneroTestnet(Monero): # use stagenet for testnet
|
||||
addr_ver_bytes = { '18': 'monero', '24': 'monero_sub' } # testnet is ('35','3f')
|
||||
|
||||
def init_proto(coin=None,testnet=False,regtest=False,network=None,network_id=None,tokensym=None):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue