You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* x/distribution can now utilize an externally managed community pool. NOTE: this will make the message handlers for FundCommunityPool and CommunityPoolSpend error, as well as the query handler for CommunityPool.
61
61
* (client) [#18101](https://github.com/cosmos/cosmos-sdk/pull/18101) Add a `keyring-default-keyname` in `client.toml` for specifying a default key name, and skip the need to use the `--from` flag when signing transactions.
62
62
* (x/gov) [#24355](https://github.com/cosmos/cosmos-sdk/pull/24355) Allow users to set a custom CalculateVoteResultsAndVotingPower function to be used in govkeeper.Tally.
63
+
* (baseapp) [#24458](https://github.com/cosmos/cosmos-sdk/pull/24458) Add `TxExecutor` baseapp option, add `TxIndex`/`TxCount`/`MsgIndex`/`BlockGasUsed` fields to `Context, to support parallel execution, introduce incarnation cache for performance optimisation
Copy file name to clipboardExpand all lines: types/context.go
+55
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,13 @@ type Context struct {
64
64
streamingManager storetypes.StreamingManager
65
65
cometInfo comet.BlockInfo
66
66
headerInfo header.Info
67
+
68
+
// For block-stm
69
+
txIndexint// the index of the current tx in the block, -1 means not in finalize block context
70
+
msgIndexint// the index of the current msg in the tx, -1 means not in finalize block context
71
+
txCountint// the total number of transactions in current block
72
+
blockGasUseduint64// sum the gas used by all the transactions in the current block, only accessible by end blocker
73
+
incarnationCachemap[string]any// incarnationCache is shared between multiple incarnations of the same transaction, it must only cache stateless computation results that only depends on tx body and block level information that don't change during block execution, like the result of tx signature verification.
67
74
}
68
75
69
76
// Proposed rename, not done to avoid API breakage
0 commit comments