Author Topic: การสร้าง zcoin znode เพื่อรันระบบ  (Read 5276 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
การสร้าง zcoin znode เพื่อรันระบบ
« on: กุมภาพันธ์ 09, 2018, 09:44:29 PM »
วันนี้มีโจทย์การทำ zcoin znode ครับไม่น่ายาก Packetlove รับทำ zcoin znode running

https://zcoin.io/zcoin-znode-setup-guide/

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Re: การสร้าง zcoin znode เพื่อรันระบบ
« Reply #1 on: มกราคม 16, 2020, 11:40:21 PM »
==znode zcoin เวลา harddisk เต็มแล้วเปิดโปรแกรม znode มีปัญหาเจอ error
Failed to load znode cache from zncache.dat

=>Fixed, had to move away the zncache.dat file elsewhere then reload the wallet.
แก้ไขโดยการ move file zncache.dat ออกมาจาก folder
C:/Users/Admin/AppData/Roaming/Zcoin/zncache.dat

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Re: การสร้าง zcoin znode เพื่อรันระบบ
« Reply #2 on: มิถุนายน 27, 2020, 01:25:35 PM »
ทำการอัฟเกรด จาก zcoin 0.13 -> 0.14


1.ทำการ download ตาม os ที่ใช้งาน
https://github.com/zcoinofficial/zcoin/releases/tag/v0.14.0.1

2.แล้วทำการ backup wallet ก่อนจาก console version 0.13
File -> Backup Wallet

3. ปิดโปรแกรม zcoin console version 0.13

4. ทำการติดตั้ง zcoin console version 0.14

5. ทำการเปิดโปรแกรม zcoin version 0.14

6. ทำการ configure ตามลิ้ง
https://github.com/zcoinofficial/zcoin/wiki/Migrating-your-Legacy-Znodes-to-the-new-Deterministic-Znodes-system

Preparing for migration
Legacy Znodes can be registered as Deterministic Znodes with this command:

protx register collateralHash collateralIndex ipAndPort ownerAddress operatorPubKey votingAddress operatorReward payoutAddress feeSourceAddress

An example of how this would look like is as follows:

protx register 4950f88867b69760d3cd7c1f53531340f6723eb8f7d7f00730abfa12c5fe10e0 0 207.148.122.12:8168 TRVDAxJwaZYFfmti4aTeKCByz1jbMq8Jy4 995b3e1e2a65ce960a8cc7d305c5914b7f60e888c338c1f3317efbdcac58e82ecc110315ce03f49d9d387ff35c2796ad "" 0 TEZ8M8Fgp8h4HvUjXtjz3krYraRtySiXdw

This looks extremely complicated but don't worry! The guide will explain each field below.

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Re: การสร้าง zcoin znode เพื่อรันระบบ
« Reply #3 on: สิงหาคม 25, 2020, 11:03:56 PM »
=== เจอปัญหา Posed_BANNED บน zcoin wallet (window)
เนื่องจากว่า upgrade Zcoin wallet แต่ลืมทำการ upgrade binary บน VPS server
ซึ่งทำให้โดน banned ไปเลย และหนักกว่านั้น ใน version 0.14.0.1 เป็นต้นมา ต้องใส่ค่า znodeblsprivkey ลงไปใน zcoin.conf ด้วย
แต่ว่าดันไม่ได้เซฟไว้ ค่า OperatorKey ไว้ งานเข้าเลย และ VPS server ยังคงเป็น binary version 0.13.0
ซึ่งสามารถที่จะ protx register ได้ แต่ใช้ไปสักพัก ก็จะให้โดน posed_banned ครับ

เพราะถ้าเจอปัญหา POSED_BANNED ถ้าเรามีค่า OperatorKey (znodeblsprivkey)  ก็สามารถรัน
protx update_service proTxHash ipAndPort operatorKey (operatorPayoutAddress feeSourceAddress)
ได้เลยแล้วรอ confirm address ขึ้นแค่ 1 ก็จะทำให้ ค่าที่เป็น posed_banned หายไป แล้วค่อยมานับเริ่มใหม่ เพื่อรอรับ zcoin reward

ดังนั้นเราต้องทำการรัน "bls generate" บน wallet console ใหม่ แล้วทำการ update_registrar ใหม่อีกที ซึ่งมี syntax ดังนี้ (operatorPubKey)=> ใช้ตัวใหม่ที่เจน bls generate ได้แล้วทำการเซฟไว้ด้วยนะครัห้ามลืม หลังจากนั้นทำการเพิ่ม configure "znodeblsprivkey" ใน zcoin.conf ด้วยแล้ว start process ใหม่
หลังจากนั้นทำการ update_registrar ตามด้านล่าง
#protx update_registrar protxhash operatorPubKey "" payoutAddress feeSourceAddress

หลังจากรัน update_registrar แล้วทำการรอ confirmed
หลังจากนั้นก็ให้รัน update_service อีกรอบ โดยใส่ ค่า operatorKey ชุดใหม่
protx update_service proTxHash ipAndPort operatorKey (operatorPayoutAddress feeSourceAddress)

เท่านี้ Znode เราก็จะกลับมา mined mint ต่อได้แล้วครับผม   8)

===Special Thank : Zcoin Support in Discord.
johnsmith [will not PM you]
CardcaptorZakura#9636

===site reference
https://github.com/zcoinofficial/zcoin/wiki/Deterministic-Znodes-Operator-Guide
https://github.com/zcoinofficial/zcoin/wiki/Migrating-your-Legacy-Znodes-to-the-new-Deterministic-Znodes-system

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Re: การสร้าง zcoin znode เพื่อรันระบบ
« Reply #4 on: มกราคม 14, 2021, 01:18:26 PM »
ในกรณี ที่รัน update

===generate new "feeSourceAddress" by run below command on debug console in "Znode"
listaddressbalances 0.01

and get line3 value to input as "feeSourceAddress"
then running
=> protx update_service xxx again.

 8)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Re: การสร้าง zcoin znode เพื่อรันระบบ
« Reply #5 on: มกราคม 14, 2021, 01:54:55 PM »
อัฟเดทเป็น firo-0.14.2.3 ทั้งบน window
https://firo.org/get-firo/download/
https://github.com/firoorg/firo/releases/download/v0.14.2.3/firo-0.14.2.3-win64-setup.exe


และทำการอัฟเกรดใน ubuntu box ของท่านด้วย
wget https://github.com/firoorg/firo/releases/download/v0.14.2.3/firo-0.14.2.3-linux64.tar.gz
./firod -daemon

==more information on
https://firo.org/guide/masternode-upgrade.html
« Last Edit: มกราคม 14, 2021, 09:02:13 PM by golfreeze »