mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-09 05:20:10 +00:00
add a safety check in ConcurrentProvider#UpdateToHeight
This commit is contained in:
@@ -136,5 +136,8 @@ func (cp *ConcurrentProvider) UpdateToHeight(chainID string, height int64) error
|
||||
}
|
||||
|
||||
// Is not the first call, so return the error from previous concurrent calls.
|
||||
if callback != nil {
|
||||
panic("expected callback to be nil")
|
||||
}
|
||||
return pr.err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user