Skip to content

Config

Bases: Base

ORM model for the 'config' table.

Attributes:

Name Type Description
uid int

Primary key.

miner_name str

Name of the miner.

timestamp datetime

Timestamp of the record.

full_json dict

Full JSON data.

api dict

API data.

api_id str

API ID.

api_worker_id str

API worker ID.

http dict

HTTP data.

http_enabled bool

Whether HTTP is enabled.

http_host str

HTTP host.

http_port int

HTTP port.

http_access_token str

HTTP access token.

http_restricted bool

Whether HTTP is restricted.

autosave bool

Whether autosave is enabled.

background bool

Whether background mode is enabled.

colors bool

Whether colors are enabled.

title dict

Title data.

randomx dict

RandomX data.

randomx_init int

RandomX initialization.

randomx_init_avx2 int

RandomX AVX2 initialization.

randomx_mode str

RandomX mode.

randomx_1gb_pages bool

Whether RandomX 1GB pages are enabled.

randomx_rdmsr bool

Whether RandomX RDMSR is enabled.

randomx_wrmsr dict

RandomX WRMSR data.

randomx_cache_qos bool

Whether RandomX cache QoS is enabled.

randomx_numa bool

Whether RandomX NUMA is enabled.

randomx_scratchpad_prefetch_mode int

RandomX scratchpad prefetch mode.

cpu dict

CPU data.

cpu_enabled bool

Whether CPU is enabled.

cpu_huge_pages dict

CPU huge pages data.

cpu_huge_pages_jit bool

Whether CPU huge pages JIT is enabled.

cpu_hw_aes bool

Whether CPU hardware AES is enabled.

cpu_priority int

CPU priority.

cpu_memory_pool dict

CPU memory pool data.

cpu_yield bool

Whether CPU yield is enabled.

cpu_max_threads_hint int

CPU max threads hint.

cpu_asm dict

CPU assembly data.

cpu_argon2_impl str

CPU Argon2 implementation.

opencl dict

OpenCL data.

opencl_enabled bool

Whether OpenCL is enabled.

opencl_cache bool

Whether OpenCL cache is enabled.

opencl_loader str

OpenCL loader.

opencl_platform dict

OpenCL platform data.

opencl_adl bool

Whether OpenCL ADL is enabled.

cuda dict

CUDA data.

cuda_enabled bool

Whether CUDA is enabled.

cuda_loader str

CUDA loader.

cuda_nvml bool

Whether CUDA NVML is enabled.

donate_level int

Donation level.

donate_over_proxy int

Donation over proxy.

log_file str

Log file.

pools dict

Pools data.

print_time int

Print time.

health_print_time int

Health print time.

dmi bool

Whether DMI is enabled.

retries int

Number of retries.

retry_pause int

Retry pause.

syslog bool

Whether syslog is enabled.

tls dict

TLS data.

tls_enabled bool

Whether TLS is enabled.

tls_protocols str

TLS protocols.

tls_cert str

TLS certificate.

tls_cert_key str

TLS certificate key.

tls_ciphers str

TLS ciphers.

tls_ciphersuites str

TLS ciphersuites.

tls_dhparam str

TLS DH parameters.

dns dict

DNS data.

dns_ipv6 bool

Whether DNS IPv6 is enabled.

dns_ttl int

DNS TTL.

user_agent str

User agent.

verbose int

Verbose level.

watch bool

Whether watch mode is enabled.

rebench_algo bool

Whether rebench algorithm is enabled.

bench_algo_time int

Benchmark algorithm time.

pause_on_battery bool

Whether to pause on battery.

pause_on_active dict

Pause on active data.

benchmark dict

Benchmark data.

benchmark_size str

Benchmark size.

benchmark_algo str

Benchmark algorithm.

benchmark_submit bool

Whether to submit benchmark.

benchmark_verify str

Benchmark verification.

benchmark_seed str

Benchmark seed.

benchmark_hash str

Benchmark hash.

