Incident from chaophaya hardfork

Troubleshoot for chaophraya hardfork (PoS)

Block propagation stopped, during Chaophraya hard fork transiting at block number 14220246. We recommend all nodes run re-init the new genesis.json file

// Stop geth service
systemctl stop geth

// Download genesis.json
sudo curl https://raw.githubusercontent.com/bitkub-blockchain/bkc-node/main/mainnet/genesis.json --create-dirs -o "/bkc-node/mainnet/genesis.json"

// Re-initial genesis.json
geth --datadir /bkc-node/mainnet/data init /bkc-node/mainnet/genesis.json

// Start geth service
systemctl start geth

Check geth log

tail -f /var/log/syslog

In case BAD BLOCK happened

// Run geth attach
geth attach /bkc-node/mainnet/data/geth.ipc

// Call debug setHead
debug.setHead(web3.toHex(14220000))

After running debug.setHead, the block will rollback block 14220000, and node will resync automatically.

Last updated