From 1e17b052b61cd39a7d43abad9a1f9ca89b209a57 Mon Sep 17 00:00:00 2001 From: Lars Kuhtz Date: Thu, 17 Sep 2020 09:53:29 -0700 Subject: [PATCH] update package version to 2.1.1 (#1142) * update package version to 2.1.1 * update CHANGELOG.md * update rosetta tests for version 2.1.1 * Update test/Chainweb/Test/Rosetta/RestAPI.hs Co-authored-by: Stuart Popejoy * update release date for 2.1.1 Co-authored-by: Stuart Popejoy --- CHANGELOG.md | 32 +++++++++++++++++++++++++++ chainweb.cabal | 2 +- test/Chainweb/Test/Rosetta/RestAPI.hs | 6 +++-- 3 files changed, 37 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 10596f3f13..717d28415c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,37 @@ # `chainweb-node` Changelog +## 2.1.1 (2020-09-17) + +This release provides performance improvements and bug fixes. + +* More rigorously check the correct length of request keys, + transactions ids, and hashes in API requests. (#1139, #1140) + +* Fix a bug in the Mempool where transactions that have been included in a + block are still marked as pending. Those transactions occupied memory in the + Mempool and got synchronized between nodes until they finally expired. + (#1138) + +* The database pruning at node startup is more efficient and can now + operate in four different modes, which can be used on the command line with + the `--prune-chain-database` option and in the configuration file with the + property `chainweb.cuts.pruneChainDatabase`. + + * `none` no database pruning is performed + * `headers` only block headers but no payloads are pruned (10-30 seconds) + * `headers-checked` like `headers` but also validates all block headers and + checks the complete chain Merkle tree including payload hashes. + (5-20 minutes) + * `full` prunes block headers and payloads. (10-20 minutes) + + The default is `headers`. For backward compatibility it is possible to also + use Boolean values for setting `chainweb.cuts.prunChainDatabase` in the + configuration file, where `false` is equivalent with `none` and `true` is + equivalent with `headers`. (#1132) + +* Improved performance of rebuilding the pact database from the + chain data. (#1137) + ## 2.1 (2020-08-11) This version replaces all previous versions. Any prior version will stop working diff --git a/chainweb.cabal b/chainweb.cabal index cca3ef92fa..979c52f78f 100644 --- a/chainweb.cabal +++ b/chainweb.cabal @@ -1,7 +1,7 @@ cabal-version: 2.4 name: chainweb -version: 2.1 +version: 2.1.1 synopsis: A Proof-of-Work Parallel-Chain Architecture for Massive Throughput description: A Proof-of-Work Parallel-Chain Architecture for Massive Throughput. homepage: https://github.com/kadena-io/chainweb diff --git a/test/Chainweb/Test/Rosetta/RestAPI.hs b/test/Chainweb/Test/Rosetta/RestAPI.hs index c84d8bf29a..0726ec2ffc 100644 --- a/test/Chainweb/Test/Rosetta/RestAPI.hs +++ b/test/Chainweb/Test/Rosetta/RestAPI.hs @@ -1,12 +1,14 @@ {-# LANGUAGE BangPatterns #-} +{-# LANGUAGE CPP #-} {-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE LambdaCase #-} -{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE NumericUnderscores #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} +{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeApplications #-} {-# LANGUAGE TypeFamilies #-} + module Chainweb.Test.Rosetta.RestAPI ( tests ) where @@ -389,7 +391,7 @@ genesisId = BlockId 0 "rdfJIktp_WL0oMr8Wr6lH49YkERAJ9MlFp0RPLMXPDE" rosettaVersion :: RosettaNodeVersion rosettaVersion = RosettaNodeVersion { _version_rosettaVersion = "1.3.1" - , _version_nodeVersion = "2.1" + , _version_nodeVersion = VERSION_chainweb , _version_middlewareVersion = Nothing , _version_metadata = Just $ HM.fromList [ "node-api-version" A..= ("0.0" :: Text)