Skip to content

Commit

Permalink
v3.11.4: hard limit tps
Browse files Browse the repository at this point in the history
  • Loading branch information
Ji Qiren committed Dec 17, 2023
1 parent 5c6ad3b commit 0b791ae
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## v3.11.4
Sun Dec 17 22:03:09 CST 2023

- hard limit tps to protect system temporarily

## v3.11.3
Sun Dec 17 21:32:41 CST 2023

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ GO_INSTALL := $(GO) install

PROJECT_NAME := $(shell basename "$(PWD)")
BUILDER_VERSION = 3.11.0
VERSION = 3.11.3
VERSION = 3.11.4
COMMIT = $(shell git rev-parse --short HEAD)
PROJECT = github.com/iost-official/go-iost
DOCKER_IMAGE = iostio/iost-node:$(VERSION)-$(COMMIT)
Expand Down
3 changes: 3 additions & 0 deletions verifier/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ L:
isolator.Commit()
blk.Txs = append(blk.Txs, t)
blk.Receipts = append(blk.Receipts, r)
if len(blk.Txs) >= 50 {
break L
}
blockGasLimit -= r.GasUsage
}
blk.Head.Info = []byte(`{}`) // for legacy reasons. remove it in later version
Expand Down

0 comments on commit 0b791ae

Please sign in to comment.