drop sqlite3 and use .log, optimize some code

This commit is contained in:
lzx
2026-01-29 16:51:06 +08:00
parent 194b062bb9
commit e9c4582e0d
47 changed files with 668 additions and 212 deletions

1
windows_app/bin/auth Normal file
View File

@@ -0,0 +1 @@
393768033@qq.com

View File

@@ -0,0 +1,27 @@
#请确认您的主机上安装了下列挖矿软件,确认后可以打开注释,并修改其路径,如果没有安装,请勿打开注释
#请使用双\\,否则可能无法解析出准确的路径
[bzminer]
# path=C:\\path\\bzminer
[lolminer]
path=.\\mining_soft\\lolminer
[rigel]
# path=C:\\path\\rigel
#如果您的网络无法直接连通各个矿池需要使用各大矿池专用网咯请打开proxy的注释
#打开此注释后会使用各大矿池的专用网络每笔订单额外增加1%的网络费用
[proxy]
#proxy=true
#持续挖矿开关,即在矿机没有租约期间是否自行挖矿
#开启此选项启动客户端后客户端会自动根据下面配置开启挖矿任务直到云算力平台有人租赁本台GPU主机
#当该租约结束后本台GPU主机会自动切回下方配置的挖矿任务
[sustain]
#enabled=true
#algo="NEXA"
#coin="NEXA"
#miner="lolminer"
#pool_url="stratum+tcp://47.108.221.51:3333"
#wallet="nexa:nqtsq5g5scpg3nk8k630sqptewymd2em9m0lsclxswy7zwhh"
#worker_id="lzx013"
#pool_user="挖矿账号名f2pool/m2pool等不支持钱包挖矿的矿池需配置其余支持钱包挖矿的矿池无需配置"
#wallet_mining=true #pool_user打开时同时打开本配置

1
windows_app/bin/version Normal file
View File

@@ -0,0 +1 @@
version advanced

Binary file not shown.

BIN
windows_app/data/app.so Normal file

Binary file not shown.

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1 @@
[{"family":"MaterialIcons","fonts":[{"asset":"fonts/MaterialIcons-Regular.otf"}]},{"family":"packages/cupertino_icons/CupertinoIcons","fonts":[{"asset":"packages/cupertino_icons/assets/CupertinoIcons.ttf"}]}]

Binary file not shown.

View File

@@ -0,0 +1 @@
{"format-version":[1,0,0],"native-assets":{}}

BIN
windows_app/data/icudtl.dat Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,111 @@
lolMiner License Agreement
Copyright (c) 2021 Lolliedieb
1. Subject to the terms of this Agreement, you are granted a revocable, non-exclusive, non-transferable, limited and worldwide license to use this software for the internal use only.
2. You may not sell, transfer, rent, assign, lease, loan, sublicense, lend, resell, redistribute or otherwise share this software.
Further, you shall not modify, make derivative works based upon, recreate, generate, disassemble, decompile, reverse engineer, reverse assemble,
reverse compile or otherwise attempt to derive the human-readable form of the source code of any parts of this software.
3. As an exception to point 2 the software may be redistributed for use in mining operation systems if and only if the redistribution contains the original executable and kernel files without modification.
4. You may not cancel, reduce, change, remove, block, or redirect built-in developer fee in any way
5. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
---------------------------
The miner uses (parts) of code from external sources, listed below:
boost c++ libraries (Boost Software License)
silentarmy by Marc Bevand (MIT license)
zogminer by Nathan Ginnever & Omar Alvarez (MIT license)
termcolor by Ihor Kalnytskyi (Own license, listed below)
---------------------------
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
---------------------------
The MIT License
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
---------------------------
termcolor license
Copyright (c) 2013, Ihor Kalnytskyi.
All rights reserved.
Redistribution and use in source and binary forms of the software as well
as documentation, with or without modification, are permitted provided
that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* The names of the contributors may not be used to endorse or
promote products derived from this software without specific
prior written permission.
THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY THE COPYRIGHT HOLDERS AND
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT
NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE AND DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.

