全球最大交易所币安,
国区邀请链接:https://accounts.suitechsui.us/zh-CN/register?ref=16003031 支持86手机号码,网页直接注册。
全球最大交易所币安,国区邀请链接:https://accounts.binance.com/zh-CN/register?ref=16003031 币安一向重视合规,早在2017年就已经退出中国大陆市场,注册不了请用香港IP地址,居住地选中国,认证照旧,邮箱推荐如gmail、outlook。,认证照旧。,居住地选中国,认证照旧。,认证照旧。
目前不清退的交易所推荐:
1、全球第二大交易所OKX欧意,邀请链接: https://www.trjorcyvqk.com/zh-hans/join/1837888 注册简单,交易不需要实名,新用户能开合约,币种多,交易量大!。
2、老牌交易所比特儿现改名叫芝麻开门 :https://www.gate.ac/signup/XgRDAQ8?ref_type=103 注册简单,交易不需要实名,新用户能开合约,币种多,交易量大!。
【Chia在哪交易?】XCH如何交易,操作教程!
#performance tweaks
$initial_delay = 0
$delay_increment = 2400
$plots_to_run = 1
$ram_buffer_size = 8192
$cores_to_use = 3
#folders
$chia_version = "1.1.1"
$home_folder = "C:\Users\user_name"
$temp_drive_location = "h:\"
$final_drive_location = "f:\"
$chia_executable_location = "$home_folder\AppData\Local\chia-blockchain\app-$chia_version\resources\app.asar.unpacked\daemon"
$current_loop = 1
DO
{
"Starting plot $current_loop"
$wait_argument = $initial_delay + $delay_increment * ($current_loop - 1)
"Now current_loop is $current_loop and wait_argument is $wait_argument"
cd $chia_executable_location
$current_plotting_command = "start-process ./chia.exe plots create -k 32 -r $cores_to_use -b $ram_buffer_size -n 100 -t $temp_drive_location -d $final_drive_location"
$current_log = "$(get-date -f yyyy-MM-dd-hh-mm-ss)_log.txt"
Invoke-Expression $current_plotting_command *> $home_folder/.chia/mainnet/plotter/$current_log
"executing: $current_plotting_command logging to $current_log"
timeout /t $wait_argument;
$current_loop ++
} While ($current_loop -le $plots_to_run -1)
# this script runs a string of plots -- one immideately, and then one every $delay_increment seconds
# when done it sends you an sms (you need a Twilio account for that)
####################################################################################################
# Config -- make sure you change this to your specifics.
####################################################################################################
# since location of chia executable changes with every release you need to update
# $chia_version every time!
####################################################################################################
#how many plots?
$plots_to_run = 12
#delay (first plot will fire off in 1 second, the rest will fire $delay_increment seconds after each other
$initial_delay = 1
$delay_increment = 2400 #40 minutes
#ram and cores
$ram_buffer_size = 4000
$cores_to_use = 3
#location of the executable (you only need to change the version and your home folder -- in Windows it depends on your username)
$chia_version = "1.1.2"
$home_folder = "C:\Users\your_user_name"
$chia_executable_location = "$home_folder\AppData\Local\chia-blockchain\app-$chia_version\resources\app.asar.unpacked\daemon"
# temp drive and final drive
# todo: add support for multiple drives
$temp_drive_location = "h:\"
$final_drive_location = "g:\"
# End config
# If you are not gonna rip out sms functionality, there's also hardcoded config for Twilio below
####################################################################################################
# pretty countdown timer.
Function Sleep-Progress($seconds_to_sleep, $message){
for ($i=5; $i -gt 1; $i–-) {
Write-Progress -Activity $message -SecondsRemaining $i
Start-Sleep 1
}
}
#you need a twilio.com account for this to work
#send sms message with Twilio -- config hardcoded inside
Function Send-SMS($message){
if($send_sms){
# Twilio sms config
$send_sms = 1
$sid = 'your_sid'
$token = 'your_token'
$number = 'your_twilio_number'
# Twilio API endpoint and POST params
$url = "https://api.twilio.com/2010-04-01/Accounts/$sid/Messages.json"
$params = @{ To = "+phone_number_you_are_messaging"; From = $number; Body = $message }
# Create a credential object for HTTP basic auth
$p = $token | ConvertTo-SecureString -asPlainText -Force
$credential = New-Object System.Management.Automation.PSCredential($sid, $p)
# Make API request, selecting JSON properties from response
Invoke-WebRequest $url -Method Post -Credential $credential -Body $params -UseBasicParsing |
ConvertFrom-Json | Select sid, body
}
}
#this is the main loop
$current_loop = 1
DO
{
"Starting plot $current_loop"
if(1 -eq $current_loop){
$wait_argument = $initial_delay
}
else{
$wait_argument = $delay_increment * ($current_loop - 1)
}
"Now current_loop is $current_loop and wait_argument is $wait_argument"
cd $chia_executable_location
$current_plotting_command = "$chia_executable_location/chia.exe plots create -k 32 -r $cores_to_use -b $ram_buffer_size -n 1 -t $temp_drive_location -d $final_drive_location"
$current_log = "$(get-date -f yyyyMMdTHHmmssffffZ)_log.txt"
Invoke-Expression -Command $current_plotting_command *> $home_folder/.chia/mainnet/plotter/$current_log
"executing: $current_plotting_command logging to $current_log"
$sleep_message = "Getting ready to launch $current_loop of $plots_to_run. Sleeping for $wait_argument seconds"
Sleep-Progress $wait_argument $sleep_message
"sleep over, waking up, next iteration"
$current_loop ++
} While ($current_loop -le $plots_to_run)
"done with looping"
Send-SMS "done with looping"
推荐:全球第二大交易所OKX欧意,邀请链接: https://www.trjorcyvqk.com/zh-hans/join/1837888 注册简单,交易不需要实名,新用户能开合约,币种多,交易量大!。
目前不清退的交易所推荐:
1、全球第二大交易所OKX欧意,邀请链接: https://www.trjorcyvqk.com/zh-hans/join/1837888 注册简单,交易不需要实名,新用户能开合约,币种多,交易量大!。
2、老牌交易所比特儿现改名叫芝麻开门 :https://www.gate.ac/signup/XgRDAQ8?ref_type=103 注册简单,交易不需要实名,新用户能开合约,币种多,交易量大!。
全球最大交易所币安,国区邀请链接:https://accounts.binance.com/zh-CN/register?ref=16003031 币安一向重视合规,早在2017年就已经退出中国大陆市场,注册不了请用香港IP地址,居住地选中国,认证照旧,邮箱推荐如gmail、outlook。,认证照旧。,居住地选中国,认证照旧。,认证照旧。
火必所有用户现在可用了,但是要重新注册账号火币:https://www.huobi.com
全球最大交易所币安,
国区邀请链接:https://accounts.suitechsui.us/zh-CN/register?ref=16003031 支持86手机号码,网页直接注册。
未经允许不得转载:Chia之家 » Chia Powershell绘图脚本,Chia Powershell P盘脚本