F(x) Core validator node setup on f(x)Core Testnet

can’t delegate to my validator, gives a error . delegate to another one and transaction was send but dont show on my delegations

Thank you for the generosity @zaccheah, DMed you my address.

Real $fx sent to you @wolfpack64, thanks!

2 Likes

Can’t we just upgrade? This would be good test to halt and upgrade steps

there are different types of upgrade. the one we faced was due to validator logic that required validators to do cross-chain validation too. in short, the upgrade affected our consensus mechanism so any data had to be cleaned and restarted. in the future, for such occurrences,

  1. you could do a faster sync with a snapshot sync
  2. if you sync up 20,000 blocks, your validator will not be punished

I will be adding all these FAQ and validator/slashing logic in the gitbook

1 Like

will be adding this to the gitbook too

done, just sent you, please check

Just because you can doesn’t mean you should; I will work on two independent connections as my first process;

1 Like

hi everyone here, i have updated the gitbook for a fast sync ie snapshot guide. you may use that to reduce your time to sync

and congratulations @wolfpack64 @ClaudioxBarros @FrenchXCore!

1 Like

Hi @Richard !
I’m also quite motivated to write a tuto on how to build/update a node using a RPi4-8GB.
Anyway, thanks for your help. I’ll keep you updated on how it woks out using the gzipped DB.
Regards.

3 Likes

A tutorial would be awesome @FrenchXCore

2 Likes

Im getting things together so we can make this project a reality in Australia!! Would happily contribute financially to a tutorial using a RPi4;

We have great access to them in Aus

fx core tutorial

Raspberry Pi4GB M2 SSD - Ubuntu server or RaspiOs

1 - Install Ubuntu or RaspiOs on SSD and activate SSH. If using Raspberry Pi Image use ctrl+shift+x to advanced settings.

Connect to your node via SSH

sudo apt-get update
sudo apt-get install -y make gcc

2 - Install GO

sudo wget https://dl.google.com/go/go1.17.2.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go1.17.2.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin
source ~/.bashrc

Verify install:

go version

mkdir -p $HOME/go/bin
echo “export PATH=$PATH:/usr/local/go/bin” >> ~/.bash_profile
echo “export PATH=$PATH:$(go env GOPATH)/bin” >> ~/.bash_profile
source ~/.bash_profile

3 - Install Git

sudo apt install git -y

Verify install :

git --version

4 - Install Binaries

git clone -b testnet GitHub - FunctionX/fx-core
cd fx-core
make go.sum
make install

Verify install:

fxcored version --long

5 - Install FxCore

fxcored init fx-zakir
wget https://raw.githubusercontent.com/functionx/fx-core/testnet/public/genesis.json -O ~/.fxcore/config/genesis.json &&
wget https://raw.githubusercontent.com/functionx/fx-core/testnet/public/config.toml -O ~/.fxcore/config/config.toml &&
wget https://raw.githubusercontent.com/functionx/fx-core/testnet/public/app.toml -O ~/.fxcore/config/app.toml

6 - Install Snapshot

wget -c https://fx-testnet.s3.amazonaws.com/fxcore-snapshot-2021-10-18.tar.gz
tar -xzvf fxcore-snapshot-2021-10-18.tar.gz -C ~/.fxcore/data/

7 -Start Node

nohup fxcored start 2>&1 > fxcore.log & fxcored start -h

8 - Wait for node to fully sync

Verify State

curl localhost:26657/status

“catching_up” as to be false = “catching_up”:false

9 - Create Your Validator (Without Ledger)

fxcored keys add ClaudioxBarrosSnap

Make a copy of the output. Backup your adress and Private keys.

Output Example:

name: ClaudioxBarrosSnap
type: local
address: fx1wtjku3dat06aj9td7r699x3dgz9xy34naq90qf
pubkey: fxpub1addwnpepqg8wkx2ank6faaztle3ksl39ge2am44fnue9zz5kmfqe3gv0d7vs6v9ykuj
mnemonic: “”
threshold: 0
pubkeys: []

Important write this mnemonic phrase in a safe place.
It is the only way to recover your account if you ever forget your password.

xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx

10 - Get Fxwallet Testnet and FXtestcoin

Download and install FXWallet testnet - https://download.functionx.io/

Create a wallet and get some fxtestcoins

11 - Get some fxtestcoin - https://aabbcc-faucet.functionx.io/

Need 100Fx Minimum

12 - Edit Validator using a text editor (ex:NotePad++)

fxcored tx staking create-validator
–chain-id=fxcore
–gas=“auto”
–gas-adjustment=1.2
–gas-prices=“6000000000000FX”
–from=ClaudioxBarrosSnap
–amount=1000000000000000000000FX
–pubkey=$(fxcored tendermint show-validator)
–moniker=“ClaudioxBarrosS”
–commission-rate=“0.02”
–commission-max-rate=“0.20”
–commission-max-change-rate=“0.01”
–min-self-delegation=“1000000000000000000”
–moniker=“ClaudioxBarrosS”
–website=“https://twitter.com/ClaudioxBarros
–details=“#PundiX4Good #GrowingStrong

After edit, copy and paste and confirme the transaction with y

Check if is running:

ps -ef | grep fxcored

4 Likes

This is what i did. for pc or vps is the same except the Go Link

still looks like Spanish to me; when Codeless nodes

1 Like

Spanish is easy to understand :laughing: :joy:

2 Likes

Wanted to be a validator but after seeing this as a non tech person, I think I will stick to being a delegator :rofl: too complicated

Is not that hard :joy: .anyway you can be a validator using function x cloud servers. just a fue clicks and is up and running

Excellent summary.
I’ll try to make an in-depth step by step tut’ for non-tech…

Is your validator setup without any connection to fx cloud? Means no cloud fees etc. Running entirely on your desktop? @ClaudioxBarros