Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Authorized miner #636

Closed
857487 opened this issue May 29, 2019 · 11 comments
Closed

Authorized miner #636

857487 opened this issue May 29, 2019 · 11 comments
Labels

Comments

@857487
Copy link

857487 commented May 29, 2019

[Description of the issue]
I added a monero series of coins and I got the following error when I tried to mine.:"Authorized miner"

Steps to Reproduce

Open daemon, open wallet, start miningcore, mining

Expected behavior

Successful mining

Actual behavior

Authorized miner

Reproduces how often

100%

Version

Master

Additional Information

[2019-05-29 13:05:18.8351] [W] [Core] Running as root is discouraged!
[2019-05-29 13:05:18.8873] [I] [Core] .NET Core 4.6.27617.05 on Linux 4.4.0-148-generic #174-Ubuntu SMP Tue May 7 12:20:14 UTC 2019 [X64]
[2019-05-29 13:05:19.0214] [I] [Core] 51 coins loaded from /root/miningcore/build/coins.json
[2019-05-29 13:05:19.1475] [I] [ShareRecorder] Online
[2019-05-29 13:05:19.5228] [I] [Core] API Access to /api/admin restricted to 127.0.0.1,::1,::ffff:127.0.0.1
[2019-05-29 13:05:19.5228] [I] [Core] API Access to /metrics restricted to 127.0.0.1,::1,::ffff:127.0.0.1
[2019-05-29 13:05:19.7239] [I] [Core] API access limited to 5 requests per 1s, except from 127.0.0.1, ::1, ::ffff:127.0.0.1
[2019-05-29 13:05:19.7554] [I] [Core] API Online @ 127.0.0.1:4001
[2019-05-29 13:05:19.7554] [I] [Core] Prometheus Metrics Online @ 127.0.0.1:4001/metrics
[2019-05-29 13:05:19.7554] [I] [Core] WebSocket notifications streaming @ 127.0.0.1:4001/notifications
[2019-05-29 13:05:19.7725] [I] [Core] Payment processing is not enabled
[2019-05-29 13:05:19.7848] [I] [StatsRecorder] Online
[2019-05-29 13:05:19.8098] [I] [adon1] Starting Pool ...
[2019-05-29 13:05:19.8292] [I] [adon1] Starting Job Manager ...
[2019-05-29 13:05:19.9696] [I] [adon1] All daemons online
[2019-05-29 13:05:20.0450] [I] [adon1] All daemons synched with blockchain
[2019-05-29 13:05:20.1081] [I] [adon1] Job Manager Online
[2019-05-29 13:05:20.6065] [I] [adon1] Detected new block 6401 [POLL]
[2019-05-29 13:05:20.6152] [I] [adon1] Broadcasting job
[2019-05-29 13:05:21.3936] [I] [adon1] Detected new block 6401 [POLL]
[2019-05-29 13:05:21.3936] [I] [adon1] Broadcasting job
[2019-05-29 13:05:21.5098] [I] [adon1] Pool Online
[2019-05-29 13:05:21.5211] [I] [adon1]

Mining Pool: adon1
Coin Type: adon [adon]
Network Connected: Main
Detected Reward Type: POW
Current Block Height: 6401
Current Connect Peers: 28
Network Difficulty: 213113638
Network Hash Rate: 0 KH/s
Stratum Port(s): 3052
Pool Fee: 1.5%

