Skip to content

Commit

Permalink
v3.11.3: deprioritize bot txs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ji Qiren committed Dec 17, 2023
1 parent 16e8e29 commit 5c6ad3b
Show file tree
Hide file tree
Showing 3 changed files with 12 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.3
Sun Dec 17 21:32:41 CST 2023

- deprioritize bot txs

## v3.11.0
Fri Dec 15 12:59:23 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.2
VERSION = 3.11.3
COMMIT = $(shell git rev-parse --short HEAD)
PROJECT = github.com/iost-official/go-iost
DOCKER_IMAGE = iostio/iost-node:$(VERSION)-$(COMMIT)
Expand Down
6 changes: 6 additions & 0 deletions verifier/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ func baseGen(blk *block.Block, db database.IMultiValue, provider Provider, isola
to := time.Now().Add(c.Timeout)
blockGasLimit := common.MaxBlockGasLimit

senderSet := map[string]struct{}{}
L:
for tn.Before(to) {
isolator.ClearTx()
Expand Down Expand Up @@ -156,6 +157,11 @@ L:
if t.GasLimit > blockGasLimit {
continue L
}
_, ok := senderSet[t.Publisher]
if ok {
continue L
}
senderSet[t.Publisher] = struct{}{}
err := isolator.PrepareTx(t, limit)
if err != nil {
ilog.Errorf("PrepareTx failed. tx %v limit %v err %v", t.String(), limit, err)
Expand Down

0 comments on commit 5c6ad3b

Please sign in to comment.