Skip to content

Commit

Permalink
Merge pull request #1567 from ergoplatform/v4.0.20.1
Browse files Browse the repository at this point in the history
Candidate for 4.0.20.1 release
  • Loading branch information
pragmaxim authored Jan 10, 2022
2 parents 0ea3fac + f30a1b0 commit ae2d7ab
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ To run specific Ergo version `<VERSION>` as a service with custom config `/path/
-e MAX_HEAP=3G \
ergoplatform/ergo:<VERSION> --<networkId> -c /etc/myergo.conf

Available versions can be found on [Ergo Docker image page](https://hub.docker.com/r/ergoplatform/ergo/tags), for example, `v4.0.20`.
Available versions can be found on [Ergo Docker image page](https://hub.docker.com/r/ergoplatform/ergo/tags), for example, `v4.0.20.1`.

This will connect to the Ergo mainnet or testnet following your configuration passed in `myergo.conf` and network flag `--<networkId>`. Every default config value would be overwritten with corresponding value in `myergo.conf`. `MAX_HEAP` variable can be used to control how much memory can the node consume.

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/api/openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: "3.0.2"

info:
version: "4.0.20"
version: "4.0.20.1"
title: Ergo Node API
description: API docs for Ergo Node. Models are shared between all Ergo products
contact:
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ scorex {
nodeName = "ergo-node"

# Network protocol version to be sent in handshakes
appVersion = 4.0.20
appVersion = 4.0.20.1

# Network agent name. May contain information about client code
# stack, starting from core code-base up to the end graphical interface.
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/mainnet.conf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ scorex {
network {
magicBytes = [1, 0, 2, 4]
bindAddress = "0.0.0.0:9030"
nodeName = "ergo-mainnet-4.0.20"
nodeName = "ergo-mainnet-4.0.20.1"
nodeName = ${?NODENAME}
knownPeers = [
"213.239.193.208:9030",
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/testnet.conf
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ scorex {
network {
magicBytes = [2, 0, 0, 2]
bindAddress = "0.0.0.0:9020"
nodeName = "ergo-testnet-4.0.20"
nodeName = "ergo-testnet-4.0.20.1"
nodeName = ${?NODENAME}
knownPeers = [
"213.239.193.208:9020",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,8 @@ class ErgoNodeViewSynchronizer(networkControllerRef: ActorRef,

if (spam.nonEmpty) {
if (typeId == Transaction.ModifierTypeId) {
val spammyTxs = modifiers.filterKeys(id => !blockAppliedTxsCache.mightContain(id))
// penalize a peer for sending TXs that have been already applied to a block
val spammyTxs = modifiers.filterKeys(blockAppliedTxsCache.mightContain)
if (spammyTxs.nonEmpty) {
log.info(s"Got spammy transactions: $spammyTxs")
penalizeSpammingPeer(remote)
Expand Down

0 comments on commit ae2d7ab

Please sign in to comment.