f(x)Core Mainnet Validator Updates

Hello validators,

The fxCore testnet version is released, the branch is: release/v4.0.x, and the tag is: v4.0.0-rc1

Releases · FunctionX/fx-core

fx-core/CHANGELOG.md at v4.0.0-rc1 · FunctionX/fx-core

The upgrade height is: 8088000, it is expected to be 2-3pm SGT tomorrow

If you use the cosmovisor for the upgrade, you can start installing and deploying today

Regards,
Lance

Edit:
About 22hours+ to go countdown link

5 Likes

Hey everyone!

The testnet upgrade height is almost here - we’re only about 3k blocks away from hitting 8088000. That means in just 4 hours and 47 minutes approximately.

https://functionx.github.io/fx-core/tools/countdown.html?network=testnet

So, I hope everyone has taken the time to practice and test their systems on the testnet pre-upgrade, to ensure a smooth transition when the mainnet upgrade arrives.

Regards,
Lance

2 Likes

Hi @lancelai !

2 things which prevented my testnet validator from restarting properly and immediately :
1) double_sign_check_height:
In my '‘config.toml’ file, the environment variable ‘double_sign_check_height’ was set to 10.
Not a big deal, but setting it to 0 made it transition smoothly later on (even though it’s not very safe from my point of view).

2) My SSL/TLS configuration:
My testnet validator also runs a HTTPS RPC interface, that’s why I configured an SSL certificate on it (tls environment variables in config.toml file).
However, on v4 restart, it served me the following errors:

Apr 26 08:30:54 *** cosmovisor[***]: 08:30:54AM ERR Error serving server with TLS err="accept tcp [::]:26657: use of closed network connection" module=node
Apr 26 08:30:54 *** cosmovisor[***]: 08:30:54AM ERR RPC HTTPS server stopped err="accept tcp [::]:26657: use of closed network connection" module=rpc-server
Apr 26 08:30:54 *** cosmovisor[***]: 08:30:54AM ERR Stopped accept routine, as transport is closed module=p2p numPeers=0
Apr 26 08:30:54 *** cosmovisor[***]: 08:30:54AM ERR Error stopping consensus state err="not started" module=consensus

I feel like I have a misconfiguration or that I need to disable HTTPS (it works when I do so).
What do you think ?

Regards,
@FrenchXCore

hello, for 1 they just added a new commit yesterday to fix the double sign check height
And this is the latest documentation to upgrade: Cosmovisor Integration - Binaries - Function X Docs

for 2, with v4 could you run fxcored doctor and post the output here to troubleshoot the working environment?

did the HTTPS RPC previously working fine and caused error after this upgrade or it is a new setup?

Thanks, didn’t notice yesterday’s latest commit…

The HTTPS configuration did work fine before.
Here is what the doctor commands return in HTTP (-working) and in HTTPS (-notworking) configurations. Not sure that’ll help…

And if I may, you should also include disks/partitions space left in your next doctor command upgrade.

Thanks !

WORKING:

Computer Info:
	OS/Arch: linux/amd64
	CPU:  6
	Memory Total: 16008 MB, Available: 14542 MB, UsedPercent: 7.299702%
fxcored Info:
	Version:  release/v4.0.x-1f04e7a8089ddabc3808d08ec3aa451969d0d2f0
	Git Commit:  1f04e7a8089ddabc3808d08ec3aa451969d0d2f0
	Build Tags:  netgo,ledger
	Go Version:  go1.19.5
	Cosmos SDK Version:  v0.46.12
Genesis:
	File:  /root/.fxcore/config/genesis.json
	Network: Testnet
Upgrade Info:
	File:  /root/.fxcore/data/upgrade-info.json
	Name:  fxv4
	Height:  8088000
Blockchain Data:
	Remote Node:  or tcp://localhost:26657
	Chain ID:  dhobyghaut
	Block Height: 8089299
	Syncing:  false
	Node Info: 
		Version:  release/v4.0.x-1f04e7a8089ddabc3808d08ec3aa451969d0d2f0
		Git Commit:  1f04e7a8089ddabc3808d08ec3aa451969d0d2f0
		Build Tags:  netgo,ledger
		Go Version:  go version go1.19.5 linux/amd64
		Cosmos SDK Version:  v0.46.12
	Warning: The remote node chainId(dhobyghaut) does not match the local genesis chainId(06D0A9659E1EC5B0E57E8E2E5F1B1266094808BC9B4081E1A55011FEF4586ACE)
App Config:
	File:  /root/.fxcore/config/app.toml
Tendermint Config: 
	File: /root/.fxcore/config/config.toml
Cosmovisor:
	Path: /root/.fxcore/cosmovisor
	Current: /root/.fxcore/cosmovisor/current
		fxcored version: release/v4.0.x-1f04e7a8089ddabc3808d08ec3aa451969d0d2f0
	Genesis: /root/.fxcore/cosmovisor/genesis
		fxcored version: release/v3.1.x-49d991f692d6662660c2c2dd9e009238f595c438
	Upgrades: /root/.fxcore/cosmovisor/upgrades
		Version fxv3: /root/.fxcore/cosmovisor/upgrades/fxv3
			fxcored version: release/v3.1.x-49d991f692d6662660c2c2dd9e009238f595c438
			upgrade-info.json: /root/.fxcore/cosmovisor/upgrades/fxv3/upgrade-info.json
			upgrade-info.json content: {"name":"fxv3","time":"0001-01-01T00:00:00Z","height":6578000,"info":"{\"binaries\":{\"darwin/arm64\":\"https://github.com/functionX/fx-core/releases/download/v3.0.0/fx-core_3.0.0_Darwin_arm64.tar.gz\",\"darwin/amd64\":\"https://github.com/functionX/fx-core/releases/download/v3.0.0/fx-core_3.0.0_Darwin_amd64.tar.gz\",\"linux/arm64\":\"https://github.com/functionX/fx-core/releases/download/v3.0.0/fx-core_3.0.0_Linux_arm64.tar.gz\",\"linux/amd64\":\"https://github.com/functionX/fx-core/releases/download/v3.0.0/fx-core_3.0.0_Linux_amd64.tar.gz\",\"windows/x86_64\":\"https://github.com/functionX/fx-core/releases/download/v3.0.0/fx-core_3.0.0_Windows_x86_64.zip\"}}"}
		Version fxv4: /root/.fxcore/cosmovisor/upgrades/fxv4
			fxcored version: release/v4.0.x-1f04e7a8089ddabc3808d08ec3aa451969d0d2f0
			upgrade-info.json: /root/.fxcore/cosmovisor/upgrades/fxv4/upgrade-info.json
			upgrade-info.json content: {"name":"fxv4","time":"0001-01-01T00:00:00Z","height":8088000,"info":"{\"binaries\":{\"darwin/arm64\":\"https://github.com/functionX/fx-core/releases/download/v4.0.0-rc/fx-core_4.0.0-rc_Darwin_arm64.tar.gz\",\"darwin/amd64\":\"https://github.com/functionX/fx-core/releases/download/v4.0.0-rc/fx-core_4.0.0-rc_Darwin_amd64.tar.gz\",\"linux/arm64\":\"https://github.com/functionX/fx-core/releases/download/v4.0.0-rc/fx-core_4.0.0-rc_Linux_arm64.tar.gz\",\"linux/amd64\":\"https://github.com/functionX/fx-core/releases/download/v4.0.0-rc/fx-core_4.0.0-rc_Linux_amd64.tar.gz\",\"windows/x86_64\":\"https://github.com/functionX/fx-core/releases/download/v4.0.0-rc/fx-core_4.0.0-rc_Windows_x86_64.zip\"}}"}
	Current plan: fxv4
	List Path:
		/root/.fxcore/cosmovisor
		├── current -> /root/.fxcore/cosmovisor/upgrades/fxv4
		├── genesis
		│   └── bin
		│       └── fxcored
		└── upgrades
		    ├── fxv3
		    │   ├── bin
		    │   │   └── fxcored
		    │   └── upgrade-info.json
		    └── fxv4
		        ├── bin
		        │   ├── frenchxcore-testnet-doctor-working.txt
		        │   └── fxcored
		        └── upgrade-info.json

NOT WORKING:

Computer Info:
	OS/Arch: linux/amd64
	CPU:  6
	Memory Total: 16008 MB, Available: 14894 MB, UsedPercent: 5.014661%
fxcored Info:
	Version:  release/v4.0.x-1f04e7a8089ddabc3808d08ec3aa451969d0d2f0
	Git Commit:  1f04e7a8089ddabc3808d08ec3aa451969d0d2f0
	Build Tags:  netgo,ledger
	Go Version:  go1.19.5
	Cosmos SDK Version:  v0.46.12
Genesis:
	File:  /root/.fxcore/config/genesis.json
	Network: Testnet
Upgrade Info:
	File:  /root/.fxcore/data/upgrade-info.json
	Name:  fxv4
	Height:  8088000
Blockchain Data:
	Data Dir: /root/.fxcore/data
	Chain ID:  dhobyghaut
	Block Height: 8089342
	Syncing:  true
	Node Type: This node is a validator
	Node Info: 
		Version:  HEAD-5eef07630e89ad0bd786fb08fa0fb937e5c84d67
	Warning: The remote node chainId(dhobyghaut) does not match the local genesis chainId(06D0A9659E1EC5B0E57E8E2E5F1B1266094808BC9B4081E1A55011FEF4586ACE)
App Config:
	File:  /root/.fxcore/config/app.toml
