diff options
Diffstat (limited to 'pages/Mining.qml')
| -rw-r--r-- | pages/Mining.qml | 103 |
1 files changed, 52 insertions, 51 deletions
diff --git a/pages/Mining.qml b/pages/Mining.qml index 85bd4d0a..8f073815 100644 --- a/pages/Mining.qml +++ b/pages/Mining.qml @@ -1,4 +1,4 @@ -// Copyright (c) 2014-2024, The Monero Project +// Copyright (c) 2014-2024, The Monzero Project // // All rights reserved. // @@ -30,7 +30,7 @@ import QtQml.Models 2.2 import QtQuick 2.9 import QtQuick.Layouts 1.1 import QtQuick.Dialogs 1.2 -import "../components" as MoneroComponents +import "../components" as MonzeroComponents import moneroComponents.Wallet 1.0 import moneroComponents.P2PoolManager 1.0 import moneroComponents.DaemonManager 1.0 @@ -53,43 +53,44 @@ Rectangle { anchors.right: parent.right spacing: 20 - MoneroComponents.Label { + MonzeroComponents.Label { id: soloTitleLabel fontSize: 24 text: qsTr("Mining") + translationManager.emptyString } - MoneroComponents.WarningBox { + MonzeroComponents.WarningBox { Layout.bottomMargin: 8 id: localDaemonWarning text: qsTr("Mining is only available on local daemons.") + translationManager.emptyString - visible: persistentSettings.useRemoteNode && !persistentSettings.allowRemoteNodeMining + visible: false } - MoneroComponents.WarningBox { + MonzeroComponents.WarningBox { Layout.bottomMargin: 8 text: qsTr("Your daemon must be synchronized before you can start mining") + translationManager.emptyString - visible: !persistentSettings.useRemoteNode && !appWindow.daemonSynced + visible: false } - MoneroComponents.TextPlain { + MonzeroComponents.TextPlain { id: soloMainLabel - text: qsTr("Mining with your computer helps strengthen the Monero network. The more people mine, the harder it is for the network to be attacked, and every little bit helps.\n\nMining also gives you a small chance to earn some Monero. Your computer will create hashes looking for block solutions. If you find a block, you will get the associated reward. Good luck!") + "\n\n" + qsTr("P2Pool mining is a decentralized way to pool mine that pays out more frequently compared to solo mining, while also supporting the network.") + translationManager.emptyString + text: qsTr("Mining is managed separately from the Monzero wallet. Keeping the miner independent lets you close this GUI without interrupting mining and prevents the wallet from silently starting CPU work.\n\nStart the node with ./start-node.sh, then run ./start-mining.sh YOUR_MONZERO_ADDRESS THREADS from the Genesis pre2 package. Use ./stop-mining.sh to stop mining. Coinbase rewards will appear in this wallet after refresh and unlock after 60 blocks.") + translationManager.emptyString wrapMode: Text.Wrap Layout.fillWidth: true - font.family: MoneroComponents.Style.fontRegular.name + font.family: MonzeroComponents.Style.fontRegular.name font.pixelSize: 14 - color: MoneroComponents.Style.defaultFontColor + color: MonzeroComponents.Style.defaultFontColor } - MoneroComponents.WarningBox { + MonzeroComponents.WarningBox { id: warningLabel Layout.topMargin: 8 Layout.bottomMargin: 8 - text: qsTr("Mining may reduce the performance of other running applications and processes.") + translationManager.emptyString + text: qsTr("This GUI does not start or stop the miner. Mining continues independently when the wallet is closed.") + translationManager.emptyString } GridLayout { + visible: false columns: 2 Layout.fillWidth: true columnSpacing: 20 @@ -106,9 +107,9 @@ Rectangle { Layout.fillWidth: true Layout.alignment : Qt.AlignTop | Qt.AlignLeft - MoneroComponents.Label { + MonzeroComponents.Label { id: miningModeLabel - color: MoneroComponents.Style.defaultFontColor + color: MonzeroComponents.Style.defaultFontColor text: qsTr("Mining mode") + translationManager.emptyString fontSize: 16 } @@ -118,7 +119,7 @@ Rectangle { Layout.topMargin: 5 spacing: 10 - MoneroComponents.StandardDropdown { + MonzeroComponents.StandardDropdown { Layout.maximumWidth: 200 id: miningModeDropdown visible: true @@ -137,9 +138,9 @@ Rectangle { Layout.fillWidth: true Layout.alignment : Qt.AlignTop | Qt.AlignLeft - MoneroComponents.Label { + MonzeroComponents.Label { id: soloMinerThreadsLabel - color: MoneroComponents.Style.defaultFontColor + color: MonzeroComponents.Style.defaultFontColor text: qsTr("CPU threads") + translationManager.emptyString fontSize: 16 wrapMode: Text.WordWrap @@ -151,7 +152,7 @@ Rectangle { spacing: 16 RowLayout { - MoneroComponents.StandardButton { + MonzeroComponents.StandardButton { id: removeThreadButton small: true primary: false @@ -160,10 +161,10 @@ Rectangle { onClicked: threads-- } - MoneroComponents.TextPlain { + MonzeroComponents.TextPlain { Layout.bottomMargin: 1 Layout.minimumWidth: 45 - color: MoneroComponents.Style.defaultFontColor + color: MonzeroComponents.Style.defaultFontColor text: threads horizontalAlignment: Text.AlignHCenter font.pixelSize: 16 @@ -181,7 +182,7 @@ Rectangle { } } - MoneroComponents.StandardButton { + MonzeroComponents.StandardButton { id: addThreadButton small: true primary: false @@ -192,7 +193,7 @@ Rectangle { } RowLayout { - MoneroComponents.StandardButton { + MonzeroComponents.StandardButton { id: autoRecommendedThreadsButton small: true primary: false @@ -204,7 +205,7 @@ Rectangle { } } - MoneroComponents.StandardButton { + MonzeroComponents.StandardButton { id: autoSetMaxThreadsButton small: true primary: false @@ -220,7 +221,7 @@ Rectangle { RowLayout { // Disable this option until stable visible: false - MoneroComponents.CheckBox { + MonzeroComponents.CheckBox { id: ignoreBattery enabled: startSoloMinerButton.enabled checked: !persistentSettings.miningIgnoreBattery @@ -234,9 +235,9 @@ Rectangle { Layout.alignment: Qt.AlignTop | Qt.AlignLeft Layout.minimumWidth: 140 - MoneroComponents.Label { + MonzeroComponents.Label { id: optionsLabel - color: MoneroComponents.Style.defaultFontColor + color: MonzeroComponents.Style.defaultFontColor visible: !persistentSettings.allow_p2pool_mining text: qsTr("Options") + translationManager.emptyString fontSize: 16 @@ -250,7 +251,7 @@ Rectangle { spacing: 16 RowLayout { - MoneroComponents.CheckBox { + MonzeroComponents.CheckBox { id: backgroundMining visible: !persistentSettings.allow_p2pool_mining enabled: startSoloMinerButton.enabled && !persistentSettings.allow_p2pool_mining @@ -264,9 +265,9 @@ Rectangle { ColumnLayout { Layout.alignment : Qt.AlignTop | Qt.AlignLeft - MoneroComponents.Label { + MonzeroComponents.Label { id: manageSoloMinerLabel - color: MoneroComponents.Style.defaultFontColor + color: MonzeroComponents.Style.defaultFontColor text: qsTr("Manage miner") + translationManager.emptyString fontSize: 16 wrapMode: Text.Wrap @@ -279,7 +280,7 @@ Rectangle { spacing: 16 RowLayout { - MoneroComponents.StandardButton { + MonzeroComponents.StandardButton { visible: true id: startSoloMinerButton small: true @@ -337,7 +338,7 @@ Rectangle { } } - MoneroComponents.StandardButton { + MonzeroComponents.StandardButton { visible: true id: stopSoloMinerButton small: true @@ -356,9 +357,9 @@ Rectangle { Layout.fillWidth: true Layout.alignment : Qt.AlignTop | Qt.AlignLeft - MoneroComponents.Label { + MonzeroComponents.Label { id: statusLabel - color: MoneroComponents.Style.defaultFontColor + color: MonzeroComponents.Style.defaultFontColor text: qsTr("Status") + translationManager.emptyString fontSize: 16 } @@ -368,7 +369,7 @@ Rectangle { Layout.fillWidth: true spacing: 16 - MoneroComponents.LineEditMulti { + MonzeroComponents.LineEditMulti { id: statusText Layout.minimumWidth: 300 text: qsTr("Not mining") + translationManager.emptyString @@ -391,15 +392,15 @@ Rectangle { Layout.fillWidth: true Layout.alignment : Qt.AlignTop | Qt.AlignLeft - MoneroComponents.Label { + MonzeroComponents.Label { id: chainLabel - color: MoneroComponents.Style.defaultFontColor + color: MonzeroComponents.Style.defaultFontColor visible: persistentSettings.allow_p2pool_mining text: qsTr("Chain") + translationManager.emptyString fontSize: 16 } - MoneroComponents.Tooltip { + MonzeroComponents.Tooltip { id: chainsHelpTooltip text: qsTr("Use the mini or nano chains if you have a low hashrate.") + translationManager.emptyString } @@ -423,7 +424,7 @@ Rectangle { Layout.topMargin: 5 spacing: 10 - MoneroComponents.StandardDropdown { + MonzeroComponents.StandardDropdown { Layout.maximumWidth: 200 id: chainDropdown visible: persistentSettings.allow_p2pool_mining @@ -437,22 +438,22 @@ Rectangle { Layout.fillWidth: true Layout.alignment : Qt.AlignTop | Qt.AlignLeft - MoneroComponents.Label { + MonzeroComponents.Label { id: flagsLabel visible: persistentSettings.allow_p2pool_mining - color: MoneroComponents.Style.defaultFontColor + color: MonzeroComponents.Style.defaultFontColor text: qsTr("Flags") + translationManager.emptyString fontSize: 16 } - MoneroComponents.Tooltip { + MonzeroComponents.Tooltip { id: flagsHelpTooltip text: " Usage:<br> --wallet Wallet address to mine to. Subaddresses and integrated addresses are not supported!<br> - --host IP address of your Monero node, default is 127.0.0.1<br> - --rpc-port monerod RPC API port number, default is 18081<br> - --zmq-port monerod ZMQ pub port number, default is 18083 (same port as in monerod\'s \"--zmq-pub\" command line parameter)<br> + --host IP address of your Monzero node, default is 127.0.0.1<br> + --rpc-port monzerod RPC API port number, default is 6175<br> + --zmq-port monzerod ZMQ pub port number, default is 6176 (same port as in monzerod\'s \"--zmq-pub\" command line parameter)<br> --stratum Comma-separated list of IP:port for stratum server to listen on<br> --p2p Comma-separated list of IP:port for p2p server to listen on<br> --addpeers Comma-separated list of IP:port of other p2pool nodes to connect to<br> @@ -466,12 +467,12 @@ Rectangle { --stratum-api An alias for --local-api<br> --no-cache Disable p2pool.cache<br> --no-color Disable colors in console output<br> - --no-randomx Disable internal RandomX hasher: p2pool will use RPC calls to monerod to check PoW hashes<br> + --no-randomx Disable internal RandomX hasher: p2pool will use RPC calls to monzerod to check PoW hashes<br> --out-peers N Maximum number of outgoing connections for p2p server (any value between 10 and 1000)<br> --in-peers N Maximum number of incoming connections for p2p server (any value between 10 and 1000)<br> --start-mining N Start built-in miner using N threads (any value between 1 and 64)<br> --no-autodiff Disable automatic difficulty adjustment for miners connected to stratum (WARNING: incompatible with Nicehash and MRR)<br> - --rpc-login Specify username[:password] required for Monero RPC server<br> + --rpc-login Specify username[:password] required for Monzero RPC server<br> --socks5 Specify IP:port of a SOCKS5 proxy to use for outgoing connections<br> --no-dns Disable DNS queries, use only IP addresses to connect to peers (seed node DNS will be unavailable too)<br> --p2p-external-port Port number that your router uses for mapping to your local p2p port. Use it if you are behind a NAT and still want to accept incoming connections<br> @@ -482,8 +483,8 @@ Rectangle { --version Print p2pool's version and build details<br> --tls-cert file Load TLS certificate chain from \"file\" in the PEM format<br> --tls-cert-key file Load TLS certificate private key from \"file\" in the PEM format<br> - --rpc-ssl Enable SSL on RPC connections to the Monero node<br> - --rpc-ssl-fingerprint base64-encoded fingerprint of the Monero node's certificate (optional, use it for certificate pinning)<br> + --rpc-ssl Enable SSL on RPC connections to the Monzero node<br> + --rpc-ssl-fingerprint base64-encoded fingerprint of the Monzero node's certificate (optional, use it for certificate pinning)<br> --no-stratum-http Disable HTTP on Stratum ports<br> --help Show this help message " @@ -506,7 +507,7 @@ Rectangle { ColumnLayout { Layout.fillWidth: true - MoneroComponents.LineEditMulti { + MonzeroComponents.LineEditMulti { id: p2poolFlags Layout.minimumWidth: 100 Layout.bottomMargin: 20 @@ -590,7 +591,7 @@ Rectangle { errorPopup.open() } - MoneroComponents.StandardDialog { + MonzeroComponents.StandardDialog { id: errorPopup cancelVisible: false } |
