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
Closescelestiaorg/celestia-app#4379
I don't know if this fixes all the issues with the v1 mempool but it
should fix the data race reported in the issue. We had to move the
mempool lock earlier in `CheckTx` before this map look up
```go
txmp.txByKey[txKey]
```
## Testing
```shell
# Before
$ go test ./mempool/v1 -race -run TestConcurrentCheckTxDataRace
# github.com/tendermint/tendermint/mempool/v1.test
==================
WARNING: DATA RACE
Write at 0x00c0005987e0 by goroutine 89:
# After
$ go test ./mempool/v1 -race -run TestConcurrentCheckTxDataRace
# github.com/tendermint/tendermint/mempool/v1.test
ok github.com/tendermint/tendermint/mempool/v1 (cached)
```
0 commit comments