feat(baseapp)!: Indicate pruning with "not found" rather than "invalid request" (#19993)

This commit is contained in:
Richard Gibson
2024-04-10 11:14:27 +00:00
committed by GitHub
parent a6f3fbfbeb
commit 4c446f8b7d
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1242,7 +1242,7 @@ func (app *BaseApp) CreateQueryContext(height int64, prove bool) (sdk.Context, e
if err != nil {
return sdk.Context{},
errorsmod.Wrapf(
sdkerrors.ErrInvalidRequest,
sdkerrors.ErrNotFound,
"failed to load state at height %d; %s (latest height: %d)", height, err, lastBlockHeight,
)
}