Author Topic: Нужна помощь ... снова solo mining  (Read 726 times)

Offline andro1970

  • Newbie
  • *
  • Posts: 3
Нужна помощь ... снова solo mining
« on: November 12, 2015, 04:32:04 AM »
Добрый день !
Я понимаю, что очень много написано по этому поводу FAQ, но мой опыт подсказывает, что всё что там написано когда то давным давно проверилось а потом просто кочюет из форума в форум и никто не заботится о том чтобы всё это проверить. Я решил попробовать реализовать solo mining на windows 7 x64 И хочу поделиться тем что из этого получилось.
Итак.  Имя пользователя на компьютере "ОТК" . Он имеет привилегии админа

0. Скачиваем и устанавливает Litecoin Core с офиц. сайта ( в моём случае для win x64 ). Синхронизируем все блоки .
1. C:\Users\OTK\AppData\Roaming\Litecoin\litecoin.conf
---------- start ---------

server=1
rpcuser=lite
rpcpassword=123
rpcport=9332
gen=0

----------- end -----------
rpcallowip не надо т.к. By default, only RPC connections from localhost are allowed (https://litecoin.info/Litecoin.conf)

2. Рестартуем Litecoin Core client без всяких ключей. т.к. server=1 tells Litecoin-QT to accept JSON-RPC commands.
3. Скачиваем последний bfgminer 5.4.0 x64. Стартуем
bfgminer --scrypt -o http://127.0.0.1:9332 -u lite -p 123
Получаем
[2015-11-12 09:09:59] Probing for an alive pool
[2015-11-12 09:10:04] Pool 0 slow/down or URL or credentials invalid
[2015-11-12 09:10:04] No servers were found that could be used to get work from.
[2015-11-12 09:10:04] Please check the details from the list below of the servers you have input
[2015-11-12 09:10:04] Most likely you have input the wrong URL, forgotten to add a port, or have not set up workers
[2015-11-12 09:10:04] Pool: 0  URL: http://127.0.0.1:9332  User: lite  Password: 123
Явно проблема с пулом. Запускаем Wireshark и вот что видим:

POST / HTTP/1.1
Authorization: Basic bGl0ZToxMjM=
Host: 127.0.0.1:9332
Accept: */*
Accept-Encoding: deflate, gzip
Content-type: application/json
X-Mining-Extensions: longpoll midstate rollntime submitold
Content-Length: 44
User-Agent: bfgminer/5.4.0

{"method": "getwork", "params": [], "id":0}
[2032 bytes missing in capture file]

HTTP/1.1 404 Not Found
Date: Thu, 12 Nov 2015 03:22:31 +0000
Connection: close
Content-Length: 76
Content-Type: application/json
Server: litecoin-json-rpc/v0.10.2.2

{"result":null,"error":{"code":-32601,"message":"Method not found"},"id":0} 



Видим что Litecoin Core не поддерживает директиву getwork.
Изменяем конфиг bfgminer
bfgminer --scrypt --no-getwork -o http://127.0.0.1:9332 -u lite -p 123

Получаем:

POST / HTTP/1.1
Authorization: Basic bGl0ZToxMjM=
Host: 127.0.0.1:9332
Accept: */*
Accept-Encoding: deflate, gzip
Content-type: application/json
X-Mining-Extensions: longpoll midstate rollntime submitold
Content-Length: 235
User-Agent: bfgminer/5.4.0

{"id": 0, "method": "getblocktemplate", "params": [{"capabilities": ["coinbasetxn", "workid", "longpoll", "coinbase/append", "time/increment", "version/force", "version/reduce", "submit/coinbase", "submit/truncate"], "maxversion": 3}]}HTTP/1.1 200 OK
Date: Thu, 12 Nov 2015 04:20:49 +0000
Connection: keep-alive
Content-Length: 6673
Content-Type: application/json
Server: litecoin-json-rpc/v0.10.2.2

{"result":{"capabilities":["proposal"],"version":3,"previousblockhash":"88fef5ec90be29fb9ce4bee0646cb0d2eeab91727913f02bef2f616286f080d0","transactions":[{"data":"01000000014578870791937ad65be9acf6c6b92bd8fb4f023abad2f275f1141ad6ab1c6fc801000000da0047304402206c7af2d4cf075661c3391ab6ae37a45000346f9a65e383d8897f1b131364320c022023897d29dcecc06bf759ffe55544568bd664204d7e946b4c372981f7363a6ea701483045022100f9f455bc711e4e8cda67e7feb3463ac1d58f1feeeb5a735bde02ca7e94fe434c02200e69f77981e5a81f6a62c1cc3ec2f6ec150314c956f3e3a1e4fb936afda378f10147522102f8a0171001e4c33563f160d3ffdea0d34a953f72e3dfa8422d1e494afed097a521024c5babb50a45fa030e7569961eacbb15f7d2c78798dae35f942366fe15fa6d5352aeffffffff020095ba0a000000001976a914a1614cc8b7c54c521bca8a7519fb05fc253c39a888ac00be0f986700000017a9143633995b6c05965f11552b32567ff3ff4e2a2c628700000000","hash":"3e17bca8bee69df93c226338d79ac332b63cab1a74218c1f568020c9ae6535a4","depends":[],"fee":100000,"sigops":3},{"data":"01000000117cc3f689976b083250bc6c7d90cb4bdf913cdee67ef951d0d3b2cd9ad0cec7a4560000006b483045022100ed5820faf3fbf1b818d0d00c590e5c01dd53f2b0ee0aa6e0a262a14ffc37698002201e98436dc24c86219a4f7c5123e3accc024fdb3be741506bc8e12909af7603a8012102f76f5d5f6c1ffbce61c850eaa5adea5d9f33b38e44a49032dd3b35dbbd20f750ffffffff369ec82e58778597fff18723ae442b2ca2742239b2a79ec301cc2aa45a1a74b5000000006a47304402200f2385e6a00aef796bc1592891b7d838e86c6ca3d1030f4003b7f21a7b81742802204be6fd4e8551a56621496adea5e7661e180506abd5c20282f5048cd9cd7aa7b60121037e3c9cb8648ba94f0785d110176032f99e5bcb31c9fe07b7a0c123e4b485673dffffffffd9ad90b75f1f4f533658f10e53853c6e5bb4a6826b8510a3151476cde7dfe6a8450000006a473044022010b61503a1815cd92a8b2853fcc40c3023784502de867f46eab0589d8cb5c1a102202b6dd3ca4be529f9f8d9113cf2a350a3ccb787bf8dae21f3c3ed78d04b7ee7cd0121030c4bf74c8a28ab974c837c3cf384cf808916c1270cc8286ba53177f2e4d851cbffffffff8fa7511015132216d14dc58ceba95ad5da33485729b90cdf21e0048ba157fd93470000006b483045022100ce28134a811d44065b319ec00bdb83f86d7fb99100221823ebc6d264db99605d02205b6e363fe5e845cef9e8daeb73674df434d3b10507aa799f6611489da4acff51012103bcfb1ee2791bd54d75c11386e600490a902758ba0a940f78f1daaa3d48866f99ffffffff8fa7511015132216d14dc58ceba95ad5da33485729b90cdf21e0048ba157fd934c0000006a473044022053742c3ef04808bf81f1160fd564ecd7d2db3d8ced1261102029f89b88e741f0022078af0d789dfab7247f5e145925430c7cc92175ccb26547beec982821aeadcca30121020842d106d963e40f1eb106a233cf6b0e78454c76d22780338b159d4c3f54f988ffffffffafb5bb2a5850065b2f3cd3ab858e52ca882c93fcd96e781e83a5b8c20464ec67950000006b483045022100eb499c747f457b5b5ed0104913eb6716c611b19c7ea05f68c1363b4e3786d8af022046b42c82ac8cbf199a65f34f84fc8a8b92a6fb673dcbd55a9c60cd803f47a90a01210385978acc9d61a6300da2f99285945e12686ee85cd6128571f2406d0cec6615caffffffffc127d54b8d2d1d36dfb1f6c465d7934f900c1831fb0a16be2b0c321b51d6e12e340000006b483045022100c7f4cc0958fcfbe3df70c65cbfa4f9b697fcc1a425e73305f9bd4e241ba809b30220293507361ce68ce3a6cc599a8a5f57c29c9bcc6b23d6985f4417537616395a1b0121027e9a4edf0c87133a859aecc30a3eefb80c5374bb432efd8eb2c67733a646e929ffffffff0bde8bbdb3405983af9e9199bf3f7c62246581111c108704a9e5c898e82d0ea2000000006b483045022100f4fb125d2e6628f79125840eb875ad2f137318b9198f249164386d0addc1f88702204ba3a6fe1baed962b08063e6228793a30330f5e2e69ffb1e9395e78dcfe538c4012102cde37fafa9983d3dbe207d1e4681beb167e40130fec014a539c1de1ea9f0e02dffffffff0b4910bfbe12085d412dd00817f713113422578ad62722248367390ee6bfce74190000006a47304402200d108ec812dfe22efded8278aba7c82e27f87e0bb8fccf69f8938f74763e103f02202d9ccb6c0cc091e1e3574d47a11765d8d7e6d50e0ce621754ec98d1fba6c6296012103435a8fe0f2a48dc2c85a9c6fe17cc19ac83ed3a6fb87d0629768bca39ebc9f4effffffff787b5af72b4dda9d8edb049b96231b0cdc779dd8714a803059863dbb346004c2200000006b483045022100fe52b6ed4678cf0fdb62be9f26533047dde666357177b5553bce3ff0a3564d50022064c0fa37119fec0895116921b347684dc846eafdc1f28d005d7e448eb8f608ae01210373dae96e9726ca8ad0cc6d5ac4454aacf48b3d31105b7711d196e5f90ed49fc8ffffffffd465a0673e170fd384a06a1606f289c6d802bf2cd0994674092e8c70f4e4a5eb9d0000006b483045022100bc6484e8dde881ca741444c6952d3e0b36082cd67e09ff4bf21a01777650277f02205e4110eb093591498df2d5697761e2b9effb9c25db8654e27da38e928c9ccf2d0121031771147ed44a11e7542171ca26f2a1250810789252a03a58ebe641a9c63fe0bbffffffffd0dbe809a8825f3aed8bfe30029ca7e78c6f3e8ae83ec78ee1dc73b8caf78db4000000006b483045022100a0f2a3bbe593f472957b86799b5c9f554bfe2ccfdbc3bdd1ed3260ec4efe837d0220233a6ce9c502e7ed0f46fb5a297e8029374a8f76e50b6c3c7e0a0d883d5c1f8b012103844d8261f81e70ddc9c8f03790494fb313a26350f384a02d679a0e0ccf057688ffffffff59660b7ddc03eeeebf87e60ecf456e173f67d6f57e6d1c05ea1b8c0761239527010000006a473044022006af6809ed1e5597676710441f2b281e9721701fdfb02475d266f86ca0948cb50220167ae04ca7ecf2716d95e230144c350f433d446b4ae81d5c2d2512a4b4a9bbf3012102c0ef38be1d121ed3740c3151725d5db850e2c87231084a646f175ad9a94f2d32ffffffff335241abaad0e382b8d9b49d874bb905c372f44a30e888139858bab9f1ea8ae4010000006b483045022100d509e7d80c58d859a2ae48a7da78a64b71bbe81bcd273798e3c104ec4aaac43d022000a844a2af805416fd09e3c0e0a177be7104f191ec3a0232ad1e17fc864c2c50012103f6f05d32eccb9b04ecf5c458b88208b0983a514b5259b12b96c62ccaa840562bffffffff4bcfae514b5cd0efcb1fb4281be11a4a94c841a4b5692ad3076a5b9cd2c4d6cd000000006b4830450221009dc25a34147da68d88e403d644374ebfeab2512e1933792bb1abd2f7761e5c9202202a969fabf2f96bb3e2841196ed6777beef70b6807010572b3e69511b4d6a6835012102ec0d4ce0542b153b726cd6c58abafe4f83dd3ea0acfc8a72458ce4c4bbb77e9dffffffff5e5744581e47bfa40cfffaf1f15036fe04a885d9ab46b5188ef0f2fe86c5f4c1000000006a47304402205977203b48ba07bd97ba5bdb8fc3367660a37567feb88d9b9050adcc395ad7ee022060c75306753f5fbb5291c6ea56c859ad3a8556f0a23cc05ab7c6f0c43bcbb0960121022d8dfdc1dfb5d1b3ba9225dc33df098c8e5a498dcbe29cc6ec5fb5257fc88860ffffffffce277ee41c79f8ef685e4510171ce9f7bf2471bb3f15dcc5c882b6ed0a05cd96000000006a473044022043939171dfa47d12d0d819cfdd3e167099446db42a1a6de8b057ec0b9410997a02205eaae1448d7a6b49695d591f82af7cb64ce527ffcf46df7b40133a9aceeb307101210280640dfafefbf29f5741f05e99630a8a6b2e8b1231a667293fd4f3ab468784f9ffffffff02104efc09000000001976a9145124f71801383b8b0a6eda2a16aecc2f674cd63b88ac49420f00000000001976a91488602f9c554b84ace74e6045e705245cc72f48de88ac00000000","hash":"11cad39db32a4f0a34aac79f3fc1f8b821b775fdbbf2a1e3a55383aaca19d950","depends":[],"fee":900000,"sigops":2}],"coinbaseaux":{"flags":""},"coinbasevalue":2501000000,"longpollid":"88fef5ec90be29fb9ce4bee0646cb0d2eeab91727913f02bef2f616286f080d0708","target":"0000000000015688000000000000000000000000000000000000000000000000","mintime":1447300813,"mutable":["time","transactions","prevblock"],"noncerange":"00000000ffffffff","sigoplimit":20000,"sizelimit":1000000,"curtime":1447302042,"bits":"1b015688","height":885239},"error":null,"id":0}

Получаем ответ:

 [2015-11-12 10:23:12] Probing for an alive pool
 [2015-11-12 10:23:12] Testing pool http://127.0.0.1:9332
 [2015-11-12 10:23:13] No servers were found that could be used to get work from.
 [2015-11-12 10:23:13] Please check the details from the list below of the servers you have input
 [2015-11-12 10:23:13] Most likely you have input the wrong URL, forgotten to add a port, or have not set up workers
 [2015-11-12 10:23:13] Pool: 0  URL: http://127.0.0.1:9332  User: lite  Password: 123
 [2015-11-12 10:23:13] Press any key to exit, or BFGMiner will try again in 15s.


Всё... Все попытки как-то понять ситуацию на этом закончились ... Помогите пожалуйста кто понимает что не так ?