Tendermint Config: 
	File: /root/.fxcore/config/config.toml
Cosmovisor:
	Path: /root/.fxcore/cosmovisor
	Current: /root/.fxcore/cosmovisor/current
		fxcored version: release/v4.0.x-1f04e7a8089ddabc3808d08ec3aa451969d0d2f0
	Genesis: /root/.fxcore/cosmovisor/genesis
		fxcored version: release/v3.1.x-49d991f692d6662660c2c2dd9e009238f595c438
	Upgrades: /root/.fxcore/cosmovisor/upgrades
		Version fxv3: /root/.fxcore/cosmovisor/upgrades/fxv3
			fxcored version: release/v3.1.x-49d991f692d6662660c2c2dd9e009238f595c438
			upgrade-info.json: /root/.fxcore/cosmovisor/upgrades/fxv3/upgrade-info.json
			upgrade-info.json content: {"name":"fxv3","time":"0001-01-01T00:00:00Z","height":6578000,"info":"{\"binaries\":{\"darwin/arm64\":\"https://github.com/functionX/fx-core/releases/download/v3.0.0/fx-core_3.0.0_Darwin_arm64.tar.gz\",\"darwin/amd64\":\"https://github.com/functionX/fx-core/releases/download/v3.0.0/fx-core_3.0.0_Darwin_amd64.tar.gz\",\"linux/arm64\":\"https://github.com/functionX/fx-core/releases/download/v3.0.0/fx-core_3.0.0_Linux_arm64.tar.gz\",\"linux/amd64\":\"https://github.com/functionX/fx-core/releases/download/v3.0.0/fx-core_3.0.0_Linux_amd64.tar.gz\",\"windows/x86_64\":\"https://github.com/functionX/fx-core/releases/download/v3.0.0/fx-core_3.0.0_Windows_x86_64.zip\"}}"}
		Version fxv4: /root/.fxcore/cosmovisor/upgrades/fxv4
			fxcored version: release/v4.0.x-1f04e7a8089ddabc3808d08ec3aa451969d0d2f0
			upgrade-info.json: /root/.fxcore/cosmovisor/upgrades/fxv4/upgrade-info.json
			upgrade-info.json content: {"name":"fxv4","time":"0001-01-01T00:00:00Z","height":8088000,"info":"{\"binaries\":{\"darwin/arm64\":\"https://github.com/functionX/fx-core/releases/download/v4.0.0-rc/fx-core_4.0.0-rc_Darwin_arm64.tar.gz\",\"darwin/amd64\":\"https://github.com/functionX/fx-core/releases/download/v4.0.0-rc/fx-core_4.0.0-rc_Darwin_amd64.tar.gz\",\"linux/arm64\":\"https://github.com/functionX/fx-core/releases/download/v4.0.0-rc/fx-core_4.0.0-rc_Linux_arm64.tar.gz\",\"linux/amd64\":\"https://github.com/functionX/fx-core/releases/download/v4.0.0-rc/fx-core_4.0.0-rc_Linux_amd64.tar.gz\",\"windows/x86_64\":\"https://github.com/functionX/fx-core/releases/download/v4.0.0-rc/fx-core_4.0.0-rc_Windows_x86_64.zip\"}}"}
	Current plan: fxv4
	List Path:
		/root/.fxcore/cosmovisor
		├── current -> /root/.fxcore/cosmovisor/upgrades/fxv4
		├── genesis
		│   └── bin
		│       └── fxcored
		└── upgrades
		    ├── fxv3
		    │   ├── bin
		    │   │   └── fxcored
		    │   └── upgrade-info.json
		    └── fxv4
		        ├── bin
		        │   ├── frenchxcore-testnet-doctor-working.txt
		        │   └── fxcored
		        └── upgrade-info.json

but you are able to start the node and sync right?
so the issue is just on https?
otherwise, we need more logs

As soon as I switch to HTTP, it’s working fine…
But if I switch back the following parameters for HTTPS, fxcored wouldn’t sync anymore (with the previously given error messages) :

  1. config.toml
tls_cert_file = "/etc/letsencrypt/live/xxx.xxx.com/fullchain.pem"
tls_key_file = "/etc/letsencrypt/live/xxx.xx.com/privkey.pem"
  1. client.toml
node = "https://xxx.xxx.com:26657"

(this above used to work fine and my SSL cert is up-to-date)

The following is working right now:

  1. config.toml
#tls_cert_file = "/etc/letsencrypt/live/xxx.xxx.com/fullchain.pem"
#tls_key_file = "/etc/letsencrypt/live/xxx.xx.com/privkey.pem"
  1. client.toml
node = "http://127.0.0.1:26657"

Issues has been fixed and committed to the release/v4.0.x branch:​ Commits · FunctionX/fx-core · GitHub

Since you has already configured cosmovisor, so just start from step 2 again

