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
so all changes made in the abci listeners and precommiter are trashed.
Not sure this is intended or not?
If this is intended, it should be good to make a new interface to pass finalize request and response for custom logics similar with ListenFinalizeBlock but can write some state changes. Need this interface in v0.50!!
Cosmos SDK Version
v0.50, latest
How to reproduce?
update state in abci listeners or precommiter
The text was updated successfully, but these errors were encountered:
beer-1
changed the title
[Bug]: the changes made in precommiter and abci listeners are ignored
[Bug or Feature]: the changes made in precommiter and abci listeners are ignored
Oct 16, 2024
Is there an existing issue for this?
What happened?
Current cosmos sdk is writing the changes in
finalizeBlockState
right afterinternalFinalize
finished by callingapp.workingHash()
.cosmos-sdk/baseapp/abci.go
Lines 925 to 928 in 65ed5eb
cosmos-sdk/baseapp/abci.go
Lines 1013 to 1017 in 65ed5eb
but
abci listeners
andprecommiter
are called with this already writtenfinalizeBlockState
cosmos-sdk/baseapp/abci.go
Lines 897 to 901 in 65ed5eb
cosmos-sdk/baseapp/abci.go
Lines 979 to 987 in 65ed5eb
cosmos-sdk/baseapp/abci.go
Lines 962 to 964 in 65ed5eb
and the
finalizeBlockState
is trashed in commitcosmos-sdk/baseapp/abci.go
Line 996 in 65ed5eb
so all changes made in the
abci listeners
andprecommiter
are trashed.Not sure this is intended or not?
If this is intended, it should be good to make a new interface to pass finalize request and response for custom logics similar with
ListenFinalizeBlock
but can write some state changes. Need this interface in v0.50!!Cosmos SDK Version
v0.50, latest
How to reproduce?
update state in abci listeners or precommiter
The text was updated successfully, but these errors were encountered: