rx

package
v0.3.3-all Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2021 License: GPL-3.0 Imports: 3 Imported by: 2

Documentation

Overview

Package rx provides Go access to various randomx library methods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddThread

func AddThread() int

only call when all existing threads are stopped

func HashUntil

func HashUntil(blob []byte, difficulty uint64, thread int, hash []byte, nonce []byte, stopper *uint32) int64

func InitRX

func InitRX(threads int) int

Call this once. return values:

1: success
2: success, but no huge pages.
-1: unexpected failure

func RemoveThread

func RemoveThread() int

only call when all existing threads are stopped

func SeedRX

func SeedRX(seedHash []byte, initThreads int) bool

Call this every time the seed hash provided by the daemon changes before performing any hashing. Only call when all existing threads are stopped. Returns false if an unrecoverable error occurred.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL