We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 394d411 commit 398b597Copy full SHA for 398b597
baseapp/state/manager.go
@@ -42,7 +42,7 @@ type Manager struct {
42
prepareProposalState *State
43
processProposalState *State
44
finalizeBlockState *State
45
- stateMut sync.RWMutex
+ stateMut sync.Mutex
46
47
gasConfig config.GasConfig
48
}
@@ -54,8 +54,8 @@ func NewManager(gasConfig config.GasConfig) *Manager {
54
55
56
func (mgr *Manager) GetState(mode sdk.ExecMode) *State {
57
- mgr.stateMut.RLock()
58
- defer mgr.stateMut.RUnlock()
+ mgr.stateMut.Lock()
+ defer mgr.stateMut.Unlock()
59
60
switch mode {
61
case sdk.ExecModeFinalize:
0 commit comments