The fxcored doctor command has added to display disk space

Thanks a lot @lancelai !
I’m on it.
Will keep you apprised !

Regards
@FrenchXCore

1 Like

Alright, got it working now !

I’m assuming there was some additional checks in Cosmos latest version, and I did have to tweak my config parameters for SSL to work with my LetsEncrypt certificate.

Here’s what needs to be configured to make it work - maybe you could add some chapter to the Gitbook:

1) File “.fxcore/config/config.toml” - [rpc] section
laddr = "tcp://*domain.name*:26657"
tls_cert_file = "/*path*/*to*/*your*/fullchain.pem"
tls_key_file = "/*path*/*to*/*your*/privkey.pem"

2) File “.fxcore/config/app.toml” - [json-rpc] section
address = "*domain.name*:8545"
ws-address = "*domain.name*:8546"

3) File “.fxcore/config/app.toml” - [tls] section
certificate-path = "/*path*/*to*/*your*/fullchain.pem"
key-path = "/*path*/*to*/*your*/privkey.pem"

4) File “.fxcore/config/client.toml”
node = "https://*domain.name*:26657"

And thanks for the disk availability add-on !

Regards,
@FrenchXCore

2 Likes

Dear validators!

We found a bug on testnet, so it needs to be upgraded again.

We will send another testnet upgrade proposal today.

The upgrade height is expected to be on next Monday afternoon SGT.

So the mainnet will be delayed, and the mainnet upgrade proposal is expected to be next week.

Regards,
Lance

7 Likes

Got it… Ready !
FrenchXCore testnet validator ready to roll with release/v4.1.x-b1a04da361e67d436fd548758facc6580fa9a907 !

2 Likes

Validator “FX FriendsX” ready too!):jigsaw::earth_africa::white_check_mark:

1 Like

Will f(x)Core adopt the new Tendermint Core fork?

  • CometBFT v0.34 that will replace Tendermint Core v0.34

CosmosSDK is preparing new versions for the 0.45/0.46/0.47 lines where CometBFT v0.34 will replace tendermint v0.34.

2 Likes

FXCore testnet v4.10 is released:

Release: Release v4.1.0-rc0 · FunctionX/fx-core · GitHub
Upgrade documentation: Cosmovisor Integration - Binaries - Function X Docs
Upgrade proposal: Function X StarScan

1 Like

About 7hours+ more reaching the testnet upgrade height !

https://functionx.github.io/fx-core/tools/countdown.html?network=testnet

1 Like

Seems yes.

1 Like

Looks like the testnet upgrade went smooth…

May 15 10:46:46 *** cosmovisor[2683244]: 10:46:46AM ERR CONSENSUS FAILURE!!! err="UPGRADE \"v4.1.x\" NEEDED at height: 8376000: {\"binaries\":{\"darwin/arm64\":\"https://github.com/functionX/fx-core/releases/down>
May 15 10:46:46 *** cosmovisor[2683244]: 10:46:46AM ERR UPGRADE "v4.1.x" NEEDED at height: 8376000: {"binaries":{"darwin/arm64":"https://github.com/functionX/fx-core/releases/download/v4.1.0-rc0/fx-core_Darwin_ar>
May 15 10:48:32 *** cosmovisor[2799381]: 10:48:32AM INF indexed block exents height=8376001 module=txindex
May 15 10:48:32 *** cosmovisor[2799381]: 10:48:32AM INF committed state app_hash=3005BDF0BEDA3EEC7804E554C8DB9D8FD2646D0BF9D59EE2B14507BF54043F9A height=8376001 module=state num_txs=0

Good job !!! It keeps running !

4 Likes

https://twitter.com/StarScan_io/status/1659537704508444672?t=h6CeUPRtYXCuronNTTjD3w&s=19

#FXCORE Mainnet Upgrade v4.2.x governance proposal #36 is now live :fire:

Features include:
:white_check_mark:Supports #optimism and #arbitrum cross-chain protocol integration
:white_check_mark:Supports adding multiple cross-chain tokens through a single proposal
:white_check_mark:and more!

Cast your vote :point_down:
https://starscan.io/fxcore/proposals/36

7 Likes

ATTENTION!

Hey Validators,

After the fxcore v4.2.x upgrade proposal is passed, we will post the v4.2.0 release on github:
Releases · FunctionX/fx-core · GitHub.

This will include 2 bug fixes:

  1. Fix the failure of staking to receive the reward due to not recording the punishment event when the validator is punished. This fix will cause state-machine breaking, so all validators must use the official version of v4.2.0, not the v4.2.0-rc pre-release version.

  2. Fix IBC IBC Security Advisory Huckleberry - Security - Cosmos Hub Forum

If you have previously deployed binaries using v4.2.0-rc, you NEED to update the binaries again.

Thanks!

3 Likes