Source code in xmrig/models.py
class Config(Base):
    """
    ORM model for the 'config' table.

    Attributes:
        uid (int): Primary key.
        miner_name (str): Name of the miner.
        timestamp (datetime): Timestamp of the record.
        full_json (dict): Full JSON data.
        api (dict): API data.
        api_id (str): API ID.
        api_worker_id (str): API worker ID.
        http (dict): HTTP data.
        http_enabled (bool): Whether HTTP is enabled.
        http_host (str): HTTP host.
        http_port (int): HTTP port.
        http_access_token (str): HTTP access token.
        http_restricted (bool): Whether HTTP is restricted.
        autosave (bool): Whether autosave is enabled.
        background (bool): Whether background mode is enabled.
        colors (bool): Whether colors are enabled.
        title (dict): Title data.
        randomx (dict): RandomX data.
        randomx_init (int): RandomX initialization.
        randomx_init_avx2 (int): RandomX AVX2 initialization.
        randomx_mode (str): RandomX mode.
        randomx_1gb_pages (bool): Whether RandomX 1GB pages are enabled.
        randomx_rdmsr (bool): Whether RandomX RDMSR is enabled.
        randomx_wrmsr (dict): RandomX WRMSR data.
        randomx_cache_qos (bool): Whether RandomX cache QoS is enabled.
        randomx_numa (bool): Whether RandomX NUMA is enabled.
        randomx_scratchpad_prefetch_mode (int): RandomX scratchpad prefetch mode.
        cpu (dict): CPU data.
        cpu_enabled (bool): Whether CPU is enabled.
        cpu_huge_pages (dict): CPU huge pages data.
        cpu_huge_pages_jit (bool): Whether CPU huge pages JIT is enabled.
        cpu_hw_aes (bool): Whether CPU hardware AES is enabled.
        cpu_priority (int): CPU priority.
        cpu_memory_pool (dict): CPU memory pool data.
        cpu_yield (bool): Whether CPU yield is enabled.
        cpu_max_threads_hint (int): CPU max threads hint.
        cpu_asm (dict): CPU assembly data.
        cpu_argon2_impl (str): CPU Argon2 implementation.
        opencl (dict): OpenCL data.
        opencl_enabled (bool): Whether OpenCL is enabled.
        opencl_cache (bool): Whether OpenCL cache is enabled.
        opencl_loader (str): OpenCL loader.
        opencl_platform (dict): OpenCL platform data.
        opencl_adl (bool): Whether OpenCL ADL is enabled.
        cuda (dict): CUDA data.
        cuda_enabled (bool): Whether CUDA is enabled.
        cuda_loader (str): CUDA loader.
        cuda_nvml (bool): Whether CUDA NVML is enabled.
        donate_level (int): Donation level.
        donate_over_proxy (int): Donation over proxy.
        log_file (str): Log file.
        pools (dict): Pools data.
        print_time (int): Print time.
        health_print_time (int): Health print time.
        dmi (bool): Whether DMI is enabled.
        retries (int): Number of retries.
        retry_pause (int): Retry pause.
        syslog (bool): Whether syslog is enabled.
        tls (dict): TLS data.
        tls_enabled (bool): Whether TLS is enabled.
        tls_protocols (str): TLS protocols.
        tls_cert (str): TLS certificate.
        tls_cert_key (str): TLS certificate key.
        tls_ciphers (str): TLS ciphers.
        tls_ciphersuites (str): TLS ciphersuites.
        tls_dhparam (str): TLS DH parameters.
        dns (dict): DNS data.
        dns_ipv6 (bool): Whether DNS IPv6 is enabled.
        dns_ttl (int): DNS TTL.
        user_agent (str): User agent.
        verbose (int): Verbose level.
        watch (bool): Whether watch mode is enabled.
        rebench_algo (bool): Whether rebench algorithm is enabled.
        bench_algo_time (int): Benchmark algorithm time.
        pause_on_battery (bool): Whether to pause on battery.
        pause_on_active (dict): Pause on active data.
        benchmark (dict): Benchmark data.
        benchmark_size (str): Benchmark size.
        benchmark_algo (str): Benchmark algorithm.
        benchmark_submit (bool): Whether to submit benchmark.
        benchmark_verify (str): Benchmark verification.
        benchmark_seed (str): Benchmark seed.
        benchmark_hash (str): Benchmark hash.
    """
    __tablename__ = "config"
    uid = Column(Integer, primary_key=True)
    miner_name = Column(String)
    timestamp = Column(DateTime, default=datetime.now)
    full_json = Column(JSON)
    api = Column(JSON)
    api_id = Column(String)
    api_worker_id = Column(String)
    http = Column(JSON)
    http_enabled = Column(Boolean)
    http_host = Column(String)
    http_port = Column(Integer)
    http_access_token = Column(String)
    http_restricted = Column(Boolean)
    autosave = Column(Boolean)
    background = Column(Boolean)
    colors = Column(Boolean)
    title = Column(JSON)
    randomx = Column(JSON)
    randomx_init = Column(Integer)
    randomx_init_avx2 = Column(Integer)
    randomx_mode = Column(String)
    randomx_1gb_pages = Column(Boolean)
    randomx_rdmsr = Column(Boolean)
    randomx_wrmsr = Column(JSON)
    randomx_cache_qos = Column(Boolean)
    randomx_numa = Column(Boolean)
    randomx_scratchpad_prefetch_mode = Column(Integer)
    cpu = Column(JSON)
    cpu_enabled = Column(Boolean)
    cpu_huge_pages = Column(JSON)
    cpu_huge_pages_jit = Column(Boolean)
    cpu_hw_aes = Column(Boolean)
    cpu_priority = Column(Integer)
    cpu_memory_pool = Column(JSON)
    cpu_yield = Column(Boolean)
    cpu_max_threads_hint = Column(Integer)
    cpu_asm = Column(JSON)
    cpu_argon2_impl = Column(String)
    opencl = Column(JSON)
    opencl_enabled = Column(Boolean)
    opencl_cache = Column(Boolean)
    opencl_loader = Column(String)
    opencl_platform = Column(JSON)
    opencl_adl = Column(Boolean)
    cuda = Column(JSON)
    cuda_enabled = Column(Boolean)
    cuda_loader = Column(String)
    cuda_nvml = Column(Boolean)
    donate_level = Column(Integer)
    donate_over_proxy = Column(Integer)
    log_file = Column(String)
    pools = Column(JSON)
    print_time = Column(Integer)
    health_print_time = Column(Integer)
    dmi = Column(Boolean)
    retries = Column(Integer)
    retry_pause = Column(Integer)
    syslog = Column(Boolean)
    tls = Column(JSON)
    tls_enabled = Column(Boolean)
    tls_protocols = Column(String)
    tls_cert = Column(String)
    tls_cert_key = Column(String)
    tls_ciphers = Column(String)
    tls_ciphersuites = Column(String)
    tls_dhparam = Column(String)
    dns = Column(JSON)
    dns_ipv6 = Column(Boolean)
    dns_ttl = Column(Integer)
    user_agent = Column(String)
    verbose = Column(Integer)
    watch = Column(Boolean)
    rebench_algo = Column(Boolean)
    bench_algo_time = Column(Integer)
    pause_on_battery = Column(Boolean)
    pause_on_active = Column(JSON)
    benchmark = Column(JSON)
    benchmark_size = Column(String)
    benchmark_algo = Column(String)
    benchmark_submit = Column(Boolean)
    benchmark_verify = Column(String)
    benchmark_seed = Column(String)
    benchmark_hash = Column(String)