(state sm.State, pubKey crypto.PubKey)
| 372 | } |
| 373 | |
| 374 | func onlyValidatorIsUs(state sm.State, pubKey crypto.PubKey) bool { |
| 375 | if state.Validators.Size() > 1 { |
| 376 | return false |
| 377 | } |
| 378 | addr, _ := state.Validators.GetByIndex(0) |
| 379 | return bytes.Equal(pubKey.Address(), addr) |
| 380 | } |
| 381 | |
| 382 | func createMempoolAndMempoolReactor(config *cfg.Config, proxyApp proxy.AppConns, |
| 383 | state sm.State, memplMetrics *mempl.Metrics, logger log.Logger, |
no test coverage detected