{"id":7661,"date":"2019-10-14T15:59:10","date_gmt":"2019-10-14T15:59:10","guid":{"rendered":"https:\/\/nkn.org\/community\/blog\/nkn-mainnet-v1-1-1-beta-release\/"},"modified":"2019-10-14T15:59:10","modified_gmt":"2019-10-14T15:59:10","slug":"nkn-mainnet-v1-1-1-beta-release","status":"publish","type":"post","link":"https:\/\/nkn.org\/de\/community\/blog\/nkn-mainnet-v1-1-1-beta-release\/","title":{"rendered":"NKN MainNet v1.1.1-beta Release"},"content":{"rendered":"<p>by NKN CTO Yilun Zhang<\/p>\n<figure>\n<p><img decoding=\"async\" data-width=\"5997\" data-height=\"3678\" src=\"https:\/\/cdn-images-1.medium.com\/max\/800\/1*SsdN1m8Ve-ygfaHHGfvQNA.jpeg\"><br \/>\n<\/figure>\n<p>We released a new version v1.1.1-beta. This is a major release that introduced various features, security updates, and performance optimization. Feature highlights:<\/p>\n<p>Database:<\/p>\n<ul>\n<li>Implement state pruning that can greatly reduce ChainDB size by removing unused states. State pruning is still be beta phase and is not enabled by default. You can enable it by setting <code>StatePruningMode<\/code> to <code>\"lowmem\"<\/code> in <code>config.json<\/code>, or start nknd with <code>--pruning lowmem<\/code> argument. In the future state pruning will be enabled by default. When state pruning is enabled, every time nknd starts, it will first prune local ChainDB, which might take a long time depending on last pruned height. <strong>Pruning an unpruned ChainDB can take a few days depending on your node\u2019s disk I\/O speed, so please be patient or start from a pruned snapshot (e.g. <\/strong><a href=\"https:\/\/nkn.org\/ChainDB_pruned_latest.zip\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>https:\/\/nkn.org\/ChainDB_pruned_latest.zip<\/strong><\/a><strong> or <\/strong><a href=\"https:\/\/nkn.org\/ChainDB_pruned_latest.tar.gz\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>https:\/\/nkn.org\/ChainDB_pruned_latest.tar.gz<\/strong><\/a><strong>)<\/strong>\n<\/li>\n<\/ul>\n<p>Consensus:<\/p>\n<ul>\n<li>Implement random sampling neighbors in voting and gossip<\/li>\n<\/ul>\n<p>Security:<\/p>\n<ul>\n<li>Add block verification when syncing and persisting blocks<\/li>\n<\/ul>\n<p>Client:<\/p>\n<ul>\n<li>Implement multicast and compression protocol<\/li>\n<\/ul>\n<p>Others:<\/p>\n<ul>\n<li>Fix the bug that nanopay txn not in txpool gets removed<\/li>\n<li>Fix the bug that nknc return code is not correct<\/li>\n<\/ul>\n<p>This is a compatible upgrade, but upgrade is highly recommended due to the security update. Old version might be deprecated to accelerate the upgrade process.<\/p>\n<ul>\n<li>If you are using one-click on DO\/AWS\/Google Cloud, you just need to stop and restart and miner and it will upgrade automatically.<\/li>\n<li>If you downloaded the release version, you just need to download it again <a href=\"https:\/\/github.com\/nknorg\/nkn\/releases\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/github.com\/nknorg\/nkn\/releases 2<\/a>, replace your nknd and nknc and run again<\/li>\n<li>If you build from scratch, you just need to do the build again.<\/li>\n<li>If you are using some scripts or tutorials that has auto-updator, then it should be automatic if the auto-updator is working properly.<\/li>\n<\/ul>\n<p>You probably don\u2019t need to download the ChainDB snapshot manually, but if you really want or need, you can use <a href=\"https:\/\/nkn.org\/ChainDB_latest.zip\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/nkn.org\/ChainDB_latest.zip <\/a>for full ChainDB, <a href=\"https:\/\/nkn.org\/ChainDB_pruned_latest.zip\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/nkn.org\/ChainDB_pruned_latest.zip<\/a> or <a href=\"https:\/\/nkn.org\/ChainDB_pruned_latest.tar.gz\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/nkn.org\/ChainDB_pruned_latest.tar.gz<\/a> for pruned ChainDB.<\/p>\n<p>To update to the new version, please stop your nknd, rebuild (or download the latest binary from <a href=\"https:\/\/github.com\/nknorg\/nkn\/releases\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/github.com\/nknorg\/nkn\/releases 2<\/a>), and then restart. If you are using the auto-updater, then you just need to stop and restart and miner and it will upgrade automatically.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>by NKN CTO Yilun Zhang We released a new version v1.1.1-beta. This is a major release that introduced various features, security updates, and performance optimization. Feature highlights: Database: Implement state pruning that can greatly reduce ChainDB size by removing unused states. State pruning is still be beta phase and is not enabled by default. You [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":3549,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"mc4wp_mailchimp_campaign":[]},"categories":[260,212],"tags":[438,639,655],"acf":[],"_links":{"self":[{"href":"https:\/\/nkn.org\/de\/wp-json\/wp\/v2\/posts\/7661"}],"collection":[{"href":"https:\/\/nkn.org\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nkn.org\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nkn.org\/de\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/nkn.org\/de\/wp-json\/wp\/v2\/comments?post=7661"}],"version-history":[{"count":0,"href":"https:\/\/nkn.org\/de\/wp-json\/wp\/v2\/posts\/7661\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nkn.org\/de\/wp-json\/wp\/v2\/media\/3549"}],"wp:attachment":[{"href":"https:\/\/nkn.org\/de\/wp-json\/wp\/v2\/media?parent=7661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nkn.org\/de\/wp-json\/wp\/v2\/categories?post=7661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nkn.org\/de\/wp-json\/wp\/v2\/tags?post=7661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}