func (m *MockPeerRoleManager) CheckRole(remoteInfo p2pcommon.RemoteInfo, newRole types.PeerRole) bool {
    m.ctrl.T.Helper()
    ret := m.ctrl.Call(m, "CheckRole", remoteInfo, newRole)
    ret0, _ := ret[0].(bool)
    return ret0