From 9515536ed6dd52940c95c381ea94f7a160a37d74 Mon Sep 17 00:00:00 2001 From: Vyatcheslav Suharnikov Date: Tue, 6 Sep 2022 13:44:52 +0400 Subject: [PATCH 1/2] Removed a check for "WriteSet can't contain more than ..." error, because we have an identical check for "Stored data count limit is exceeded" --- .../wavesplatform/state/diffs/invoke/InvokeDiffsCommon.scala | 5 ----- 1 file changed, 5 deletions(-) diff --git a/node/src/main/scala/com/wavesplatform/state/diffs/invoke/InvokeDiffsCommon.scala b/node/src/main/scala/com/wavesplatform/state/diffs/invoke/InvokeDiffsCommon.scala index 3a699ca72fe..5c7b7c5726f 100644 --- a/node/src/main/scala/com/wavesplatform/state/diffs/invoke/InvokeDiffsCommon.scala +++ b/node/src/main/scala/com/wavesplatform/state/diffs/invoke/InvokeDiffsCommon.scala @@ -347,11 +347,6 @@ object InvokeDiffsCommon { private def checkDataEntries(blockchain: Blockchain, tx: InvokeScriptLike, dataEntries: Seq[DataEntry[?]], stdLibVersion: StdLibVersion) = for { - _ <- Either.cond( - dataEntries.length <= ContractLimits.MaxWriteSetSize, - (), - s"WriteSet can't contain more than ${ContractLimits.MaxWriteSetSize} entries" - ) _ <- Either.cond( tx.enableEmptyKeys || dataEntries.forall(_.key.nonEmpty), (), { From 5508d6e241fc944985be83f623b4d85999c7edb8 Mon Sep 17 00:00:00 2001 From: Vyatcheslav Suharnikov Date: Tue, 6 Sep 2022 14:01:42 +0400 Subject: [PATCH 2/2] Added a small note about blacklisting and suspension. --- node/src/main/resources/application.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node/src/main/resources/application.conf b/node/src/main/resources/application.conf index b696cfeabdf..82ece8dec35 100644 --- a/node/src/main/resources/application.conf +++ b/node/src/main/resources/application.conf @@ -93,7 +93,7 @@ waves { # If yes the node requests peers and sends known peers enable-peers-exchange = yes - # If yes the node can blacklist others + # If yes the node can blacklist incoming and outgoing connections to other nodes enable-blacklisting = yes # How often connected peers list should be broadcast @@ -105,6 +105,7 @@ waves { # respond in a timely manner, it gets blacklisted. handshake-timeout = 30s + # The node can't connect to suspended nodes suspension-residence-time = 1m # When a new transaction comes from the network, we cache it and doesn't push this transaction again when it comes