[2019-05-29 13:05:21.5274] [I] [adon1] Stratum ports 0.0.0.0:3052 online
[2019-05-29 13:05:22.1956] [I] [adon1] Detected new block 6401 [POLL]
[2019-05-29 13:05:22.1959] [I] [adon1] Broadcasting job
[2019-05-29 13:05:23.4022] [I] [adon1] Detected new block 6401 [POLL]
[2019-05-29 13:05:23.4022] [I] [adon1] Broadcasting job
[2019-05-29 13:05:24.2061] [I] [adon1] Detected new block 6401 [POLL]
[2019-05-29 13:05:24.2061] [I] [adon1] Broadcasting job
[2019-05-29 13:05:25.0087] [I] [adon1] Detected new block 6401 [POLL]
[2019-05-29 13:05:25.0087] [I] [adon1] Broadcasting job
[2019-05-29 13:05:26.0412] [I] [adon1] [0HLN3UD1FQJFN] Accepting connection from ::ffff:192.168.88.2:30072 ...
[2019-05-29 13:05:26.0412] [I] [adon1] [0HLN3UD1FQJFN] Connection from ::ffff:192.168.88.2:30072 accepted on port 3052
[2019-05-29 13:05:26.1254] [I] [adon1] [0HLN3UD1FQJFN] Authorized miner //wallet address//
[2019-05-29 13:05:26.1690] [I] [adon1] [0HLN3UD1FQJFN] Connection closed
[2019-05-29 13:05:26.2150] [I] [adon1] Detected new block 6401 [POLL]
[2019-05-29 13:05:26.2150] [I] [adon1] Broadcasting job
[2019-05-29 13:05:27.0174] [I] [adon1] Detected new block 6401 [POLL]
[2019-05-29 13:05:27.0174] [I] [adon1] Broadcasting job
[2019-05-29 13:05:28.2239] [I] [adon1] Detected new block 6401 [POLL]
[2019-05-29 13:05:28.2239] [I] [adon1] Broadcasting job
[2019-05-29 13:05:29.0266] [I] [adon1] Detected new block 6401 [POLL]
[2019-05-29 13:05:29.0266] [I] [adon1] Broadcasting job
[2019-05-29 13:05:29.7955] [I] [StatsRecorder] Updating hashrates for pool adon1
[2019-05-29 13:05:29.8520] [I] [StatsRecorder] Reset performance stats for pool adon1
[2019-05-29 13:05:29.9229] [I] [StatsRecorder] Performing Stats GC
[2019-05-29 13:05:29.9386] [I] [StatsRecorder] Stats GC complete
[2019-05-29 13:05:30.2305] [I] [adon1] Detected new block 6401 [POLL]
[2019-05-29 13:05:30.2305] [I] [adon1] Broadcasting job
[2019-05-29 13:05:31.0401] [I] [adon1] Detected new block 6401 [POLL]

###coins.json
"adon": {
"name": "adon",
"symbol": "adon",
"family": "cryptonote",
"hash": "cryptonight-lite",
"hashVariant": 0,
"smallestUnit": 100000000,
"addressPrefix": 986822,
"addressPrefixTestnet": 986823,
"addressPrefixIntegrated": 98,
"addressPrefixIntegratedTestnet": 99,
"explorerBlockLink": "https://adonblocks.com/block/$height$",
"explorerTxLink": "https://adonblocks.com/tx/{0}"
},
###xmrig-nvidia-2.14.3
"pools": [
{
"url": "stratum+tcp://192.168.88.10:3052",
"user": "wallet address",
"pass": "x",
"rig-id": null,
"nicehash": true,
"keepalive": true,
"variant": -1,
"enabled": true,
"tls": false,
"tls-fingerprint": null
}
],

@oliverw
Copy link
Owner

oliverw commented May 29, 2019

Authorized miner is not an error. I can see that the miner immediately closed the connection after getting authorized but to analyse the problem I would need to see the error your miner reports.

@857487
Copy link
Author

857487 commented May 29, 2019

image

@857487
Copy link
Author

857487 commented May 29, 2019

[2019-05-29 13:49:16] �[1;32m * �[0m�[1;37mABOUT �[0m�[1;36mXMRig-NVIDIA/2.14.3�[0m�[1;37m MSVC/2017�[0m�[0m
[2019-05-29 13:49:16] �[1;32m * �[0m�[1;37mLIBS libuv/1.24.1 CUDA/10.10 OpenSSL/1.1.1a microhttpd/0.9.61 �[0m�[0m
[2019-05-29 13:49:16] �[1;32m * �[0m�[1;37mCPU �[0m�[1;37m Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz �[1;32mx64 �[1;32mAES�[0m�[0m
[2019-05-29 13:49:16] �[1;32m * �[0m�[1;37mGPU #0 �[0m�[0;33mPCI:0000:01:00�[0m�[0;32m GeForce GTX 1070 Ti @ 1683/4004 MHz�[0m �[1;30m22x57 6x25 arch:61 SMX:19 MEM:6770/8192 MiB�[0m
[2019-05-29 13:49:16] �[1;32m * �[0m�[1;37mALGO cryptonight-lite, donate=5%�[0m�[0m
[2019-05-29 13:49:16] �[1;32m * �[0m�[1;37mPOOL #1 �[0m�[1;36mstratum+tcp://192.168.88.10:3052�[0m variant �[1;37m1�[0m�[0m
[2019-05-29 13:49:16] �[1;32m * �[0m�[1;37mCOMMANDS �[0m�[1;35mh�[0m�[1;37mashrate, �[0m�[1;37mh�[0m�[1;35me�[0m�[1;37malth, �[0m�[1;35mp�[0m�[1;37mause, �[0m�[1;35mr�[0m�[1;37mesume�[0m�[0m
[2019-05-29 13:49:16]�[0;31m [stratum+tcp://192.168.88.10:3052] login error code: 2�[0m
[2019-05-29 13:49:22]�[0;31m [stratum+tcp://192.168.88.10:3052] login error code: 2�[0m
[2019-05-29 13:49:28]�[0;31m [stratum+tcp://192.168.88.10:3052] login error code: 2�[0m
[2019-05-29 13:49:34]�[0;31m [stratum+tcp://192.168.88.10:3052] login error code: 2�[0m
[2019-05-29 13:49:37]�[0;33m SIGHUP received, exiting�[0m

@857487
Copy link
Author

857487 commented May 29, 2019

image
image

@857487
Copy link
Author

857487 commented May 29, 2019

Miningcore.Blockchain.Cryptonote.CryptonoteJob.EncodeBlob return null

@oliverw
Copy link
Owner

oliverw commented May 29, 2019

@857487 Could be that our Monero based version the Cryptonote native code somehow is not compatible with your forked coin.

@857487
Copy link
Author

857487 commented May 30, 2019

@oliverw Should be the reason Official pool program https://github.com/adon-net/adon-pool

@shihanhana
Copy link

@oliverw Native code used by adonCoin https://github.com/MoneroOcean/node-cryptoforknote-util
Native code used by miningCore https://github.com/Snipa22/node-cryptonote-util
Both of these are branches of this https://github.com/clintar/node-cryptonote-util. Lead to incompatible forks
Specific location https://github.com/MoneroOcean/node-cryptoforknote-util/blob/master/src/main.cc Line 149 specifies the algorithm type BLOB_TYPE_CRYPTONOTE
Adoncoin forked coin https://github.com/MoneroOcean/node-cryptoforknote-util/blob/5afa00d3294cd8fa8d236b6723683ca170026149/src/cryptonote_config.h
Enum BLOB_TYPE {
   BLOB_TYPE_CRYPTONOTE = 0,
   BLOB_TYPE_FORKNOTE1 = 1,
   BLOB_TYPE_FORKNOTE2 = 2,
   BLOB_TYPE_CRYPTONOTE2 = 3, // Masari
   BLOB_TYPE_CRYPTONOTE_RYO = 4, // Ryo
   BLOB_TYPE_CRYPTONOTE_LOKI = 5, // Loki
   BLOB_TYPE_CRYPTONOTE3 = 6, // Masari
};
I am a C# amateur, I need to do it to help as much as possible to be compatible with forked coins.

@oliverw
Copy link
Owner

oliverw commented May 30, 2019

@frelce Sounds plausible. Feel free to give it a shot :)

@shihanhana
Copy link

@ @oliverw Sorry, I try to be compatible with adon forks, but you know that I am not proficient, only the blob calculation is correct, if you have free time, you can consider handling compatibility.

@stale
Copy link

stale bot commented Sep 10, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Sep 10, 2019
@stale stale bot closed this as completed Sep 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants