Pool miner chia github

Pool miner chia github

trying2016 released this Jun 9, 2021

关于代理配置:
一个局域网内,代理只需要开一台就可以了,建议超过1台Miner的用户使用代理,在代理中有管理Miner和查看所有plot文件的相关信息
x-proxy使用步骤:
1、选择一个配置相对高的电脑,运行x-proxy
2、找到x-proxy的局域网IP,例如:192.168.1.88
3、在其它Miner机器上配置proxy: «http://192.168.1.88:9190»
4、检查Miner的任务是不是每10s更新一次

  1. Add x-proxy support
  2. Optimize the problem that Miner may be stuck

About proxy configuration:
In a local area network, only one agent needs to be opened. It is recommended that users with more than one Miner use the agent. In the agent, there is information about managing the Miner and viewing all plot files.
Steps to use x-proxy:

  1. Choose a computer with relatively high configuration and run x-proxy
  2. Find the LAN IP of x-proxy, for example: 192.168.1.88
  3. Configure proxy on other Miner machines: «http://192.168.1.88:9190»
  4. Check whether the Miner task is updated every 10s

Note: Miner scan time exceeds 5s, the timeout directory will be automatically offline. If your scan time exceeds 5s, please check whether the hardware is normal, and it is recommended not to use network mount
It is recommended to control the scan consumption within 5s (the scan time is the official limit of CHIA, not a rule customized by HPOOL)

trying2016 released this May 25, 2021

1、修复扫盘卡住不返回导致整个任务卡住问题
2、修复报C++异常
3、优化文件加载
(2版本)
4、增加ARM版本支持
5、增加出现无效文件时打印具体信息

  1. Fix the problem that the entire task is stuck when the scan is stuck and does not return
  2. Fix the C++ exception
  3. Optimize file loading
    (Version 2)
  4. Increase ARM version support
  5. Increase the printing of specific information when invalid files appear

Note: Miner scan time exceeds 5s, the timeout directory will be automatically offline. If your scan time exceeds 5s, please check whether the hardware is normal, and it is recommended not to use network mount
It is recommended to control the scan consumption within 5s (the scan time is the official limit of CHIA, not a rule customized by HPOOL)

trying2016 released this May 13, 2021

1.修改扫盘超时下线规则,只下线当前超时目录,对其它正常目录不影响,目录扫盘时间恢复正常范围后会自动上线,如果一直保持超时状态,请检查硬件状态
2.修复linux打开文件数过多问题
3.window GUI增加扫盘路径状态显示
4.修复1.0版本用账号登录后,使用新版软件,设置ApiKey无效问题
(2)版本
5.优化加载速度
(3)版本
6.修复没任务问题
(4)版本
7.修复部分用户上传矿机状态可能卡住问题
8.增加单线程加载目录选择,在设置中开启或关闭,如果目录多,出价加载错误情况请开启该选项
singleThreadLoad: true
(5)版本
9.修复文件信息错误时导致程序异常问题
(6)版本
10.同步官方代码,修复文件操作失败异常问题
11.修改加载文件默认单线程模式

  1. Modify the scan timeout and offline rules, only offline the current timeout directory, it will not affect other normal directories, the directory will automatically go online after the scan time returns to the normal range. If the timeout status has been maintained, please check the hardware status
  2. Fix the problem of too many open files in Linux
  3. The window GUI adds the status display of the scan path
  4. Fix the problem of invalid setting of ApiKey after using the new version of the software after logging in with an account in version 1.0
    (2) Version
  5. Optimize loading speed
    (3) Version
  6. Fix the problem of no task
    (4) Version
  7. Fix the problem that some users may be stuck when uploading the status of the mining machine
  8. Increase the single-threaded loading catalog selection, which can be turned on or off in the settings. If there are many catalogs and the bid loading error situation, please turn on this option
    singleThreadLoad: true
    (5) Version
  9. Fix the program abnormal problem when the file information is wrong
    (6) Version
  10. Synchronize the official code and fix the abnormal problem of file operation failure
  11. Modify the default single-threaded mode of the loaded file

Note: Miner will automatically go offline if the scan time exceeds 5s. If your scan time exceeds 5s, please check whether the hardware is normal
It is recommended to control the scan consumption within 5s (the scan time is the official limit of CHIA, not a rule customized by HPOOL)

Источник

Pool miner chia github

Use Git or checkout with SVN using the web URL.

Work fast with our official CLI. Learn more.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

This prototype is not yet supported and is still in development. This code is provided under the Apache 2.0 license. Note: the draft specification is in the SPECIFICATION.md file.

Several things are customizable in this pool reference. This includes:

  • How long the timeout is for leaving the pool
  • How difficulty adjustment happens
  • Fees to take, and how much to pay in blockchain fees
  • How farmers’ points are counted when paying (PPS, PPLNS, etc)
  • How farmers receive payouts (XCH, BTC, ETH, etc), and how often
Читайте также:  Оценка эффективности инвестиций вкр

However, some things cannot be changed. These are described in SPECIFICATION.md, and mostly relate to validation, protocol, and the singleton format for smart coins.

A partial is a proof of space with some additional metadata and authentication info from the farmer, which meets certain minimum difficulty requirements. Partials must be real proofs of space responding to blockchain signage points, and they must be submitted within the blockchain time window (28 seconds after the signage point).

The pool server works by receiving partials from the users, validating that they are correct and correspond to a valid signage point on the blockchain, and then adding them to a queue. A few minutes later, the pool pulls from the queue, and checks that the signage point for that partial is still in the blockchain. If everything is good, the partial is counted as valid, and the points are added for that farmer.

Collecting pool rewards

The pool periodically searches the blockchain for new pool rewards (1.75 XCH) that go to the various p2_singleton_puzzle_hashes of each of the farmers. These coins are locked, and can only be spent if they are spent along with the singleton that they correspond to. The singleton is also locked to a target_puzzle_hash , which in this diagram is the red pool address. Anyone can spend the singleton and the p2_singleton_puzzle_hash coin, as long as it’s a block reward, and all the conditions are met. Some of these conditions require that the singleton always create exactly 1 new child singleton with the same launcher id, and that the coinbase funds are sent to the target_puzzle_hash .

Calculating farmer rewards

Periodically (for example once a day), the pool executes the code in create_payment_loop . This first sums up all the confirmed funds in the pool that have a certain number of confirmations.

Then, the pool divides the total amount by the points of all pool members, to obtain the mojo_per_point (minus the pool fee and the blockchain fee). A new coin gets created for each pool member (and for the pool), and the payments are added to the pending_payments list. Note that since blocks have a maximum size, we have to limit the size of each transaction. There is a configurable parameter: max_additions_per_transaction . After adding the payments to the pending list, the pool members’ points are all reset to zero. This logic can be customized.

Difficulty adjustment algorithm

This is a simple difficulty adjustment algorithm executed by the pool. The pool can also improve this or change it however they wish. The farmer can provide their own suggested_difficulty , and the pool can decide whether or not to update that farmer’s difficulty. Be careful to only accept the latest authentication_public_key when setting difficulty or pool payout info. The initial reference client and pool do not use the suggested_difficulty .

  • Obtain the last successful partial for this launcher id
  • If > 3 hours, divide difficulty by 5
  • If > 45 minutes

Note that the payout info is provided with each partial. The user can choose where rewards are paid out to, and this does not have to be an XCH address. The pool should ONLY update the payout info for successful partials with the latest seen authentication key for that launcher_id.

Install and run (Testnet)

To run a pool, you must use this along with a branch of chia-blockchain .

Checkout the pools.2021-may-25 branch of chia-blockchain , and install it. Checkout this repo in another directory next to (not inside) chia-blockchain . Make sure to be on testnet by doing export CHIA_ROOT=».chia/testnet7″ and chia configure —testnet true .

Create two keys, one which will be used for the block rewards from the blockchain, and the other which will receive the pool fee that is kept by the pool.

Change the wallet_fingerprint and wallet_id in the config.yaml config file, using the information from the first key you created in step 2. These can be obtained by doing chia wallet show .

Do chia keys show and get the first address for each of the keys created in step 2. Put these into the config.yaml config file in default_target_puzzle_hash and pool_fee_puzzle_hash respectively.

Change the pool_url in pool.py to point to your external ip or hostname. This must match exactly with what the user enters into their UI or CLI, and must start with https://. For now http:// can also be used.

If you would like to test with smaller plots (instead of using k32s), go to the file default_constants.py and increase POOL_SUB_SLOT_ITERS from 37600000000 to 37600000000 * (2**11). The default value with difficulty 1 (the lowest) will result in 10 partials per day per k32. This makes it difficult to test due to large plots.

Start the node using chia start farmer , and log in to a different key (not the two keys created for the pool). This will be referred to as the farmer’s key here. Sync up your wallet on testnet for the farmer key.

Create a venv (different from chia-blockchain) and start the pool server using the following commands:

You should see something like this when starting, but no errors:

Create a pool nft (on the farmer key) by doing chia plotnft create -u http://127.0.0.1:80 , or whatever host:port you want to use for your pool. Approve it and wait for transaction confirmation. This url must match exactly with what the pool uses.

Do chia plotnft show to ensure that your plotnft is created. Now start making some plots for this pool nft. You can make plots by specifying the -c argument in chia plots create . Make sure to not use the -p argument. The value you should use for -c is the P2 singleton address from chia plotnft show output. You can start with small k25 plots and see if partials are submitted from the farmer to the pool server. The output will be the following in the pool if everything is working:

Note that switching pools is still not enabled, but will be added very shortly. Please send a message to @sorgente711 on keybase if you have questions about the 10 steps explained above. All other questions should be send to the #pools channel in keybase. Note that there will probably be breaking changes soon which will require re-plotting and re-running all the steps above.

Источник

Pool miner chia github

Automate your workflow from idea to production

GitHub Actions makes it easy to automate all your software workflows, now with world-class CI/CD. Build, test, and deploy your code right from GitHub.

Linux, macOS, Windows, ARM, and containers

Hosted runners for every major OS make it easy to build and test all your projects. Run directly on a VM or inside a container. Use your own VMs, in the cloud or on-prem, with self-hosted runners.

Matrix builds

Save time with matrix workflows that simultaneously test across multiple operating systems and versions of your runtime.

Any language

GitHub Actions supports Node.js, Python, Java, Ruby, PHP, Go, Rust, .NET, and more. Build, test, and deploy applications in your language of choice.

Live logs

See your workflow run in realtime with color and emoji. It’s one click to copy a link that highlights a specific line number to share a CI/CD failure.

Built-in secret store

Automate your software development practices with workflow files embracing the Git flow by codifying it in your repository.

Multi-container testing

Test your web service and its DB in your workflow by simply adding some docker-compose to your workflow file.

Источник

Как майнить Chia Coin на пуле Hpool. Настройка.

Для тех, у кого небольшая мощность ферм на HDD и SSD наиболее актуальным будет майнинг Chia Coin на пуле. Ведь награда будет сыпаться с пула на ваш кошелёк систематически, в зависимости от вашей доли мощностей. Грубо говоря, вы объединяетесь с другими майнерами, вместе общей мощностью в Соло находите блок в блокчейне Chia, и делите всё между собой. В данной статье рассмотрим подробную настройку майнинга Chia на китайском пуле Hpool.

При соло майнинге нужно иметь очень большие мощности оборудования, чтобы случайно находить блоки, награда в которых будет полностью доставаться вам. Для выгодности такой добычи нужны серьёзные вложения, одним ригом, скажем, на шесть жёстких дисков по 8 Тб вы не обойдётесь. В таком случае нужно подключаться к крупному пулу.

Выбор пула для майнинга CHIA COIN.

Давайте посмотрим, какие в данный момент есть действующие пулы Chia, и обратим внимание на их общий хешрейт.

Лидирует hpool.com, он занимает 91% мощности сети, а значит при майнинге на нём выгоды будет больше, из-за того, что этот пул будет чаще находить блоки (причём заметно чаще).

Так же к пулу подключено свыше 20 тысяч майнеров, и общий хешрейт постоянно растёт с огромной скоростью.

Авторизация на крупном пуле Chia Hpool.

Так как пул китайский, на сайте доступны всего два языка, так что сразу же переключитесь на англиЦкий. Пройдите регистрацию, учтите, что электронное письмо с подтверждением прилетит в папку со спамом, и будет на китайском языке. Но гугл-переводчик в помощь, я уверен, что вы найдёте, куда кликнуть для подтверждения регистрации.

Как залогинетесь, сверху кликайте на свой имейл и переходите в Personal Center. На вкладке с Security добавляем Верификацию от Гугла, для этого нужно установить на свой смартфон официальное приложение, скорее всего вы им уже пользуетесь.

Далее настраиваем верификацию по SMS. Добавляем свой номер телефона.

Пул Hpool больше не отправляет SMS-сообщения на абонентские номера России и Украины.

Чтобы решить данный вопрос нужно зарегистрировать туристическую или виртуальную симку с кодом другой страны. Читайте подробнее в этой статье.

Только после настроек верификации можно будет указать свой Chia-кошелёк, на который вы будете майнить.

Далее переходим в раздел Download Center и скачиваем CHIA-plotter.

Нас перекинет на Github, находим последнюю версию плоттера, кликаем на Assets и выбираем Chai-plotter-gui.

Chai-plotter-gui-v0.11-win64.exe.

В самое верхнее текстовое поле вводим вашу мнемоническую фразу и кликаем на Sign (кнопка справа от текстового поля).

Программа авторизуется в блокчейне через пул, подгрузив номер кошелька и все его ключи. Не волнуйтесь, пул не получит доступ к вашим файлам лицензии кошелька и прочей информации.

Сравните номер вашего кошелька и тот, что появился в программе после авторизации, где указано Fingerprint. (Это то что показывает кошелёк Chia при входе в программу).

Далее переходим в раздел Pool, кликаем на Open Pool и выбираем All сверху.

chia eco

Находим в списке CHIA ECO и кликаем в сниппете на Open Pool.

Нас перекинет на страницу с пулом Chia, где нужно кликнуть на Go To Configuration.

Тут нужно будет ввести сигнатуру из программы-плоттера-GUI.

При добавлении сигнатуры вас попросят ввести код из Гугл аутентификатора, после чего появится номер вашего кошелька Чиа ниже в графе Binding Check со статусом Successful.

Вот такая вот, заморочистая процедура добавления кошелька на пул.

Настройка Батника для плоттинга Chia на пуле.

Возвращаемся на страницу Гитхаба и скачиваем средство для создания плотов. (Я использую Windows 10, так что буду показывать на таком примере).

Распаковываем архив, и открываем Батник plotting.bat в текстовом редакторе.

Я использую блокнот для программистов Notepad++.

Мы увидим следующую картину в батнике.

На нужно будет подставить в место кода 0x12345 значения из программы chia-plotting-gui.

Farmer Public Key (fpk) и Pool Public Key (ppk).

Они у вас появились во время авторизации кошелька на пуле.

Теперь нужно прописать конфиг для плоттинга, а именно пути к временным и постоянным файлам, количество одновременно засеиваемых плотов… в общем всё как в настройках программы для соло-майнинга Chia, только кодом.

Этот параметр отвечает за количество засеиваемых плотов одновременно. Увеличивайте значение в связи с мощностью в вашего процессора, объёма ОЗУ и размера SSD для временных файлов.

По умолчанию будут создаваться стандартные плоты, те что чуть больше 100 Гб. Если вы хотите изменить, то добавьте в конфиг через пробел -k, например 32,33,34,35 (по умолчанию 32):

Параметр -d отвечает за адрес с конечным хранилищем созданных плотов, на ваших больших HDD.

Параметр -t отвечает за адрес с временными файлами при засеивании. Указываем адрес SSD.

-plotting-cpu отвечает за количество выделенных ядер процессора на формирование плота. Указывать через запятую без пробела, начиная с нуля.

-s количество потоков (не процессора) default 65536

-b отвечает количество используемой оперативной памяти (по умолчанию 3389).

-e отключает битовое поле.

-r добавляет дополнительный каталог с временными файлами.

-u uint количество корзин (по умолчанию 128).

Для отображения прогресса при плоттинге в процентах добавьте в код параметр -p.

Сохраняем все изменения и запускаем Bat-файл. Откроется CMD окно и начнётся процесс плоттинга.

Настройка Майнера Chia Coin на пуле.

Теперь нам нужно скачать и настроить непосредственно сам майнер, который будет добывать Chia Coin на плотах, что бы сформируем для пула на своих накопителях. Переходим в Download Center на сайте пула и кликаем на CHIA-minert Download.

Опять перекинет на Github, где можно скачать последнюю актуальную версию майнера CHIA.

А архиве будут папки под разные операционные системы, мы же настраиваем под виндой, так что распаковываем её соответственно.

Запускаем файл с именем hpool-miner-chia-gui.

В последней версии майнера нужно будет добавить API Key, который находится в личном кабинете пула.

Далее нужно указать путь к к директориям, где будут находиться плоты.

Жёсткие диски и директории появятся в списке. Позже появится информация о количестве плотов, как завершится плоттинг.

Майнер начнёт автоматически добывать Chia Coin на пуле.

В старых версиях майнера, нужно было логиниться с помощью логина и пароля, которые вы указывали при регистрации на пуле.

Добавить папки с плотами.

И потом нажать на Start.

Просмотр статистики майнинга Chia Coin на пуле.

Чтобы отслеживать статистику майнинга Chia на китайском пуле Hpool, необходимо перейти в раздел Pool, пункт Open Pool, вы увидите сниппет.

Кликаем на Pool Details.

Вы увидите полную статистику по майнингу Chia Coin на пуле Hpool.

Кошелёк для вывода Chia coin с пула.

Теперь нужно добавить Кошелёк для вывода монет с пула.

Для этого переходим в раздел Security, пункт Address.

Вверху в списке выбираем монету Chia Coin, кликаем на Add Address. Вписываем адрес вашего кошелька, придумываем название, подтверждаем верификацией.

Баланс проверяется в разделе Assets.

Для вывода кликаем на Withdraw.

На бирже Yobit теперь доступна монета Chia Coin. Регистрируйтесь по ссылке, и выводите намайненные средства.

Читайте также:

Если вам понравилась статья про майнинг Chia Coin, то не поленитесь вступить в нашу группу ВК, а так же канал в Телеграме или твиттер, чтобы поддержать проект и быть в курсе последних новостей из мира майнинга и криптовалют.

Источник

Читайте также:  Как повысить эффективность инвестиций
Оцените статью