mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-17 04:36:11 +00:00
statesync: avoid potential race (#8494)
This commit is contained in:
@@ -388,7 +388,7 @@ func (s *stateProviderP2P) consensusParams(ctx context.Context, height int64) (t
|
||||
for {
|
||||
iterCount++
|
||||
select {
|
||||
case s.paramsSendCh <- p2p.Envelope{
|
||||
case requestCh <- p2p.Envelope{
|
||||
To: peer,
|
||||
Message: &ssproto.ParamsRequest{
|
||||
Height: uint64(height),
|
||||
|
||||
Reference in New Issue
Block a user