Edward Morra
Aug 1, 2018 · 2 min read

Yesterday (July 31st) at around 7pm CEST, many nodes on the Crown network crashed.
The crash was caused by a bug (see below for detailed information regarding the bug).
After investigating, we implemented a hotfix and uploaded a new version: v0.12.5.1.

This is a high priority update!
To avoid your wallet crashing, we recommend all Crown community members update their wallet and nodes as soon as possible.

Find the latest version at https://crown.tech/wallet/ OR https://github.com/Crowndev/crown-core/releases/tag/v0.12.5.1

How to upgrade

Local wallets will be prompted to update automatically. Simply open your wallet, select your operating system and select download. Make sure to back-up your wallet.dat first!
The wallet download will include a bin and a lib folder. With the Crown wallet shut down, replace the old bin and lib folders with the ones you just downloaded. That’s all!

If you run a Masternode or a Systemnode, you will need to update those as well. Simply copy-and-paste the provided script into the terminal of your VPS and you’re done!

sudo apt-get install curl -y && curl -s https://raw.githubusercontent.com/Crowndev/crown-core/master/scripts/crown-server-install.sh | bash -s

After updating, make sure to check the status of your incentivized nodes by typing crown-cli masternode status or crown-cli systemnode status into the terminal of your VPS.

Thank you,

The Crown Development Team

* The crash was caused by a bug in ‘ Masternode::CalculateScore’ method for a masternode that just received the necessary number of confirmations (15) to be considered a valid node. The bug was caused by access to a non-existing block in the chain (next block to be created). We believe this bug also exists in the upstream repository.

arith_uint256 CMasternode::CalculateScore(int64_t nBlockHeight)

{

// Find the block hash where tx got MASTERNODE_MIN_CONFIRMATIONS

CBlockIndex *pblockIndex = chainActive[GetInputHeight(vin) + MASTERNODE_MIN_CONFIRMATIONS — 1]; // ← Crash is here


}

Crown Platform

Crown is a digital token and blockchain platform enabling independence serving individuals & businesses. We are focused on legal compliance and transparency utilizing our decentralized governance model.

Edward Morra

Written by

Crown Platform

Crown is a digital token and blockchain platform enabling independence serving individuals & businesses. We are focused on legal compliance and transparency utilizing our decentralized governance model.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade