mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
92b7770212
Doc in `doc/configuration.md` (has to be started sometime, no?). Configuration function has to be lamely-named set_algo(), because set_algorithm() is already declared in algorithm.h (prevent namespace conflict). algorithm has to be added as global variable due to the way the callback is done (by CCAN/opt, which in itself is nice). This can be cleaned up significantly by (at least) introducing a global configuration struct, but there is no reason to do it now just for this - better a wholesale manana.
18 lines
429 B
C
18 lines
429 B
C
#ifndef ALGORITHM_H
|
|
#define ALGORITHM_H
|
|
|
|
#include <inttypes.h>
|
|
|
|
/* Describes the Scrypt parameters and hashing functions used to mine
|
|
* a specific coin.
|
|
*/
|
|
typedef struct algorithm_t algorithm_t;
|
|
|
|
/* Set default parameters based on name. */
|
|
void set_algorithm(algorithm_t* algo, const char* name);
|
|
|
|
/* Set to specific N factor. */
|
|
void set_algorithm_nfactor(algorithm_t* algo, const uint8_t nfactor);
|
|
|
|
#endif /* ALGORITHM_H */
|