xmrwallet.ops.daemon: initialize coin daemon proto properly

This commit is contained in:
The MMGen Project 2026-10-20 17:38:48 +00:00
commit 33ff0a85a7
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2

View file

@ -37,7 +37,7 @@ class OpDaemon(OpBase):
md = None
else:
from ...daemon import CoinDaemon
md = CoinDaemon(self.cfg, network_id='xmr')
md = CoinDaemon(self.cfg, proto=self.cfg._proto)
host, port = (
self.cfg.daemon.split(':') if self.cfg.daemon else
('localhost', md.rpc_port))