Revisión
- Estadística de MasterNode
- Descargar PirateCash core de GitHub, Preparar billetera
- Intercambio a PirateCash, transferir a su billetera, luego pagarse EXACTAMENTE 10 000 PIRATE
- Crear un droplet de Linux
- Conéctese a Droplet a través de PuTTY para Windows / Terminal para Mac
- Editar archivos de configuración del masternode
Descargar PirateCash core de GitHub, Preparar billetera
- Descomprima el archivo PirateCash Core en la ubicación que elija. Ejecutará la billetera desde esta ubicación.
- Encripta tu billetera: Configuración -> Encriptar billetera. Elije una contraseña. Escríbelo. Reinicia tu billetera.
- Billetera de respaldo: Archivo -> Billetera de respaldo
Cambiar anycoin por 10 000 PIRATE
Cambie un mínimo de 10 001 PIRATE.
Necesita una dirección con EXACTAMENTE 10000 para un Masternode.
NOTA: Estás intercambiando más porque:
- Los intercambios le cobran por los retiros
- Cuando te envías 10 000 PIRATE a ti mismo, hay una pequeña tarifa de transacción.
- Cree una dirección de recepción: Recibir -> Nueva dirección Envíe PIRATE desde el intercambio a su billetera.
- Cree una dirección adicional para su PirateCash: Recibir -> Nueva dirección, etiquetar esta dirección mn1
- Copie esta dirección, haga clic en la pestaña Enviar, pegue la dirección en la línea "Pagar a:".
- Escriba 10000 en el campo Monto :. Haga clic en enviar
Cree una gota de Linux en DigitalOcean
- Registrarse para una cuenta, cree una nueva "gota" – Digital Ocean’s término
- Seleccione Ubuntu 22.04 (LTS) x64
- Seleccione 2 GB/1vCPU – suficiente y solo $12/mes
- Seleccione la región del centro de datos que desee. Crear!
- Anote su dirección IP de gota
- Verifique su correo electrónico para obtener la contraseña raíz inicial del VPS
Acceso a tu gota
Access VPS via PuTTY – this will allow you to copy and paste commands to your VPS. The web console will not. Mac users can use Terminal. Launchpad -> Buscar -> Terminal -> Tipo: ssh root@IP
- Descarga e instala PuTTY
- La configuración predeterminada está bien. Escriba la dirección IP en el cuadro Host, escriba un nombre para su sesión y haga clic en Guardar para acceder fácilmente en el futuro. Haga clic en Abrir para conectarse.
- Inicie sesión como root. Busque el correo electrónico de DigitalOcean con la contraseña predeterminada. Copia y pega tu contraseña. Puede pegar PuTTY con un clic derecho del mouse. NOTA: cuando la pegues, tu contraseña será INVISIBLE. Simplemente presione enter.
- Al iniciar sesión por primera vez, se le pedirá que elija una nueva contraseña. Escríbelo.
Crear un archivo de intercambio:
fallocate -l 1G /swapfile chmod 600 /swapfile mkswap /swapfile swapon /swapfile echo "/swapfile none swap sw 0 0" >> /etc/fstab
Masternode configuración del archivo de configuración
- Ingrese a la consola RPC: Window -> Console
- Escribe: bls generate
-
Ir a Droplet y por favor Descargar archivo
wget https://github.com/piratecash/piratecash/releases/download/v18.2.3/piratecashcore-18.2.3-x86_64-pc-linux-gnu.tar.bz2
bzip2 -dc piratecashcore-18.2.3-x86_64-pc-linux-gnu.tar.bz2 | tar -x
- Crear directorio mkdir ~/.piratecore
-
Crea un archivo ~/.piratecore/piratecash.conf con el siguiente contenido:
rpcuser=XXXXXXXXXXXXX rpcpassword=XXXXXXXXXXXXXXXXXXXXXXXXXXXX rpcallowip=127.0.0.1 server=1 rest=1 listen=1 txindex=1 listenonion=0 daemon=1 maxconnections=700 masternodeblsprivkey=ХХХХХХХХХХХХХХХХХХХ externalip=XXX.XXX.XXX.XXX
Replace the fields marked with XXXXXXX as follows:
rpcuser: enter any string of numbers or letters, no special characters allowed
rpcpassword: enter any string of numbers or letters, no special characters allowed
externalip: this is the IP address of your VPS
Please fill masternodeblsprivkey field commented by execute command bls generate in console and restart piratecashd daemon.
- Iniciar demonio: ./piratecashd
-
Click Window -> Console to open the console. Type the following command into the console to generate a new PirateCash address for the collateral:
getnewaddress MN1
-
To send 10,000 PIRATE to this address via @piratecash_bot, you need to go to the 💵 Balance → PirateCash → 📤 Withdraw️ menu or execute the command /withdraw_pirate.
-
After the transaction is completed, various keys related to the transaction need to be extracted for later inclusion in a configuration file and registration transaction. This registration transaction serves as proof, recording the configuration on the blockchain and ensuring the masternode’s inclusion in the deterministic list. Plase execute masternode outputs
-
Prepare a ProRegTx transaction
First, we need to get a new, unused address from the wallet to serve as the owner key address (ownerKeyAddr). This is not the same as the collateral address holding 10,000 PIRATE. Generate a new address as follows:
getnewaddress owner_key
-
This address can also be used as the voting key address (votingKeyAddr). Alternatively, you can specify an address provided to you by your chosen voting delegate, or simply generate a new voting key address as follows:
getnewaddress voting_key
-
Then either generate or choose an existing address to receive the owner’s masternode payouts (payoutAddress). It is also possible to use an address external to the wallet:
getnewaddress masternode_payouts
-
You can also you need to generate and fund another address as the transaction fee source(feeSourceAddress). If you selected an external payout address, you must specify a fee source address:
getnewaddress pay_fees
-
We will now prepare an unsigned ProRegTx special transaction using the protxregister_prepare command. This command has the following syntax
protx register_prepare collateralHash collateralIndex ipAndPort ownerKeyAddr operatorPubKey votingKeyAddr operatorReward payoutAddress feeSourceAddress
Open a text editor such as notepad to prepare this command. Replace each argument to the command as follows:
collateralHash: The txid of the 10,000 PIRATE collateral funding transaction
collateralIndex: The output index of the 10,000 PIRATE funding transaction
ipAndPort: Masternode IP address and port, in the format x.x.x.x:63636
ownerKeyAddr: The new PirateCash address generated above for the owner/voting address
operatorPubKey: The BLS public key generated above (or provided by your hosting service)
votingKeyAddr: The new PirateCash address generated above, or the address of a delegate, used for proposal voting
operatorReward: The percentage of the block reward allocated to the operator as payment
payoutAddress: A new or existing PirateCash address to receive the owner’s masternode rewards
feeSourceAddress: Address used to fund ProTx fee. payoutAddress will be used if not specified.
-
Sign the ProRegTx transaction
We will now sign the content of the signMessage field using the private key for the collateral address as specified in collateralAddress. Note that no internet connection is required for this step, meaning that the wallet can remain disconnected from the internet in cold storage to sign the message. In this example we will again use PirateCash Core, but it is equally possible to use the signing function of a hardware wallet. The command takes the following syntax:
signmessage collateralAddress signMessage
-
Submit the signed message
We will now submit the ProRegTx special transaction to the blockchain to register the masternode. This command must be sent from a PirateCash Core wallet holding a balance on either the feeSourceAddress or payoutAddress, since a standard transaction fee is involved. The command takes the following syntax:
protx register_submit tx sig
tx: The serialized transaction previously returned in the tx output field from the protx register_prepare command
sig: The message signed with the collateral key from the signmessage command
-
Your masternode is now registered and will appear on the Deterministic Masternode List after the transaction is mined to a block.
PirateCash Sentinel
Sentinel is an autonomous agent for persisting, processing and automating PirateCash governance objects and tasks. It is a Python application which runs alongside the PirateCashCore instance on each PirateCash Masternode.
Dependencies
Update system package list and install dependencies:
$ sudo apt-get update $ sudo apt-get -y install git python3 virtualenv
Make sure Python version 3.6.x or above is installed:
python3 --version
Install Sentinel
Clone the Sentinel repo and install Python dependencies.
$ git clone https://github.com/piratecash/sentinel && cd sentinel $ virtualenv -p $(which python3) ./venv $ ./venv/bin/pip install -r requirements.txt
Set up Cron
Set up a crontab entry to call Sentinel every minute:
crontab -e
In the crontab editor, add the lines below, replacing '/path/to/sentinel' to the path where you cloned sentinel to:
* * * * * cd /path/to/sentinel && ./venv/bin/python bin/sentinel.py >/dev/null 2>&1