View File

@@ -0,0 +1,24 @@
#
# lolMiner 1.0 configuration
# uncomment a line (remove the starting "#") to set an option in this file
# The available options are the same as in the command line
# See readme.txt to get a list of available options
#
################################################################################
# Required Options
################################################################################
# algo=<the algorithm to mine>
# pool=<example address>:<example port>
# user=<your wallet address or pool user name>
################################################################################
# Comfort functions
################################################################################
# apiport=<the port to open api>
# shortstats=<interval between the short statiscics>
# longstats=<interval between the verbose statiscics>

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,195 @@
lolMiner 1.53
For a short introduction how to mine using lolMiner, see
https://github.com/Lolliedieb/lolMiner-releases/wiki
Also have a look to the mine_coin.bat or mine_coin.sh files which can be used as
starting point to run lolMiner on the command line.
Here is a list of the most relevant parameters for lolMiner:
General:
-h [ --help ] Help screen
--config arg (=./lolMiner.cfg) Config file
--json arg (=./user_config.json) Config file in Json format
--profile arg Profile to load from Json file
--nocolor [=arg(=on)] (=off) Disable colors in output
--basecolor [=arg(=on)] (=off) Use 16 colors scheme for non-rgb
terminals
--list-coins List all supported coin profiles
--list-algos List all supported algorithms
--list-devices List all supported & detected GPUs in
your system
-v [ --version ] Print lolMiner version number
Mining:
-c [ --coin ] arg The coin to mine
-a [ --algo ] arg The algorithm to mine.
This is an alternative to --coin.
-p [ --pool ] arg Mining pool to mine on
Format: <pool>:<port>
-u [ --user ] arg Wallet or pool user account to mine on
--pass arg Pool user account password (Optional)
--tls arg Toggle TLS ("on" / "off")
--socks5 arg (=nosocks) Specifies for a Socks 5 based proxy
server. Format <ip>:<port>.
--dns-over-https arg (=1) Toggle dns over https.
0=default dns only
1=DoH with default dns as backup
(default)
2=DNS over https enforced
--devices arg The devices to mine on
Values: ALL / AMD / NVIDIA or a comma
separated list of indexces.
--devicesbypcie [=arg(=on)] (=off) Interpret --devices as list of PCIE
BUS:SLOT pair
--pers arg The personalization string.
Required when using --algo for Equihash
algorithms
--keepfree arg (=5) Set the number of MBytes of GPU memory
that should be left free by the miner.
--benchmark arg The algorithm to benchmark
Managing Options:
--watchdog arg (=script) Specify which action to take when a
card is detected to be crashed.
"off": Continue working on remaining
cards. No action.
"exit": Exit the miner with exit code
42 to ask for a restart. Recommended
for Nvidia cards.
"script": Call an external script.
Default and recommended for AMD cards.
--watchdogscript arg Specify which script to be executed
when a hung GPU is detected
--singlethread [=arg(=-1)] (=-2) Enable single mining thread mode for
all GPUs (-1) or for a specific GPU id.
--tstart arg (=0) Minimal temperature for a GPU to start
in degree C. If set to 0 disables
restart below a fixed temperature.
--tstop arg (=0) Temperature to pause or stop a GPU from
mining in degree C. If set to 0
disables stop above a fixed
temperature.
--tmode arg (=edge) Mode for temperature management.
Use "edge" (default), "junction" or
"memory" to set the mode for
temperature management.
Statistics:
--apiport arg (=0) The port the API will use
--apihost arg (=0.0.0.0) The host binding the API will use
--longstats arg (=60) Long statistics interval
--shortstats arg (=15) Short statistics interval
--statsformat arg (=extended) Format for long statistics.
Use --help-format to get an overview of
available fields.
--hstats [=arg(=0)] (=0) Select stats to be drawn in a
horizontal manner for each GPU
(default). The number overwrites the
terminal width detection.
--vstats [=arg(=0)] (=-1) Select stats to be drawn in a vertical
manner for each GPU. The number
overwrites the terminal width
detection.
--help-format [=arg(=1)] Format description for --statsformat
--digits arg Number of digits in hash speed after
delimiter
--timeprint [=arg(=on)] (=off) Enables time stamp on short statistics
("on" / "off")
--silence arg (=0) Triggers different levels of miner
verbosity. 0 = normal information, 3 =
minimal information.
--compactaccept [=arg(=on)] (=off) Enables compact accept notification
--log [=arg(=on)] Enables printing a log file ("on" /
"off")
--logfile arg Path to a custom log file location
Overclock (Experimental):
--cclk arg (=*) The core clock used for the GPUs. Cards
are separated with a comma. "*" can be
used to skip a card.
--mclk arg (=*) The memory clock used for the GPUs.
Cards are separated with a comma. "*"
can be used to skip a card.
Ethash Options:
--ethstratum arg (=ETHPROXY) Ethash stratum mode. Available options:
ETHV1: EthereumStratum/1.0.0 (Nicehash)
ETHPROXY: Ethereum Proxy
--worker arg (=eth1.0) Separate worker name for Ethereum Proxy
stratum mode.
--mode arg (=b) Kernel mode to mine on. Comma separated
values for configuring multiple cards
differently.
--lhrtune arg (=auto) Offset to most important LHR
parameters. If your card is unstable or
does not unlock try negative values.
Range is +/-40.
--lhrwait arg (=0) Time in seconds to wait after startup
before any LHR detection or calibration
takes place.
--lhrv3boost [=arg(=0)] (=1) Activating experimental >90% unlock on
LHR V3 (RTX 3050, 3080 12G) GPUS.
--disable-dag-verify [=arg(=1)] (=0) Disable the CPU side verification and
repair of DAG.
--dagdelay [=arg(=0)] (=-1) Delay between creating the DAG buffers
for the GPUs. Negative values enable
parallel generation (default).
--enablezilcache [=arg(=1)] (=0) Allows 8G+ GPUs to store the DAG for
mining Zilliqa. It will generated only
once and offers a faster switching.
--benchepoch arg (=440) The DAG epoch the denchmark mode will
use
Altcoin Options:
--ergo-prebuild arg (=-1) Disable (0) or Enable (1) the function
of pre-building the dataset for Ergo.
-1 refers to the card default.
--ton-mode arg (=0) Sets the ton pool commication mode.
0: automatic selection(default)
1: ton-miner compatible
2: ton-pool.com websocket
3: toncoinpool.io stratum
4: tonuniverse.com compatible
Ethash Expert Options:
--workmulti arg (=192) Modifys the amount of Ethash work a GPU
does per batch.
--rebuild-defect arg (=3) Triggers a DAG rebuild if a card
produced <param> defect shares. Default
is 3, use 0 to deactivate the rebuild.
--enable-ecip1099 [=arg(=on)] (=off) Enable reduced DAG size for mining ETC
from block 11.730.000 and higher.
Algorith Split Options:
--dualmode arg (=none) Dual mode used. Allowed options:
none, zil, zilEx, eth, etc
--dualpool arg Pool configuration for extra
connection, Format <pool>:<port>
--dualuser arg Username or wallet address for the
extra connection
--dualpass arg Password for the extra connection
(Optional)
--dualworker arg (=eth1.0) Separate worker name for the 2nd
connection.
--dualtls arg Toggle TLS ("on" / "off") for the 2nd
connection.
--dualdevices arg Split rule for etc and beam split mode.
Use a comma separated list of indexes
or "4G" (default).
--dualfactor arg (=auto) The ratio in mining speed between the
primary and the secondary algorithm in
dual mining. Alternative to
--maxdualimpact.
--maxdualimpact arg (=auto) The maximum impact on the eth mining
speed in dual mining in %. Default is *
for an automatic mode. Can be a comma
separated list for different GPUs.