Skip to content

Commit c53d19b

Browse files
perf: optimise staking endblocker (#1850) - Backports to v1.4.x (v1.4.12) (#1891)
* update CHANGELOG for v1.4.10 and v1.4.11 * perf: optimise staking endblocker (#1850) --------- Co-authored-by: Thomas N. <[email protected]>
1 parent 1a952e1 commit c53d19b

File tree

6 files changed

+26
-12
lines changed

6 files changed

+26
-12
lines changed

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,23 @@
44

55
## UNRELEASED
66

7+
## v1.4.12
8+
9+
* [#1850](https://github.com/crypto-org-chain/cronos/pull/1850) Optimize staking endblocker execution by caching queue entries from iterators.
10+
11+
## v1.4.11
12+
13+
* [#1884](https://github.com/crypto-org-chain/cronos/pull/1884) Patch comet bft (GHSA-hrhf-2vcr-ghch)
14+
15+
## v1.4.10
16+
17+
* [#1853](https://github.com/crypto-org-chain/cronos/pull/1853) Fix version not found during pruning.
18+
719
## v1.4.9
820

921
### Bug Fixes
1022

1123
* [#1830](https://github.com/crypto-org-chain/cronos/pull/1830) Add sanity check for rpc call Trace_Tx and Trace_call.
12-
* [#1853](https://github.com/crypto-org-chain/cronos/pull/1853) Fix version not found during pruning.
1324

1425
*Jun 20, 2025*
1526

app/app.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ func New(
539539
panic(err)
540540
}
541541
app.txConfig = txConfig
542+
stakingCacheSize := cast.ToInt(appOpts.Get(server.FlagStakingCacheSize))
542543
app.StakingKeeper = stakingkeeper.NewKeeper(
543544
appCodec,
544545
runtime.NewKVStoreService(keys[stakingtypes.StoreKey]),
@@ -547,6 +548,7 @@ func New(
547548
authAddr,
548549
address.NewBech32Codec(sdk.GetConfig().GetBech32ValidatorAddrPrefix()),
549550
address.NewBech32Codec(sdk.GetConfig().GetBech32ConsensusAddrPrefix()),
551+
stakingCacheSize,
550552
)
551553
app.MintKeeper = mintkeeper.NewKeeper(
552554
appCodec,

default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
nativeByteOrder ? true, # nativeByteOrder mode will panic on big endian machines
1212
}:
1313
let
14-
version = "v1.4.11";
14+
version = "v1.4.12";
1515
pname = "cronosd";
1616
tags = [
1717
"ledger"

go.mod

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@ require (
253253
replace (
254254
cosmossdk.io/store => github.com/crypto-org-chain/cosmos-sdk/store v0.0.0-20241217090828-cfbca9fe8254
255255
cosmossdk.io/x/tx => github.com/crypto-org-chain/cosmos-sdk/x/tx v0.0.0-20241217090828-cfbca9fe8254
256-
github.com/cosmos/cosmos-sdk => github.com/crypto-org-chain/cosmos-sdk v0.50.6-0.20250424063720-28ea58ae20d8
256+
257+
github.com/cosmos/cosmos-sdk => github.com/crypto-org-chain/cosmos-sdk v0.50.6-0.20251021094043-dc44fa2acf56
257258
)
258259

259260
replace (
@@ -274,7 +275,7 @@ replace (
274275
github.com/dgrijalva/jwt-go => github.com/golang-jwt/jwt/v4 v4.4.2
275276
github.com/ethereum/go-ethereum => github.com/crypto-org-chain/go-ethereum v1.10.20-0.20240926023215-d2275b4afb9a
276277
// release/v1.4.x-2
277-
github.com/evmos/ethermint => github.com/crypto-org-chain/ethermint v0.6.1-0.20250707061639-56b3129b0d95
278+
github.com/evmos/ethermint => github.com/crypto-org-chain/ethermint v0.6.1-0.20251021095308-b55c0f03f7a6
278279
// Fix upstream GHSA-h395-qcrw-5vmq and GHSA-3vp4-m3rf-835h vulnerabilities.
279280
// TODO Remove it: https://github.com/cosmos/cosmos-sdk/issues/10409
280281
github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.9.0

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -422,14 +422,14 @@ github.com/crypto-org-chain/btree v0.0.0-20240406140148-2687063b042c h1:MOgfS4+F
422422
github.com/crypto-org-chain/btree v0.0.0-20240406140148-2687063b042c/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY=
423423
github.com/crypto-org-chain/cometbft v0.0.0-20251014161156-b0e778b18408 h1:7dfWkDRYCsguKrpd0t14nrZ3Xf/9aVHiQrWx5o0DCdo=
424424
github.com/crypto-org-chain/cometbft v0.0.0-20251014161156-b0e778b18408/go.mod h1:khbgmtxbgwJfMqDmnGY4rl2sQpTdzpPb1f9nqnfpy1o=
425-
github.com/crypto-org-chain/cosmos-sdk v0.50.6-0.20250424063720-28ea58ae20d8 h1:Sif0pGNc4C384OLucyQ7P/+KjYiJ6uDn8Cf8wR7MI+c=
426-
github.com/crypto-org-chain/cosmos-sdk v0.50.6-0.20250424063720-28ea58ae20d8/go.mod h1:JwwsMeZldLN20b72mmbWPY0EV9rs+v/12hRu1JFttvY=
425+
github.com/crypto-org-chain/cosmos-sdk v0.50.6-0.20251021094043-dc44fa2acf56 h1:doPquoHaeUsNzUQOsqjdDdv+z1jR8xHOY+sfxBnNRfU=
426+
github.com/crypto-org-chain/cosmos-sdk v0.50.6-0.20251021094043-dc44fa2acf56/go.mod h1:JwwsMeZldLN20b72mmbWPY0EV9rs+v/12hRu1JFttvY=
427427
github.com/crypto-org-chain/cosmos-sdk/store v0.0.0-20241217090828-cfbca9fe8254 h1:NEgy0r3otU/O+0OAjMdEhbn4VotQlg+98hHbD7M23wU=
428428
github.com/crypto-org-chain/cosmos-sdk/store v0.0.0-20241217090828-cfbca9fe8254/go.mod h1:8DwVTz83/2PSI366FERGbWSH7hL6sB7HbYp8bqksNwM=
429429
github.com/crypto-org-chain/cosmos-sdk/x/tx v0.0.0-20241217090828-cfbca9fe8254 h1:JzLOFRiKsDtLJt5h0M0jkEIPDKvFFyja7VEp7gG6O9U=
430430
github.com/crypto-org-chain/cosmos-sdk/x/tx v0.0.0-20241217090828-cfbca9fe8254/go.mod h1:V6DImnwJMTq5qFjeGWpXNiT/fjgE4HtmclRmTqRVM3w=
431-
github.com/crypto-org-chain/ethermint v0.6.1-0.20250707061639-56b3129b0d95 h1:MIWBSrp9MOljYGvfgnMs/N8kwIycmZt9AInvTTgt6Bo=
432-
github.com/crypto-org-chain/ethermint v0.6.1-0.20250707061639-56b3129b0d95/go.mod h1:X11RkHpz0TlJf5E30HLyvxXJCDGB0XW0CUzdG4MNSWg=
431+
github.com/crypto-org-chain/ethermint v0.6.1-0.20251021095308-b55c0f03f7a6 h1:KdA7NKfX7XgsN4uIoK9kNIPCT/fjmLSIvLqku20aI1Y=
432+
github.com/crypto-org-chain/ethermint v0.6.1-0.20251021095308-b55c0f03f7a6/go.mod h1:oDf+clJg3Sn9vmj04ZHCTwh3HDzzn/lN4b+ucno4m+4=
433433
github.com/crypto-org-chain/go-block-stm v0.0.0-20240919080136-6c49aef68716 h1:OvD5Rm0B6LHUJk6z858UgwdP72jU2DuUdXeclRyKpDI=
434434
github.com/crypto-org-chain/go-block-stm v0.0.0-20240919080136-6c49aef68716/go.mod h1:iwQTX9xMX8NV9k3o2BiWXA0SswpsZrDk5q3gA7nWYiE=
435435
github.com/crypto-org-chain/go-ethereum v1.10.20-0.20240926023215-d2275b4afb9a h1:IUPD+dg1YQl8cLocxQ/Mbx/ObTgAgcrZlcBhFjsLO40=

gomod2nix.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ schema = 3
174174
version = "v1.0.0-beta.5"
175175
hash = "sha256-Fy/PbsOsd6iq0Njy3DVWK6HqWsogI+MkE8QslHGWyVg="
176176
[mod."github.com/cosmos/cosmos-sdk"]
177-
version = "v0.50.6-0.20250424063720-28ea58ae20d8"
178-
hash = "sha256-UCynFh2IangiNqQsgux4dKCk8wuF1vgoINQGA8N59QY="
177+
version = "v0.50.6-0.20251021094043-dc44fa2acf56"
178+
hash = "sha256-2Teqha62OUsvrkl1aTG/W3YJ+R966DuOdSetcDPCTRo="
179179
replaced = "github.com/crypto-org-chain/cosmos-sdk"
180180
[mod."github.com/cosmos/go-bip39"]
181181
version = "v1.0.0"
@@ -264,8 +264,8 @@ schema = 3
264264
hash = "sha256-ozwVS2BhAoz+OOisAyMhgg+lq8FdQjf90xoOq9cxtGw="
265265
replaced = "github.com/crypto-org-chain/go-ethereum"
266266
[mod."github.com/evmos/ethermint"]
267-
version = "v0.6.1-0.20250707061639-56b3129b0d95"
268-
hash = "sha256-sNYlX5AXKG4wHC5ldVQojSOcv8V92LDoF4oc6F4zmLU="
267+
version = "v0.6.1-0.20251021095308-b55c0f03f7a6"
268+
hash = "sha256-nnsR70+JtwYFKtq1SJJCLgRBnxsC2N2VC/987yhC9HI="
269269
replaced = "github.com/crypto-org-chain/ethermint"
270270
[mod."github.com/fatih/color"]
271271
version = "v1.16.0"

0 commit comments

Comments
 (0)