?height=100
query context should be created with requested height #10826
Closed
Description
opened on Dec 22, 2021
Summary
Currently when we do height query, the query context has latest block height not requested block height. Only CacheMultiStore
has been updated to use the given block height.
It is causing some logical error when the querier using its context block height(i.e. ctx.BlockHeight()
) to compute some value.
Proposal
We can make query context with requested block height in the function's
Line 630 in b67c4b3
This line
Lines 658 to 660 in b67c4b3
It should be
ctx := sdk.NewContext(
cacheMS, app.checkState.ctx.BlockHeader(), true, app.logger,
).WithMinGasPrices(app.minGasPrices).WithBlockHeight(height)
For Admin Use
- Not duplicate issue
- Appropriate labels applied
- Appropriate contributors tagged
- Contributor assigned/self-assigned
Activity