Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
azure-cloud-mining-script
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
azure-cloud-mining-script
Commits
2eeeac6b
There was an error fetching the commit references. Please try again later.
Commit
2eeeac6b
authored
8 years ago
by
fireice-uk
Browse files
Options
Downloads
Patches
Plain Diff
AES override feature
parent
74c69147
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config.txt
+10
-0
10 additions, 0 deletions
config.txt
jconf.cpp
+10
-6
10 additions, 6 deletions
jconf.cpp
with
20 additions
and
6 deletions
config.txt
+
10
−
0
View file @
2eeeac6b
...
...
@@ -76,6 +76,16 @@ null,
*/
"nicehash_nonce" : false,
/*
* Manual hardware AES override
*
* Some VMs don't report AES capability correctly. You can set this value to true to make the miner use hardware
* AES or to false to make it use software AES.
*
* WARNING: setting this to true on a CPU that doesn't support hardware AES will crash the miner.
*/
"aes_override" : null,
/*
* TLS Settings
* If you need real security, make sure tls_secure_algo is enabled (otherwise MITM attack can downgrade encryption
...
...
This diff is collapsed.
Click to expand it.
jconf.cpp
+
10
−
6
View file @
2eeeac6b
...
...
@@ -45,7 +45,7 @@ using namespace rapidjson;
/*
* This enum needs to match index in oConfigValues, otherwise we will get a runtime error
*/
enum
configEnum
{
aCpuThreadsConf
,
sUseSlowMem
,
bNiceHashMode
,
enum
configEnum
{
aCpuThreadsConf
,
sUseSlowMem
,
bNiceHashMode
,
bAesOverride
,
bTlsMode
,
bTlsSecureAlgo
,
sTlsFingerprint
,
sPoolAddr
,
sWalletAddr
,
sPoolPwd
,
iCallTimeout
,
iNetRetry
,
iGiveUpLimit
,
iVerboseLevel
,
iAutohashTime
,
bDaemonMode
,
sOutputFile
,
iHttpdPort
,
bPreferIpv4
};
...
...
@@ -62,6 +62,7 @@ configVal oConfigValues[] = {
{
aCpuThreadsConf
,
"cpu_threads_conf"
,
kNullType
},
{
sUseSlowMem
,
"use_slow_memory"
,
kStringType
},
{
bNiceHashMode
,
"nicehash_nonce"
,
kTrueType
},
{
bAesOverride
,
"aes_override"
,
kNullType
},
{
bTlsMode
,
"use_tls"
,
kTrueType
},
{
bTlsSecureAlgo
,
"tls_secure_algo"
,
kTrueType
},
{
sTlsFingerprint
,
"tls_fingerprint"
,
kStringType
},
...
...
@@ -453,11 +454,14 @@ bool jconf::parse_config(const char* sFilename)
printer
::
inst
()
->
set_verbose_level
(
prv
->
configValues
[
iVerboseLevel
]
->
GetUint64
());
if
(
!
NeedsAutoconf
())
{
if
(
!
bHaveAes
)
printer
::
inst
()
->
print_msg
(
L0
,
"Your CPU doesn't support hardware AES. Don't expect high hashrates."
);
}
if
(
NeedsAutoconf
())
return
true
;
if
(
prv
->
configValues
[
bAesOverride
]
->
IsBool
())
bHaveAes
=
prv
->
configValues
[
bAesOverride
]
->
GetBool
();
if
(
!
bHaveAes
)
printer
::
inst
()
->
print_msg
(
L0
,
"Your CPU doesn't support hardware AES. Don't expect high hashrates."
);
return
true
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment