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
Possibly add a new method in the transaction.Service.
// Service creates a transaction service.
type Service interface {
// ExecMode returns the current execution mode.
ExecMode(ctx context.Context) ExecMode
++ // TxIndex returns the transaction position in a block++ TxIndex(ctx context.Context) (uint64, error)
}
looking into the design, im not sure this would work in the world of parallelisation. As this is something being explored this api would need to be broken. I would propose keeping the antehandler and not making this part of core.
Summary
Possibly add a new method in the
transaction.Service
.Problem Definition
No response
Proposed Feature
This method, called
func TxIndex(ctx) (uint64, error)
orTxBlockPos
should return the tx position in a block.Some consumer (like wasmd) require this and do that manually: https://github.com/CosmWasm/wasmd/blob/02354c6/x/wasm/keeper/ante.go#L25-L55
⚠ This should only be done if it is not ugly to do in baseapp and stf
The text was updated successfully, but these errors were encountered: