mirror of
https://github.com/tendermint/tendermint.git
synced 2026-07-19 14:32:21 +00:00
0e311abf19
found out this issue when trying to decouple mempool reactor with its underlying clist implementation. according to its comment, the test `TestReactorNoBroadcastToSender` is intended to make sure that a peer shouldn't send tx back to its origin. however, the current test forgot to init peer state key, thus the code will get stuck at waiting for peer to catch up state *instead of* skipping sending tx back: https://github.com/tendermint/tendermint/blob/b8d08b9ef448365695de19fea0156e1c8611ae7b/mempool/reactor.go#L216-L226 this PR fixes the issue by init peer state key.